I've gone to the Web Platform Installer and installed PHP. However, when I run my info.php (phpinfo()), I get a 404 error. Looking at the mappings extensions there is no .php extension defined. Shouldn't the installer have configured that?... or do I
need to make a manual entry of some kind.
Yes PHP installer should have done it. The only reason this can be missed by installer is if you do not have Microsoft FastCGI installed. Do you have Microsoft FastCGI installed properly? Can you do some troubleshooting using
http://blogs.iis.net/donraman/archive/2009/11/15/troubleshooting-php-installation-on-windows.aspx and see if FastCGI is present or not. Also let me know the oputput of each command mentioned n the blog.
If FastCGI is present simply uninstall PHP and reinstall it again from the installer. Please ensure that while running PHP MSI, you are chosing to configure 'IIS FastCGI'.
All said, WPI should have configured everything for you. So there is somethng which went wrong somewhere.
In ini there were no entries after [Types]. I copied the php=PHP and then everything under the [PHP] section.
Hmmm. This means FastCGI is not configured/installed correctly. A properly installed FastCGI should have proper INI file as outlined in my blog. Also second script not producing any output means that handler mapping for PHP is not present. Can you also ensure
that you have 'fcgiconfig.js' in the same folder as 'fcgiext.dll'. PHP MSI uses this script to create mapping for PHP handler as well as adds 'index.php' to default document if not already added.
stevericketts
php-cgi.exe -v failed because I didn't have msvcr71.dll. So, I found it and that worked ok after that.
This error is because of extension php_msssql.dll. This DLL is dependent on msvcr71.dll. Good that is is working fine.
Please uninstall PHP from Control Panel--->Add/Remove Programs and try installing it again using WPI. Ensure that handler mapping is configured properly. MSI should do that.
<div mce_keep="true">Go to Control Panel--->Add/Remove program and uninstall</div>
<div mce_keep="true">PHP 5.2.11</div>
<div mce_keep="true">IIS FastCGI</div>
<div mce_keep="true">Please maintain the order of uninstallation.</div>
<div mce_keep="true">Go to C:\Program Files and delete PHP folder.</div>
<div mce_keep="true">Ensure that no other installation of PHP is present in the machine. Neither manual nor using MSI.</div>
<div mce_keep="true">Now invoke WPI and check PHP5.2.11. WPI should show IIS FastCGI as a dependency at the time of installation. Accept the license agreement and click OK.</div>
Ok, I uninstalled PHP then FastCGI... however, it said FastCGI (x86) not IIS FastCGI in uninstall programs. So, I went to WPI and selected PHP. It did identify the IIS FastCGI dependancy. Accepted the agreement and it downloaded and installed.
However, still no .php mapping in IIS. Pages can't be found.
First script still works
Second script, still no output
fcgiconnfig.js does exist
fcgiext.ini has the types I entered... didn't remove that before reinstall
php-cgi.exe -v gives similar output (shows 5.2.11 not 5.3)
php-cgi.exe test.php gives proper output "this is my first php program"
Accessing the test.php from the web browser gives 404 error... and like I said, there are no .php mappings in the default web (port 80).
To answer your last question, this is a 32 bit machine and I removed the program files\php directory.
Should I try to configure the .php mapping manually?
Can you also send me the WPI log files. I would like to take a look. The logs can be found at C:\Documents and Settings\<your user name>\Local Settings\Application Data\Microsoft\Web Platform Installer\logs. Just zip it and mail me at don[dot]raman[at]microsoft[dot]com.
SteveRickett...
12 Posts
Problem with PHP install from Web Platform
Nov 22, 2009 06:25 PM|LINK
I've gone to the Web Platform Installer and installed PHP. However, when I run my info.php (phpinfo()), I get a 404 error. Looking at the mappings extensions there is no .php extension defined. Shouldn't the installer have configured that?... or do I need to make a manual entry of some kind.
Thanks again for all the help,
sr
don.raman
1207 Posts
Microsoft
Moderator
Re: Problem with PHP install from Web Platform
Nov 22, 2009 06:31 PM|LINK
Hi Steve,
Yes PHP installer should have done it. The only reason this can be missed by installer is if you do not have Microsoft FastCGI installed. Do you have Microsoft FastCGI installed properly? Can you do some troubleshooting using http://blogs.iis.net/donraman/archive/2009/11/15/troubleshooting-php-installation-on-windows.aspx and see if FastCGI is present or not. Also let me know the oputput of each command mentioned n the blog.
If FastCGI is present simply uninstall PHP and reinstall it again from the installer. Please ensure that while running PHP MSI, you are chosing to configure 'IIS FastCGI'.
All said, WPI should have configured everything for you. So there is somethng which went wrong somewhere.
Thanks,
Don.
SteveRickett...
12 Posts
Re: Problem with PHP install from Web Platform
Nov 22, 2009 07:44 PM|LINK
Ok FastCGI was installed.
DefaultDoc script worked fine.
Second script didn't produce any output.
I do have fcgiext.dll and fcgiext.ini
In ini there were no entries after [Types]. I copied the php=PHP and then everything under the [PHP] section.
Since this is 2003 I have no appcmd.exe
I do have php-cgi.exe in the proper location
php-cgi.exe -v failed because I didn't have msvcr71.dll. So, I found it and that worked ok after that.
I was going to uninstall PHP and reinstall in the mean time.
sr
SteveRickett...
12 Posts
Re: Problem with PHP install from Web Platform
Nov 22, 2009 07:55 PM|LINK
Reinstalled from the WPI but it doesn't give me any options to configure IIS FastCGI. Just accept the agreement and away it goes.
Still nothing in the mappings for .php and therefore can't find any of the php pages.
don.raman
1207 Posts
Microsoft
Moderator
Re: Problem with PHP install from Web Platform
Nov 22, 2009 07:56 PM|LINK
Hmmm. This means FastCGI is not configured/installed correctly. A properly installed FastCGI should have proper INI file as outlined in my blog. Also second script not producing any output means that handler mapping for PHP is not present. Can you also ensure that you have 'fcgiconfig.js' in the same folder as 'fcgiext.dll'. PHP MSI uses this script to create mapping for PHP handler as well as adds 'index.php' to default document if not already added.
This error is because of extension php_msssql.dll. This DLL is dependent on msvcr71.dll. Good that is is working fine.
Please uninstall PHP from Control Panel--->Add/Remove Programs and try installing it again using WPI. Ensure that handler mapping is configured properly. MSI should do that.
Thanks,
Don.
don.raman
1207 Posts
Microsoft
Moderator
Re: Problem with PHP install from Web Platform
Nov 22, 2009 08:01 PM|LINK
Hi,
Can you do this:
This should install everything.
Thanks,
Don.
don.raman
1207 Posts
Microsoft
Moderator
Re: Problem with PHP install from Web Platform
Nov 22, 2009 08:19 PM|LINK
Hi Steve,
Can you also let me know if your are running 32-bit Windows or 64 bit Windows 2003.
Location of PHP installation on 32 bit Windows: C:\Program Files\PHP
Localtion of PHP installation on 64 bit Windows: C:\Program Files (x64)\PHP
So delete 'PHP' folder appropriately. Also there should be no PHP folder present in C:\Program Files\PHP if you are running 64 bit OS.
Thanks,
Don.
SteveRickett...
12 Posts
Re: Problem with PHP install from Web Platform
Nov 22, 2009 08:29 PM|LINK
Ok, I uninstalled PHP then FastCGI... however, it said FastCGI (x86) not IIS FastCGI in uninstall programs. So, I went to WPI and selected PHP. It did identify the IIS FastCGI dependancy. Accepted the agreement and it downloaded and installed.
However, still no .php mapping in IIS. Pages can't be found.
First script still works
Second script, still no output
fcgiconnfig.js does exist
fcgiext.ini has the types I entered... didn't remove that before reinstall
php-cgi.exe -v gives similar output (shows 5.2.11 not 5.3)
php-cgi.exe test.php gives proper output "this is my first php program"
Accessing the test.php from the web browser gives 404 error... and like I said, there are no .php mappings in the default web (port 80).
To answer your last question, this is a 32 bit machine and I removed the program files\php directory.
Should I try to configure the .php mapping manually?
sr
don.raman
1207 Posts
Microsoft
Moderator
Re: Problem with PHP install from Web Platform
Nov 22, 2009 08:38 PM|LINK
Hi,
This is really strange. Can you go to Control Panel-->Add/Remove Program, select PHP5.2.11 and say 'Change/Repair'. While repairing, select 'IIS FastCGI' for configuration. If this doesn't help, try creating the handler manually as described at http://learn.iis.net/page.aspx/247/using-fastcgi-to-host-php-applications-on-iis-60/
Thanks,
Don.
don.raman
1207 Posts
Microsoft
Moderator
Re: Problem with PHP install from Web Platform
Nov 22, 2009 08:49 PM|LINK
Hi,
Can you also send me the WPI log files. I would like to take a look. The logs can be found at C:\Documents and Settings\<your user name>\Local Settings\Application Data\Microsoft\Web Platform Installer\logs. Just zip it and mail me at don[dot]raman[at]microsoft[dot]com.
Thanks,
Don.