Need a hand getting php started.

Alexander Dalloz ad+lists at uni-x.org
Sun Apr 3 22:30:54 UTC 2005


Am So, den 03.04.2005 schrieb Steven W. Orr um 23:55:

> =>| I'm trying to get php working.
> =>|
> =>| This is in my apache error log:
> =>|
> =>| [Sat Apr 02 19:55:09 2005] [error] [client 207.172.210.41] (8)Exec
> =>| format error: exec of '/e/web/cgi-bin/phpinfo.php' failed
> =>| [Sat Apr 02 19:55:09 2005] [error] [client 207.172.210.41] Premature end
> =>| of script headers: phpinfo.php
> =>| [Sat Apr 02 19:55:09 2005] [error] [client 207.172.210.41] File does not
> =>| exist: /e/web/steveo/favicon.ico
> =>|
> =>| I have a file in a cgi directory:
> =>|
> =>| [root at saturn cgi-bin]# cat phpinfo.php
> =>| <?php phpinfo();?>
> =>|

> I appreciate the pointers. It turns out that I needed to upgrade my 
> httpd.conf against the httpd.conf.rpmnew that I was not using. I have now 
> done so and everything seems to work ok. Except that my phpinfo.php still 
> behaves exactly the same as described above.

You need to place the php file with the "<?php phpinfo();?>" to be
outside the CGI directory. Please see the CGI documentation on
apache.org.

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.10-1.771_FC2smp 
Serendipity 00:29:12 up 4 days, 21:55, load average: 0.83, 0.90, 0.70 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20050404/e81c29a1/attachment-0001.sig>


More information about the fedora-list mailing list