obyno Posted January 29, 2008 Share Posted January 29, 2008 Hello, I am running Windows XP, SP2 and running php 5.2.5 on a new installation of Apache 2.2.8 as a CGI Binary. Installation goes well and ends successfully with the php but when I try to test for php using the function phpinfo(); I get a variety of errors from a 400 bad request to recently a 404 "The requested URL /PHP/php-cgi.exe/phptest.php was not found on this server." I have edited httpd.conf the way install.txt insists it should be done. Is php 5.2.5 even compatible with Apache 2.2.8 in this mode? Can somebody please help and suggest to me what I need to do to have this up? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted January 29, 2008 Share Posted January 29, 2008 Do you have to use CGI? PHP can be configured using the provided Apache Module, however you'll need to use the php5apache2_2.dll module if you're using Apache2.2.x. Quote Link to comment Share on other sites More sharing options...
obyno Posted January 29, 2008 Author Share Posted January 29, 2008 unfortunately so wild teen, I have to install as a cgi-binary. Can it not be done on Apache 2.2.x. If I knew this to be definitively so, then I can move forward in all good conscience. All the same thanks dude. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted January 29, 2008 Share Posted January 29, 2008 Umm, I have not used PHP as CGI before. However I have managed to install PHP as CGI Binary. I used the following configuration in my httpd.conf: <Directory "C:/Server/PHP"> AllowOverride None Options None Order allow,deny Allow from all </Directory> ScriptAlias /php/ "C:/Server/PHP/" AddType application/x-httpd-php .php Action application/x-httpd-php "/php/php-cgi.exe" NOTE: C:/Server/PHP is where I have installed PHP to. Change C:/Server/PHP to your PHP installation path. Edit: Just to note I am using Apache2.2.6 and PHP5.2.4 Quote Link to comment Share on other sites More sharing options...
obyno Posted January 29, 2008 Author Share Posted January 29, 2008 Thanks once again Wildteen. I applied your config to my current setup i.e. Apache 2.2.8 and php 5.2.5 still under cgi-binary mode and installation went to completion but on pointing to my phpinfo() function page I got a 404 error "The requested URL /php/php-cgi.exe/phptest.php was not found on this server." I checked the error logs and could discern that dynamic libraries were not loading even though I checked and made sure that all the extensions dlls were in the extensions folder. An example of an error message: [Tue Jan 29 20:37:41 2008] [error] [client 127.0.0.1] in Unknown on line 0 [Tue Jan 29 20:37:41 2008] [error] [client 127.0.0.1] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\PHP\\ext\\php_ifx.dll' - The specified module could not be found.\r Can you tell why this might be happening? 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.