The main problem with the default redhat versions is that the mysql does not seem to include the max version allowing the use of innodb (at leasst I could not find the rpm on the distribution disks) , hence the reson for installing the later version of everything.
I tried commenting out the if statemsnt and apache complaind tha t mod_php.so did not exist. php -v gives the version 4.1.2 I have the line: AddType application/x-httpd-hp .php .php4 .php3 .phtml However I had ommitted to add .htm ( some of my scripts are htm containing php) The system now works correctly. Many thanks for your patience and help. Regards Peter Goggin ----- Original Message ----- From: "Chris Hewitt" <[EMAIL PROTECTED]> To: "Peter Goggin" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, October 01, 2002 6:32 PM Subject: Re: [PHP-INST] PHP, APache and Mysql on Redhat linux 7.3 > 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 > > -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php