Skip to content

Instantly share code, notes, and snippets.

@UbuntuEvangelist
Last active January 20, 2019 19:03
Show Gist options
  • Save UbuntuEvangelist/fc2fef6df794725c9fa107b679e750be to your computer and use it in GitHub Desktop.
Save UbuntuEvangelist/fc2fef6df794725c9fa107b679e750be to your computer and use it in GitHub Desktop.
php 5.5.9 install ubuntu 18.0
#!/bin/bash
# run all commands from root
# source http://www.linuxfromscratch.org/blfs/view/7.5/general/php.html
apt update && sudo apt-get upgrade --fix-missing
apt install build-essential checkinstall
apt install ubuntu-restricted-extras
apt list --upgradable
apt upgrade -y
apt update -y
wget http://us2.php.net/distributions/php-5.5.9.tar.bz2
apt-get install libxml2-dev
tar xjf php-5.5.9.tar.bz2
cd php-5.5.9
./configure
make
make install
make test
php -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment