Skip to content

Instantly share code, notes, and snippets.

Last active January 29, 2019 03:44
  • Star 1 You must be signed in to star a gist
  • Fork 0 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?
Install phpbrew php5.3.29 at Ubuntu 14.04
# ========================================================================
# Distributor ID: Ubuntu
# Description: Ubuntu 14.04.5 LTS
# Release: 14.04
# Codename: trusty
# ========================================================================
# PHP 5.3.29-Ubuntu/14.04-SergeyD/14.4 (cli) (built: Sep 6 2017 15:48:58)
# Copyright (c) 1997-2014 The PHP Group
# Zend Engine v2.3.0, Copyright (c) 1998-2014 Zend Technologies
# ========================================================================
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
sudo -i add-apt-repository -y ppa:sergey-dryabzhinsky/php-modules
sudo -i add-apt-repository -y ppa:sergey-dryabzhinsky/php53
sudo -i apt-get update
sudo -i apt-get install -y \
apache2 \
libapache2-mod-php53 \
php53-dev \
php53-pear \
php53-mod-curl \
php53-mod-mysql \
php53-mod-xcache \
php53-mod-memcache \
sudo -i pear install channel://
# DISABLE modules
sudo -i a2dismod mpm_event
sudo -i a2dismod mpm_worker
sudo -i service apache2 restart
# ENABLE modules
sudo -i a2enmod mpm_prefork
sudo -i a2enmod php53
# add a index with phpinfo
sudo -i rm /var/www/html/index.html
sudo -i echo "<?php phpinfo(); ?>" > /var/www/html/index.php
sudo -i service apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment