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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

php- cgi configuration

Status
Not open for further replies.

goodtalka

Programmer
Jun 11, 2002
12
IN
I have problem in setting up PHP as cgi executable.I am using apache sever. I have followed the steps for installing PHP as cgi executable (i.e., installing without the -- with-apxs option).The PHP programs work fine through apache server when referenced in the htdocs directory,but fails when referenced to php files in cgi-bin directory.
It gives the following errors in error log file :
Exec format error : exec of /usr/local/apache/cgi-bin/<filename>.php
Premature end of script headers : /usr/local/apache/cgi-bin/<filename>.php
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top