lordvader Posted May 22, 2007 Share Posted May 22, 2007 Hi I'm getting a 'The specified module could not be found.' error when trying to open a php page with my browser. Here's the situation: I'm trying to get php 5.2.2 installed on my w2k pro so I can practice writing themes for wordpress. I installed the iis + pws that comes with w2k pro and pointed the home directory to d:\webserver I installed php 5.2.2 and selected a very simple installation for iis - no cgi or extensions enabled. The windows PATH points to the php install folder, as well as the variable phprc. Php is listed as an extension under 'app mappings' in the iis manager. All folder permissions are set to 'everyone', since this is just a practice machine. The php.ini is mostly unaltered, except to point doc_root to d:\webserver\Inetpub\wwwroot. The webserver works fine - I can view html documents in my browser just fine. But if I try to open a php one, it gives the error mentioned above. What am I missing? TIA Quote Link to comment Share on other sites More sharing options...
tomfmason Posted May 22, 2007 Share Posted May 22, 2007 I would double check to make sure that you have the php extension mapped properly. This may be of some help http://www.phpfreaks.com/forums/index.php/topic,128400.msg538359.html#msg538359. Generally when you see that error you have not mapped the php extension correctly. You may also want to check the event viewer after viewing a php script. If you get an error please post the event id number. Also, did you use the installer or ? Quote Link to comment Share on other sites More sharing options...
lordvader Posted May 22, 2007 Author Share Posted May 22, 2007 well that link recommends changing the mapping from php5isapi.dll to php.exe. Tried that, and loaded a php page, and it just says "waiting..." while never completing the load. Interesting thing about the app mapping page I noticed just now - when php gets installed, it creates the php extension mapping automatically. However, it puts the string in quotes, and also includes an extra backslash. So the map looks like this: .php "d:\PHP\\php5isapi.dll" So I changed it to: .php d:\PHP\php5isapi.dll And now I get this error when loading a page: "No input file specified." Any suggestions on how to proceed from here? TIA Quote Link to comment Share on other sites More sharing options...
lordvader Posted May 22, 2007 Author Share Posted May 22, 2007 I changed the mapping to point to php-cgi.exe and now it works... mostly. It loads php files just fine, but afterwards it adds "Error in my_thread_global_end(): 3 threads didn't exit" to the end of the page. Quote Link to comment Share on other sites More sharing options...
lordvader Posted May 22, 2007 Author Share Posted May 22, 2007 okay, reinstalled everything, but this time enabling cgi instead of isapi, and making sure that the mapping points the php extension to d:\php\php-cgi.exe and everything is just great. Thanks for your help, it got me into the right direction! Quote Link to comment Share on other sites More sharing options...
ashishshukla Posted May 29, 2007 Share Posted May 29, 2007 change the path in php.ini Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.