Re: Apache / PHP4 config problem (newbee on PHP)
Be sure to add these lines to your httpd.conf:
AddType application/x-httpd-php .php .php3 .phtml
AddType application/x-httpd-php-source .phps
(you technically only need the .php suffix, but I put all of them in
there for backwards compatibility... you also don't really need the
.phps one if you don't wish to see php code formatted in the browser.)
On Wednesday, January 15, 2003, at 08:32 AM, Gregoire Hostettler wrote:
Thank you for your response.
I moved the script to its original location (/var/www) but I get a
- Using IE6, the browser asks me if I want to download the test.php
- If I rename the .php script to .html, it displays just the header,
else, which is correct imho
- If I try to access test.php via lynx, it just displays the html text.
There is a tmp html file created, althought
It seems to me that the php4 engine never starts to generate pages...
Any other idea ?
PHP/4.0.3pl1 mod_perl/1.21_03-dev configured -- resuming normal
On wo, 2003-01-15 at 13:50, Gregoire Hostettler wrote:
Got a (supposed) config problem with PHP4/Apache.
OS: Debian potato 2.2r7, kernel 2.2.19
Apache 1.3.9 (Debian implementation)
Attached are both the httpd.conf and srm.conf files, along with the
access.log, error.log, php script involved and the output of apache
Only the error.log was enough:
[Wed Jan 15 14:29:55 2003] [notice] Apache/1.3.9 (Unix) Debian/GNU
[Wed Jan 15 14:29:55 2003] [notice] suEXEC mechanism enabled (wrapper:
[Wed Jan 15 14:31:49 2003] [error] (8)Exec format error: exec of
[Wed Jan 15 14:31:49 2003] [error] [client 192.168.124.1] Premature
script headers: /usr/lib/cgi-bin/test.php
You are placing html files in cgi-bin directories. Don't do that,
because cgi-bin directories are reserved only for cgi scripts, not
or php files. Just place the .php file in /var/www and I think it
To UNSUBSCRIBE, email to firstname.lastname@example.org
with a subject of "unsubscribe". Trouble? Contact