Forum Replies Created

Viewing 15 replies - 31 through 45 (of 50 total)
  • Since you do not have an .htaccess, you more than likely have a web.config file. Do you know how to reset the rewrite rules?

    There should be a block like this:

    <rewrite>
    <rules>
        <clear />
    <rule name="Wordpress Pretty Permalinks" enabled="true" patternSyntax="Wildcard">
                        <match url="*" />
                        <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
                            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                        </conditions>
                        <action type="Rewrite" url="index.php" />
                    </rule>
    </rules>
           </rewrite>

    remove the block for now (save it somewhere), follow esmi’s instructions and see if that allows the site to display.

    Can you check and see how the application pool is configured in IIS manager?

    In advanced settings make sure that Enable 32-bit applications is set to True.

    If set to false, php can cause a 500 error.

    If this does not fix it, please let me know what version of php, MySQL and you are using.

    What I have found is that for Automatic updates to work, the file permissions (ACLs) need to be set differently on IIS as opposed to Linux.

    Where Linux looks at read write and execute as the three options on folder/file permissions, IIS (and windows) will have the following options:
    Full Control
    Modify
    Read & execute
    List Folder Contents
    Read
    Write
    Special Permissions

    For Automatic update to work the user doing the update needs to have at least:
    Modify
    Read & Execute
    List Folder Contents
    Read
    Write

    The main difference is that Windows must have the Modify permission set in order to update files. Write alone will not do it as some files are being replaced.

    As to who to give these permissions to, that will depend on how you are setting up the server. Are you using IIS 7, 7.5 or 6. On IIS 7 the default user will be IUSR and on 7.5 the default user will be the application pool identity. To determine this look at the Identity column in IIS manager for the application Pools. It will either be: Local service, Local system, Network service, ApplicationPoolIdentity or a custom account. Once you know this look at the Anonymous Authentication identity used by the web site. This will either be a specific user or the application pool identity.

    If the user is IUSR that is the user account that needs the permissions. If the user is the applicationpoolidentity, then the user will be a special account “IIS APPPOOL\%app pool name%” that needs the permissions.

    You could always give the group IIS_IUSRS the permissions you want, but that could result in XSS issues. See This article for more on app pool isolation to prevent XSS issues

    YMMV, This has worked for me on all of my IIS Servers and WordPress sites. Keep in mind if you control your own server SVN updates are (IMO) much easier Subversion Updates

    That error means that there is a conflict (usually a duplicate entry) between web.config files.

    A)
    Follow the path look in d:\inetpub\wwwroot is there a web.config?
    Then look at d:\inetpub\wwwroot\mysite is there another web.config?
    Lastly look at d:\inetpub\wwwroot\mysite\website is there yet another web.config?

    If the web.config files conflict with one another without clearing the parent values the above error can occur.

    B)

    Is the site running under its own application pool? It should be (more secure this way) and you can control the .net version. If the site is only WordPress, set the .NET Framework Version to “No managed Code” in the Application pool advanced Settings. In addition, for php sites, make sure enable 32-bit Applications are set to True.

    Check out these and let me know what you find.

    If you cannot log in to anything else with php, can you at least run a php file? Can you create an info.php file and run it:
    <?php phpinfo(); ?>

    Wht version of php, and are you running FastCGI. IIS7 has an update for FastCGI for Server 2008: FastCGI Update

    If you cannot set the default document how have you tried to do this? Can you add a web.config to the root of the site specifying the default document:

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <defaultDocument>
                <files>
                    <clear />
                    <add value="index.php" />
               </files>
            </defaultDocument>
        </system.webServer>
    </configuration>

    You may have a web.config already, so this would need to be merged with an existing one. Let me know if one already exists.

    Let us know what you find out.

    Just changing the siturl and home values in wp_options is not enough in my experience.

    This article Changing the Site Url saved my life a few years ago during an emergency server move and url change.

    I now find the easiest way to get this going(as noted in the article) is to add the following to wp-config.php

    define('WP_HOME','https://example.com');
    define('WP_SITEURL','https://example.com');

    Read the whole article as your posts may need to be updated as well.

    Give this Plugin a try: Memory Bump

    When creating the wp-config.php (either manually or with the installer) are you referencing the database server by IP or name?

    With Win 7 I have seen issues with ‘localhost’ if IP v6 is installed. Try using 127.0.0.1 instead.

    If that does not help, i had an issue with php 5.3.3 and Apache 2.2.16 throwing 500 errors. I disabled all pdo extensions in the php.ini and all worked well. While this was on a linux host, you might give that a try.

    Forum: Fixing WordPress
    In reply to: Removing RSS Feeds

    Actually, I was saying that those were two common ways to add feed links.

    If either existed, it would be easy to remove them.

    The solution you found will work, I was trying to see if we could go with an easier method.

    Sorry I was unclear.

    Forum: Fixing WordPress
    In reply to: Removing RSS Feeds

    Depends on your theme and your version of WP.

    Prior to 3.0 something like this was usually (but not always in the theme’s header.php:

    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />

    In 3.0 that would still work, but you would add this in the theme’s functions.php:

    if ( function_exists( 'add_theme_support' ) )
        add_theme_support( 'automatic-feed-links' );

    Removing

    <?php wp_head(); ?>

    will break a bunch of stuff, I do not recommend it.

    Forum: Fixing WordPress
    In reply to: Using h1 tags

    You need to close the tag with </h1>

    <h1>Below is a list of the specialty workshops TTT will offer this year.</h1>

    If it is just giving you a directory listing it is probable that index.php is not defined as one of the default documents. Look at the site in IIS Manager and see what the default documents are set to. I move index.php to the top.

    Also keep in mind that web.config is the IIS equivilant of .htaccess any changes to this web sites config that differ from the server defaults will be saved here. For wp, rewrite rules (pretty permalinks) are the most common.

    Ok: Now it gets a bit more complicated. The error you mention is 500.19:

    500.19 – Server error: Data for this file is configured improperly.The requested page cannot be accessed because of a configuration error.

    How did you set up php? was it by hand or with the automatic installer? This error indicates that the php is not being handled correctly.

    This article https://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis-70/ walks you through the process. This article was written for IIS 7, but will apply to IIS 7.5 as well.

    In addition, if your server is 64 bit, you should set ‘enable 32 bit applications’ to true in your application pools settings.

    I would first check and see that php and MySQL are working.

    Create a file in the root of the wordpress directory (you said it is : Desktop/websites/wordpress-2.9.1/wordpress) and save it as phpinfo.php

    It should have the following in it
    <?php phpinfo(); ?>

    Now browse to https://localhost:80/phpinfo.php

    Look at the results you should see the php version at the top along with all the settings. Look for a section titled: Mysql and/or mysqli

    If the phpinfo.php file errors out or displays the text, you have an issue with the php install.

    If there is no mysql or mysqli section there is an issue with the mysql extension. Based on your first comment, this is the most likely culprit.

    If the phpinfo.php returns good results and has a mysql/mysqli stanza, The issue could be a known bug with IPv6 and php 5.3.1 on IIS7/7.5

    Look at your hosts file. It may have the following:

    127.0.0.1       localhost
    ::1             localhost

    If it does change it to:

    127.0.0.1       localhost
    #::1             localhost

    This will comment out IP v6 for localhost and allow php 5.3.1 and mysql to work on iis 7/7.5

    Give these a try and let us know how it turns out.

    I know that it has been said that 3.0 is ‘just’ the release number that follows 2.9, but many look at it is a Major release.

    With the MU merge, it is hard to justify that it is just the next release.

    I would like to see 3.0 focus on the MU merge and add (as @donnacha has suggested) the support for multiple domain management. This is no small task, but I think it is important to do it right and not fast.

    I would like to see a new default theme, and I think it will be necessary with the MU merge.

    Beyond that, I would prefer new features to be pushed to the 3.1 and later releases. The MU merge and a new default theme should be enough for 3.0.

Viewing 15 replies - 31 through 45 (of 50 total)