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) > PHP4 4.0.3pl1-0p > > 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 -V > (apachev file).
Only the error.log was enough: [Wed Jan 15 14:29:55 2003] [notice] Apache/1.3.9 (Unix) Debian/GNU PHP/4.0.3pl1 mod_perl/1.21_03-dev configured -- resuming normal operations [Wed Jan 15 14:29:55 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec) [Wed Jan 15 14:31:49 2003] [error] (8)Exec format error: exec of /usr/lib/cgi-bin/test.php failed [Wed Jan 15 14:31:49 2003] [error] [client 192.168.124.1] Premature end of 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 html or php files. Just place the .php file in /var/www and I think it should work. -- Tot ziens, Bart-Jan Vrielink -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]