I am trying to get PHP 5.0.4 to work on my current system. Here are the details and what I have tried.
RH9 (with all official updates applied)
MySQL 3.23.58-1.9
PSA 7.0.4
Machine is a PIII, 360M RAM, 74G total HD space (with LVM). Purely a hobby machine, serving a few webpages from my home, through DSL.
I have been unsuccessul with YUM, for reasons I have not been able to figure out, so all updates are done by downloading rpms from ART (and elsewhere as necessary) and installing from command line.
Initial installation attempt told me that libmysqlclient.so.14 was needed. I learned this is from mySQL 4.1. So I found an rpm available (MySQL-shared-compat-4.1.10-0.i386.rpm) that would provide this file.
Installation then went off without a hitch, and I am able to serve up the phpinfo data through a webpage. However, phpBB (2.0.21) only returned an empty page. Horde, Squirrelmail, and phpmyadmin (2.8.21) all returned mySQL errors, and were unusable.
Am I tilting at windmills in trying to upgrade my php? Would upgrading to mysql 4.0.25 from ART be beneficial?
PHP 5.0.4 on RH9, Mysql 3.0.23, and PSA 7.0.4
Well, I seem to have gotten this to work.
I dropped back php 4.2.2 that came with RH9, and then started systematically reinstalling things. I decided to go ahead and upgrade mysql and so here's what I did.
Installed all the mysql 4.0.25-1.rh90.art files. Everything worked fine.
I found and installed MySQL-shared-compat 4.1.21-1.glibc23 from the MySQL website, since this stated it provided compatibility with 4.0.25 and provided the libmysqlclient.so.14 that php5 requires. Everything still worked find.
I then installed all the php-5.0.4-13.rh90.art files. I copied the php.conf.rpmnew and the php.ini.rpmnew files as per the instructions. Unfortunately, this broke things. All php scripts, including my phpinfo.php file returned nothing but a blank page. If I viewed the source in my browser, all I saw was the php script calling phpinfo. View source from my phpBB board showed nothing.
I finally took a closer look at the php.conf.rpmnew file that I had copied to php.conf. It contained the following:
A quick google search and I found and added
Should I remove
I dropped back php 4.2.2 that came with RH9, and then started systematically reinstalling things. I decided to go ahead and upgrade mysql and so here's what I did.
Installed all the mysql 4.0.25-1.rh90.art files. Everything worked fine.
I found and installed MySQL-shared-compat 4.1.21-1.glibc23 from the MySQL website, since this stated it provided compatibility with 4.0.25 and provided the libmysqlclient.so.14 that php5 requires. Everything still worked find.
I then installed all the php-5.0.4-13.rh90.art files. I copied the php.conf.rpmnew and the php.ini.rpmnew files as per the instructions. Unfortunately, this broke things. All php scripts, including my phpinfo.php file returned nothing but a blank page. If I viewed the source in my browser, all I saw was the php script calling phpinfo. View source from my phpBB board showed nothing.
I finally took a closer look at the php.conf.rpmnew file that I had copied to php.conf. It contained the following:
AddHandler php5-script .php
AddType text/html .php
A quick google search and I found and added
and everything seems to be working correctly.AddType application/x-httpd-php .php .php4 .php3 .phtml
Should I remove
from the file?AddType text/html .php