How to set up a PHP4 / MySQL4 environment on Ubuntu
Submitted by valerio on Sat, 04/25/2009 - 04:01
Install Dapper Drake (6.06.2 LTS) server NOT the LAMP. This is the last release supporting the 4.x environment unless you compile all the source yourself on Feisty or Hardy.
Enable the universe repository in /etc/apt/sources.list by uncommenting
deb http://us.archive.ubuntu.com/ubuntu/ dapper universe deb-src http://us.archive.ubuntu.com/ubuntu/ dapper universe
Comment out the cdrom repository if you want to avoid prompts about getting packages from it.
#deb cdrom:[Ubuntu-Server 6.06.2 _Dapper Drake_ - Release i386 (20080110.1)]/ dapper main restricted
Install php4
apt-get install php4
Install MySql 4.1
apt-get install mysql-server-4.1
Install the php4 support for mysql
apt-get install php4-mysql
Note: It shows the Client API version as 5.0.22 but it seems to work OK.
- Login to post comments