Skip to content

Instantly share code, notes, and snippets.

Created August 22, 2018 13:10
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
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

cat <<EOF >> /etc/apt/sources.list
deb precise main restricted universe
deb precise-updates main restricted universe
deb precise-security main restricted universe multiverse

# 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
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

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

# mysql
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