Re: Need a hand getting php started.

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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

- -Andy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFCT6QJjKeDCxMJCTIRAroKAKCQJeEK7cYWeGzmX+VZXj8ERqeAmACdG75f
gI39zzDVjPUKuDz+tML4r10=
=ZQuP
-----END PGP SIGNATURE-----


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux