Re: PHP, APache and Mysql on Redhat linux 7.3

From: Date: Tue, 01 Oct 2002 08:32:54 +0000
Subject: Re: PHP, APache and Mysql on Redhat linux 7.3
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-8619@lists.php.net to get a copy of this message
Peter Goggin wrote:
I am trying to move a web application from a win98 machine to a linux (redhat 7.3). This application works as designed on the win98 box. I cannot get it to work properly on the linux box. RH 7.3 has mysql, apache and php already (slightly earlier versions though).
I do not know how do do this for the apache config file. The default file which is on the linux system has a number of </IfDefine HAVE_PHP> </IfDefine> and similar sections. Its done by the Apache start up script in /etc/init.d/httpd. One way to test is to comment out the <IfDefine> around the HAVE_PHP4, and restart apache ("service httpd restart"). If apache complains then something is wrong.
Currently the web site is partially working with a lot of php code being displayed as source. How do you mean "as source"? This sounds like you have not got an
AddType application/x-httpd-php .php .php4 .php3 .phtml line in /etc/httpd/conf/httpd.conf
How do I check php is working independently of Apache? From the command line, "php -v" will print its version number. (Assumes your upgrade also installs a CLI version).
Are there any more rpms I should install? What configurations steps are required to make sure they work together? I have only used the default RH 7.3 installation versions rather than upgrading, so there may be configuration settings I don't know about.
HTH Chris

« previous php.install (#8619) next »