Page 1 of 1

Getting this error after installing PHP

Posted: Thu Jun 16, 2005 9:42 am
by blindleaf
Hey i'm getting this error in my error.log of my apache server. I install Apache, MySQL, and PHP, and i created a file called phpinfo.php to test the installation of my PHP but now when i try to open it under my localhost in my browser (http://localhost/phpinfo.php), i get a HTTP 404 error even though the file is in the directory. Here's the error that is continually being displayed on my error.log:

[Thu Jun 16 10:26:06 2005] [error] [client 127.0.0.1] script not found or unable to stat: C:/Server/PHP/php.exe
[Thu Jun 16 10:26:07 2005] [error] [client 127.0.0.1] script not found or unable to stat: C:/Server/PHP/php.exe
[Thu Jun 16 10:36:25 2005] [error] [client 127.0.0.1] script not found or unable to stat: C:/Server/PHP/php.exe

i went to my C:/Server/PHP/ folder where i installed my PHP and i can't find PHP.exe, what do i need to do? i do have a file called "php-cgi.exe" but no php.exe, do i need to reinstall PHP or what? thanks!

Ryan Perrott
MyGuitarTabs.com :)

Posted: Thu Jun 16, 2005 12:16 pm
by Skara
php4 uses php.exe. php5 uses php-cgi.exe. You need to change php.exe to php-cgi.exe in your settings somewhere.

Posted: Thu Jun 16, 2005 7:41 pm
by blindleaf
thank you very much, its now running and working fine, i'm a newbie so thanks for the quick response,

Ryan