Re: install php4 via rpm

From: Date: Mon, 05 Mar 2001 23:59:24 +0000
Subject: Re: install php4 via rpm
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-2271@lists.php.net to get a copy of this message
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.

« previous php.install (#2271) next »