Getting this error after installing PHP

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
blindleaf
Forum Newbie
Posts: 6
Joined: Thu Jun 16, 2005 9:36 am

Getting this error after installing PHP

Post 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 :)
User avatar
Skara
Forum Regular
Posts: 703
Joined: Sat Mar 12, 2005 7:13 pm
Location: US

Post 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.
blindleaf
Forum Newbie
Posts: 6
Joined: Thu Jun 16, 2005 9:36 am

Post by blindleaf »

thank you very much, its now running and working fine, i'm a newbie so thanks for the quick response,

Ryan
Post Reply