« Previous Next »

Thread: install php on IIS 6

Last post 01-19-2007 1:54 AM by Juha_74. 15 replies.

Average Rating Rate It (5)

RSS

Page 1 of 2 (16 items) 1 2 Next >

Sort Posts:

  • 12-12-2006, 9:49 AM

    • phdhiren
    • Not Ranked
    • Joined on 11-23-2006, 11:01 AM
    • India
    • Posts 6

    install php on IIS 6

    I'm trying to install php 4.4.4 on windows 2003 server having IIS 6.0

     It successfully runs the windows binary that are downloaded from php.net site....php-4.4.4-installer.exe

    During that I've also selected for IIS 6 or higher.

    But after that  .php file doesn't run... it shows 404 error?

    What is missing in my installation way?
     

  • 12-12-2006, 10:40 PM In reply to

    Re: install php on IIS 6

    You need to add a web service extension and allow it to execute.  IIS6 doesn't serve unknown MIME types.

    http://hostlibrary.com/ConfiguringPHP5torunonIIS6WindowsServer2003.html

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 12-15-2006, 12:27 AM In reply to

    • phdhiren
    • Not Ranked
    • Joined on 11-23-2006, 11:01 AM
    • India
    • Posts 6

    Re: install php on IIS 6

    hi steve,

    Above link was very helpful to me thanks.

     Actually I need to install PHP 4.4.4 with IIS6, the above link describe that with PHP5. Anyways It was very much simillar.  just instead of php5isapi.dll , I've selected php4isapi.dll

    once again thanks.

     

  • 12-25-2006, 5:33 AM In reply to

    • RubalJ
    • Top 500 Contributor
    • Joined on 05-24-2006, 8:26 AM
    • Bangalore, India
    • Posts 16

    Re: install php on IIS 6

    Setting up PHP CGI 4.4.x to run on IIS

     http://www.visualwin.com/PHP/

    Thanks

     

    Rubal Jain
    System Administrator
  • 01-16-2007, 9:16 AM In reply to

    Re: install php on IIS 6

    You could also just use an installer such as the one I developed;

    IIS Aid PHP Installer

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    www.iis-aid.com
    My IIS articles
    My PHP articles
    My How-to guides
  • 01-16-2007, 10:09 AM In reply to

    • Juha_74
    • Not Ranked
    • Joined on 01-15-2007, 8:55 AM
    • Helsinki, Finland
    • Posts 7

    Re: install php on IIS 6

    brashquido:

    You could also just use an installer such as the one I developed;

    IIS Aid PHP Installer

     Hi there,

     

    I just installed PHP Installer. Installing wen't through but for some reason I can't get IIS working with PHP files.

    When I try to open some php extensioned file from my browser I get error message:

    'HTTP Error 404 - File or directory not found.
    Internet Information Services (IIS)'

    Do you know what else should I do? Could problem be with file extension .php under my website?

    I'm trying to install Coppermine gallery on my website. My webser is running IIS 6 on Windows 2003 server.
     

    Thanks in advance
     

  • 01-16-2007, 10:52 AM In reply to

    Re: install php on IIS 6

    Sounds like you might have a permissions issue. Ensure that your IIS user account (usually IUSR_COMPUTERNAME unless otherwise specified) has NTFS read permissions on your coppermine files.
    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    www.iis-aid.com
    My IIS articles
    My PHP articles
    My How-to guides
  • 01-16-2007, 4:58 PM In reply to

    • Juha_74
    • Not Ranked
    • Joined on 01-15-2007, 8:55 AM
    • Helsinki, Finland
    • Posts 7

    Re: install php on IIS 6

    Hi,

    I thought first too that the problem is with NTFS rights on Coppermine folder. I added write permission to all Coppermine files. Unfortunately it wasn't about user rights. I still can't get non of PHP files working.

    If only I would now where should I start digging what's the poroblem. Dammit :-/

     

  • 01-16-2007, 5:31 PM In reply to

    • Juha_74
    • Not Ranked
    • Joined on 01-15-2007, 8:55 AM
    • Helsinki, Finland
    • Posts 7

    Re: install php on IIS 6

    By the way. What is that last note about web extension? When I checked under IIS Managers Web Service Extension there is extension called: 'PHP_FastCGI'. It' on 'alloweb' state like it should be, right?

    Should I try something else after installing PHP installer? 

     PHP Aid

     

  • 01-16-2007, 10:43 PM In reply to

    Re: install php on IIS 6

    Microsoft released a FastCGI product that can be installed on IIS.  Have you installed this by chance?  I don't think the PHP you are trying and that are the same thing.  I personally haven't installed FastCGI but that sounds like what you are asking.  You'll need to setup a separate or verify after the installer is done a PHP web service extension is pointed to your version of PHP.

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 01-17-2007, 1:41 AM In reply to

    Re: install php on IIS 6

    Have you set your default document for your coppermine gallery correctly (usually index.php for PHP apps)? Is you home directory for your coopermine directory set correctly? Another thing in might be is if you setup your coppermine site before installing the IIS Aid PHP Installer. I configured it so that it just alters the default PHP scriptmap, leaving existing PHP scriptmaps in tact. If you delete the coppermine website in the IIS manager and then recreate it I wouldn't be suprised if it just started working.
    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    www.iis-aid.com
    My IIS articles
    My PHP articles
    My How-to guides
  • 01-17-2007, 11:24 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 10:27 AM
    • Central NJ
    • Posts 6,237
    • IIS MVPs

    Re: install php on IIS 6

    Hey - you didn't tell me about your tool!  : )

    I just added it to my site.

  • 01-17-2007, 5:42 PM In reply to

    Re: install php on IIS 6

    Hey Tom,

    I still have a few small issues to work out, which is why it is still in beta. Once that is done I plan on maintaining PHP installers for every major version of PHP. Thanks for adding to your site :)

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    www.iis-aid.com
    My IIS articles
    My PHP articles
    My How-to guides
  • 01-18-2007, 8:07 AM In reply to

    • Juha_74
    • Not Ranked
    • Joined on 01-15-2007, 8:55 AM
    • Helsinki, Finland
    • Posts 7

    Re: install php on IIS 6

    Hi there,

    Dominic, none of my php webpages aren't working. I think that problem is still that PHP isn't working on my IIS server. I just copied test.php file here. Web server should bounce back to browser  this answer . But nothing happens so it seems that PHP isn't working :-/ I have to hunt down what's the problem.

    Steve, I'm not familiar with FastCGI. If I understood your message right is FastCGI substitute for PHP environment for IIS?

     And thanks guys for your help.

     

  • 01-18-2007, 5:09 PM In reply to

    Re: install php on IIS 6

    Seems to be working for me, but looks like you might have several versions of PHP present as your test.php file is reporting PHP 5.2.0. You might want to check with your web app provider (this case coppermine) to ensure PHP 5.2.0 compatibility as otherwise you could be headed for more headaches.
    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    www.iis-aid.com
    My IIS articles
    My PHP articles
    My How-to guides
Page 1 of 2 (16 items) 1 2 Next >
Microsoft Communities