[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Need a hand getting php started.



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 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 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]