Need a hand getting php started.

Steven W. Orr steveo at syslang.net
Sun Apr 3 21:55:11 UTC 2005


On Sunday, Apr 3rd 2005 at 09:06 +0100, quoth Andy Green:

=>--[PinePGP]--------------------------------------------------[begin]--
=>Steven W. Orr wrote:
=>| 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();?>
=>|
=>| Any ideas?
=>
=>Your php file does not need to be in a CGI directory, it should be able
=>to work anywhere on your webserver by default.
=>
=>PHP "just works" if you install the correct RPMs, IIRC.  You did install
=>the Fedora distro packages for PHP, right?  Because that is the way to
=>go rather than installing PHP by hand from somewhere else.
=>
=>yum install php
=>
=>When you're set up right, you should have a file
=>/etc/httpd/conf.d/php.conf which sorts out all the apache config for php.
=>
=>Don't forget
=>
=>service httpd restart
=>
=>after making any changes or installing any httpd-related packages.

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.

It is Core 3, all installed from RPMs.

I just need a clue where to start. Anyone? Would it help if I made my conf 
files available? I made the httpd.conf available at 
http://steveo.syslang.net/httpd.conf

Thanks.

-- 
Time flies like the wind. Fruit flies like a banana. Stranger things have  .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net




More information about the fedora-list mailing list