How to Solve Problems Found at PHP on IIS 6

There are many pages that already discuss the issue of installing PHP and configuring the FastCGI out there, so I am not going to discuss it. I will pick up where the installation and configuration issue left, i.e. troubleshooting issue found on post installation and configuration steps.

So, after I’ve make sure the required PHP programs and required FastCGI executable is placed on respective directories, I try to run the testing.php that contains only one statement, i.e. echo:

php00

I got the HTTP 404 error. Checking the respective log files as configured in:

php01

Which is located at c:\WINDOWS\system32\LogFiles folder:

2014-08-13 07:17:27 W3SVC1505940020 xxx.16.96.xxx GET /testing.php – 8080 – xxx.16.22.xxx Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.1;+Trident/4.0;+.NET+CLR+2.0.50727;+.NET+CLR+1.1.4322;+.NET+CLR+3.0.4506.2152;
+.NET+CLR+3.5.30729;+FDM;+.NET4.0C;+.NET4.0E;+yie8) 404 3 50

Checked for error code 50 in http://msdn.microsoft.com/en-us/library/windows/desktop/ms681382%28v=vs.85%29.aspx (System Error Codes), I got:

ERROR_NOT_SUPPORTED

50 (0x32)

The request is not supported.

This is because I haven’t setting the handler for this extension api yet in Home Directory – Configuration:

php02

Then Mappings – Add:

php03

Add the appropriate FastCGI handler:

php04

But I still got HTTP 404 error. This time the log says different error codes:

2014-08-13 06:41:58 W3SVC1505940020 xxx.16.96.xxx GET /index.php – 8080 – xxx.16.22.xxx Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.1;+Trident/4.0;+.NET+CLR+2.0.50727;+.NET+CLR+1.1.4322;+.NET+CLR+3.0.4506.2152;
+.NET+CLR+3.5.30729;+FDM;+.NET4.0C;+.NET4.0E;+yie8) 404 2 1260

Again checked to http://msdn.microsoft.com/en-us/library/windows/desktop/ms681383%28v=vs.85%29.aspx (System Error Codes), I got:

ERROR_ACCESS_DISABLED_BY_POLICY

1260 (0x4EC)

This program is blocked by group policy. For more information, contact your system administrator.

This is because I haven’t perform unblocking of web service extensions:

php05

Now, PHP inside IIS v6.0 is happy 🙂

php06

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: