Php problem: Could not load all isapi filters for ...
Posted: Thu Jun 14, 2007 11:01 pm
Hi,
I am having a problem running php files on a windows server 2003 sp1, IIS 6 box. It was working a while back but has stopped now not sure if it is something i have done, but i doubt it since I have touched the server config since it was installed. Other [s]ppl[/s] people have access to it so it may have been altered by someone else. But i have to fix it.
Symtoms: website requires windows authenication only for php files .htm and .asp works fine
The application log is giving the following error.
Could not load all ISAPI filters for site/service. Therefore startup aborted.
Source: W3SVC-WP
Category: None
Type: Error
User: N/A
Computer: <MachineName>
Data (bytes): 0000: 05 00 00 00
I have done the following to install the service:
1. Downloaded and unzipped php-5.2.1-win32.zip to "d:\Php"
2. PHPRC environment variable has been set to "D:\Php" (and server has been rebooted since)
3. Windows PATH environment variable has had "D:\Php" added (and server has been rebooted since)
3. Php recommended ini file has been rename to php.ini and configured (see below for relevant settings)
4. Php installs file have the following permissions (propogates to sub dirs)
SYSTEM - all permissions
IUSR_<MachineName> - read, read & execute, (folder has list contents)
IWAM_<MachineName> - same as above
NETWORK - same as above
5. The website in question (only one site is configured for php) the root folder has same permissions as above
6. IIS -> Web Service Extensions -> Added "d:\Php\php5isapi.dll" set to allowed
7. IIS -> Web Sites -> <Specific Website> -> Home Directory -> Configuration -> Mappings -> added .php in application extensions pointed to "d:\Php\php5isapi.dll" (verbs: GET,POST,HEAD)
8. IIS -> Web Sites -> <Specific Website> -> home directory -> Execute permission = scripts only
9. IIS -> Web Sites -> <Specific Website> -> Documents -> added index.php to default content page
Php.ini relevant config: (php.ini is in "d:\php")
extension_dir = "D:\Php\ext"
doc_root = (left blank as I think that if u have multiple sites this causes a problem)
cgi.force_redirect = 0 (not sure if this is relevant since I am trying to use ISAPI)
I installed it a while back but i have checked that he steps above are still valid and relaxed some of the file permissions to what is above.
I did not check or alter the registry since I have never need to do it before with php.
There are no isapi filters added to the <specific website> or "websites" under IIS. I was under the impression that this isn't necessary I have a feeling i am wrong since if i do add it authentication is no longer needed but it returns an empty page.
I know that the permissions above are a bit over zealous but I wanted to make sure it wasn't that.
If [s]u[/s] you need anymore configuration information [s]plz[/s] please ask.
Any help would be very much appreciated. It has been driving me up the wall.
I am having a problem running php files on a windows server 2003 sp1, IIS 6 box. It was working a while back but has stopped now not sure if it is something i have done, but i doubt it since I have touched the server config since it was installed. Other [s]ppl[/s] people have access to it so it may have been altered by someone else. But i have to fix it.
Symtoms: website requires windows authenication only for php files .htm and .asp works fine
The application log is giving the following error.
Could not load all ISAPI filters for site/service. Therefore startup aborted.
Source: W3SVC-WP
Category: None
Type: Error
User: N/A
Computer: <MachineName>
Data (bytes): 0000: 05 00 00 00
I have done the following to install the service:
1. Downloaded and unzipped php-5.2.1-win32.zip to "d:\Php"
2. PHPRC environment variable has been set to "D:\Php" (and server has been rebooted since)
3. Windows PATH environment variable has had "D:\Php" added (and server has been rebooted since)
3. Php recommended ini file has been rename to php.ini and configured (see below for relevant settings)
4. Php installs file have the following permissions (propogates to sub dirs)
SYSTEM - all permissions
IUSR_<MachineName> - read, read & execute, (folder has list contents)
IWAM_<MachineName> - same as above
NETWORK - same as above
5. The website in question (only one site is configured for php) the root folder has same permissions as above
6. IIS -> Web Service Extensions -> Added "d:\Php\php5isapi.dll" set to allowed
7. IIS -> Web Sites -> <Specific Website> -> Home Directory -> Configuration -> Mappings -> added .php in application extensions pointed to "d:\Php\php5isapi.dll" (verbs: GET,POST,HEAD)
8. IIS -> Web Sites -> <Specific Website> -> home directory -> Execute permission = scripts only
9. IIS -> Web Sites -> <Specific Website> -> Documents -> added index.php to default content page
Php.ini relevant config: (php.ini is in "d:\php")
extension_dir = "D:\Php\ext"
doc_root = (left blank as I think that if u have multiple sites this causes a problem)
cgi.force_redirect = 0 (not sure if this is relevant since I am trying to use ISAPI)
I installed it a while back but i have checked that he steps above are still valid and relaxed some of the file permissions to what is above.
I did not check or alter the registry since I have never need to do it before with php.
There are no isapi filters added to the <specific website> or "websites" under IIS. I was under the impression that this isn't necessary I have a feeling i am wrong since if i do add it authentication is no longer needed but it returns an empty page.
I know that the permissions above are a bit over zealous but I wanted to make sure it wasn't that.
If [s]u[/s] you need anymore configuration information [s]plz[/s] please ask.
Any help would be very much appreciated. It has been driving me up the wall.
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:11. Please use proper, complete spelling when posting in the forums. AOL Speak, leet speak and other abbreviated wording can confuse those that are trying to help you (or those that you are trying to help). Please keep in mind that there are many people from many countries that use our forums to read, post and learn. They do not always speak English as well as some of us, nor do they know these aberrant abbreviations. Therefore, use as few abbreviations as possible, especially when using such simple words.
Some examples of what not to do are ne1, any1 (anyone); u (you); ur (your or you're); 2 (to too); prolly (probably); afaik (as far as I know); etc.