Re: Problem with CGI scripts apparently caused by mod_php4
| From: | Stuart Dallas | Date: | Sun, 06 Oct 2002 22:36:37 +0000 |
| Subject: | Re: Problem with CGI scripts apparently caused by mod_php4 | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-8697@lists.php.net to get a copy of this message | ||
James Mackie wrote:
Yesh.. Apache 1.3.26 and PHP 4.2.2.. I had a bunch of scripts that I ahd written running fine on thhe server until I installed PHP.. As soon as I installed PHP they stopped working.. Same error.. I rewrote them all in PHP since they were pretty critical and I didn't have time to figure out why this was happening..Unfortunately I don't have the luxury of the option of rewriting the scripts. I really need to get this problem solved so I would really appreciate any insight anyone can offer. Thanks. -- Stuart > -----Original Message----- > From: Stuart Dallas [mailto:lists@sharedserver.net] > Sent: Sunday, October 06, 2002 12:25 PM > To: php-install@lists.php.net > Subject: [PHP-INST] Problem with CGI scripts apparently caused by > mod_php4 > > > Hi, > > I have Apache 1.3.27 and mod_php4 4.2.3 installed on a FreeBSD 4.6.2 > machine. PHP works fine. However, I also need to be able to execute CGI > scripts. When I try to use printenv (simple shell script that outputs > the environment variables) it returns a "500 Internal Server Error" and > the Apache error log gives the error of "Premature end of headers". > > If I comment out the LoadModule and AddModule lines in httpd.conf for > PHP, it works. Has anyone seen this before? > > Thanks. >