Jump to content

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/88365-php-525-not-working-on-apache-228/
Share on other sites

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

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?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.