Skip to content

Instantly share code, notes, and snippets.

@samueltc
Created August 22, 2018 13:10
Show Gist options
  • Save samueltc/4f5b67ebb1c5db2d82a8f0d0222fbb2c to your computer and use it in GitHub Desktop.
Save samueltc/4f5b67ebb1c5db2d82a8f0d0222fbb2c to your computer and use it in GitHub Desktop.
Ubuntu 16.04, Apache 2.2, MySQL 5.0 and PHP 4.4
# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.5 LTS
Release:	16.04
Codename:	xenial

apt-get update
apt-get upgrade
reboot

cat <<EOF >> /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu precise main restricted universe
deb http://archive.ubuntu.com/ubuntu precise-updates main restricted universe
deb http://security.ubuntu.com/ubuntu precise-security main restricted universe multiverse
EOF

# apache2.2
apt-get update
apt-get install apache2=2.2.22-1ubuntu1.11 apache2.2-common=2.2.22-1ubuntu1.11 apache2.2-bin=2.2.22-1ubuntu1.11 apache2-mpm-prefork=2.2.22-1ubuntu1.11
apt-get install apache2-dev=2.2.22-1ubuntu1.11 # apxs

# php4
apt-get install libmcrypt-dev
wget http://uk.php.net/distributions/php-4.4.9.tar.gz
tar xzvf php-4.4.9.tar.gz
cd php-4.4.9
./configure --prefix=/usr/local/php4 --with-apxs2=/usr/bin/apxs2 --with-mcrypt
make && make install

# libphp4.so should be there:
ls -alstr /usr/lib/apache2/modules/
cp php.ini-recommended /usr/local/php4/lib/php.ini

# mysql
wget https://downloads.mysql.com/archives/get/file/mysql-5.0.96.tar.gz
apt-get install libncursesada3-dev
./configure --prefix=/usr/local/mysql
make && make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment