dennis wrote:
> If this has been asked a million times please forgive.
> I have installed php4 and mod_php4 via rpm on my redhat7.0 system.
> I added the "AddType" entry in httpd.conf but I still can't get Apache or
> use .php files, all I get is a dump of the file in my browser.
My working config has the following 3 critical lines to get PHP working:
LoadModule php4_module lib/apache/libphp4.so
AddModule mod_php4.c
AddType application/x-httpd-php {your favourite PHP file extenstions
here}
(Alongside a bucketfull of <IfModule...> sections to allow "easy"
enabling or disabling of SSL, PHP, and a number of other pieces.)
Also check the ServerRoot directive; I seem to recall that it was set
incorrectly out of the box for some reason.
Make sure the file extension you're trying to use is listed in the
AddType.
When restarting Apache, use:
$ /etc/init.d/httpd restart
Recent versions of RedHat seem to use a number of command-line defines
for Apache modules for some reason. All of them get packaged up nice
and hidden in the scripts in /etc/rc.d/init.d.
RedHat also seems to have goofed with the rc?.d symlinks for the various
runlevels; several critical ones (named, postgres, for instance) are
set to shut down in all 7 runlevels...
-kgd
--
Money is overrated.
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]