Previous Next

Thread: WordPress in PHP via FastCGI

Last post 07-02-2008 11:32 PM by peaceable_whale. 6 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (7 items)

Sort Posts:

  • 07-02-2008, 1:00 AM

    WordPress in PHP via FastCGI

    The customize permalink structure "/index.php/%year%/%monthnum%/%day%/%postname%/" does not work on IIS 5.1, PHP 5.2.6 via FastCGI RTM and WordPress 2.5.1.

    I have set fastcgi.impersonate = 1, cgi.fix_pathinfo = 1 and cgi.force_redirect = 0 in the php.ini file with reference to http://learn.iis.net/page.aspx/247/using-fastcgi-to-host-php-applications-on-iis-60/.

    Does anybody have any idea why the customize permalink doesn't work?

    Franklin Tse (whale)
  • 07-02-2008, 6:18 AM In reply to

    • Alex.W474
    • Top 100 Contributor
    • Joined on 05-15-2008, 1:16 AM
    • Posts 26
    • Alex.W474

    Re: WordPress in PHP via FastCGI

    It seems that IIS PHP FastCGI does not support links like

    http://localhost/file.php/any/path/here

    So the problem is not wordpress specific.

  • 07-02-2008, 7:16 AM In reply to

    Re: WordPress in PHP via FastCGI

    Thanks for the information. Is the IIS Team aware of this problem?

    Franklin Tse (whale)
  • 07-02-2008, 1:09 PM In reply to

    • ruslany
    • Top 50 Contributor
    • Joined on 07-01-2007, 3:38 PM
    • Redmond, WA
    • Posts 101
    • ruslany

    Re: WordPress in PHP via FastCGI

    IIS FastCGI does support URL's that use path info (e.g. /index.php/foo/bar). When I tried it sometime ago I was able to use customized permalink structure. However, I used PHP 5.2.5 and Wordpress 2.2; may be latest version of PHP or Wordpress has some changes that break that?

    Do you get any errors when you try to use custom permalink structure?

    http://ruslany.net
  • 07-02-2008, 1:20 PM In reply to

    Re: WordPress in PHP via FastCGI

    WordPress can successfully save the setting and modify the links. However, IIS returns 404 Not Found.

    Franklin Tse (whale)
  • 07-02-2008, 5:10 PM In reply to

    • brashquido
    • Top 25 Contributor
    • Joined on 05-22-2006, 12:31 AM
    • Australia
    • Posts 153
    • brashquido

    Re: WordPress in PHP via FastCGI

    I think you are bang out of luck if you are trying to use Wordpress permalinks on IIS 5.1. Basically IIS 5.x reads the PATH_INFO and PATH_TRANSLATED values back the front to what you need, which means you are never going to get Wordpress permalinks to work on IIS 5.x without getting in and altering some code. Have a read through this forum topic where I had the same issue (though I was using PHP ISAPI). This is NOT an issue on IIS 6, and I haven't tested wordpress on IIS 7 yet but I'd say it'll be fine.

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    www.iis-aid.com
    My IIS articles
    My PHP articles
    My How-to guides
  • 07-02-2008, 11:32 PM In reply to

    Re: WordPress in PHP via FastCGI

    Thank you for the information.

    I will use the default WordPress permalink structure instead...

    Franklin Tse (whale)
Page 1 of 1 (7 items)
Page view counter