Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to get PHP to run?

Status
Not open for further replies.

johngordon

Technical User
Jun 29, 2002
112
0
0
US
I've installed Apache 2.0.5 (Windows Installer Package) and PHP 4.3.7, I'm running XP Pro.

Apache is up and running no problem. I've read everything I can find on configuring PHP and have done most everything I have read about. I still can not get PHP to interface with Apache.

Can someone help me out here. Should I not have used the Apache Window Installer Package? I'm totally lost.

Thanks,

John
 
Do you have:

AddType application/x-httpd-php .php

in your httpd.conf file?

OR

LoadModule php4_module /usr/lib/apache/1.3/libphp4.so

in your modules.conf?
 
Ok great! Now it's loading with Apache.

Apache/2.0.50 (Win32) PHP/4.3.7 Server at 4.4.208.11 Port 80

When I try to open a php page I get an Internal Server Error message.

[Tue Jul 06 17:24:45 2004] [error] [client 4.4.208.11] C:/Program Files/Apache Group/Apache2/cgi-bin/Page.php is not executable; ensure interpreted scripts have "#!" first line

[Tue Jul 06 17:24:45 2004] [error] [client 4.4.208.11] (9)Bad file descriptor: don't know how to spawn child process: C:/Program Files/Apache Group/Apache2/cgi-bin/Page.php

Any ideas?

Thanks,

John
 
johngordon,

It sounds like Apache is trying to execute your PHP code, and your PHP code is not executable by itself. Have you made any progress in the last 10 days?

Wishdiak
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top