Application Pool

Unable to run Perl or PHP in Application Pool Isolation
Posted in Server Administration by Andy @ ServerTastic on the November 3rd, 2005

When a domain is running within it's own Application Pool (Windows 2003 IIS6) which has it's own identity CGI scripts such as Perl or PHP fail to execute. The usual error message is

HTTP Error 403 - Forbidden: Access is denied

Each Application Pool identity should be a member of the IIS_WPG to ensure the site has adequate permissions to run. However by default the IIS_WPG is denied the ability to run CGI applications which will cause the application pool to fail when trying to run one of these for that site.

We need to make some adjustments to the servers Local Security Policies.

START > Administrative Tools > Local Security Policy

Select Local Policies > User Rights Assignment

In the list present find Adjust memory quotas for a process right click on this and select properties. Then Add User or Group > Object Types tick the Groups box and then OK the Object Types dialogue. Now in the box Enter the object names to select box type IIS_WPG and then OK this and the other dialogue box.

The same process now needs to be done for Replace a process level token

The IIS_WPG now has the appropriate rights to execute CGI applications. You may need to reboot your server for these settings to take effect.

Would you like to...

Print this page Print this page

Email this page Email this page

Post a comment Post a comment

Subscribe me

Add to favoritesAdd to favorites

User Opinions

100% thumbs up 0% thumbs down (43 votes)

How would you rate this answer?

Helpful
Not helpful
Thank you for rating this answer.

Visitor Comments

No visitor comments posted. Post a comment

Related Questions

No related questions were found.

Attachments

No attachments were found.