-
-
Save kuttumiah/eec9726ee77fbe12cd5d38762a3a0ac0 to your computer and use it in GitHub Desktop.
Downgrade Apache + PHP on Ubuntu 18.04 LTS (Bionic Beaver)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat <<EOF >> /etc/apt/sources.list | |
deb [trusted=yes] http://eu-west-2.ec2.archive.ubuntu.com/ubuntu/ precise main restricted universe | |
deb [trusted=yes] http://eu-west-2.ec2.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe | |
deb [allow-insecure=yes] http://security.ubuntu.com/ubuntu precise-security main restricted universe multiverse | |
EOF | |
apt-get update | |
apt-get purge \ | |
apache2 \ | |
apache2-bin \ | |
apache2-data \ | |
apache2-mpm-prefork \ | |
apache2-common \ | |
apache2-doc \ | |
apache2-utils \ | |
apache2-prefork-dev \ | |
libapache2-mod-php5 \ | |
dh-php5 \ | |
php-pear \ | |
php5 \ | |
php5-cgi \ | |
php5-cli \ | |
php5-common \ | |
php5-curl \ | |
php5-dev \ | |
php5-gd \ | |
php5-json \ | |
php5-mcrypt \ | |
php5-mysql \ | |
php5-readline \ | |
pkg-php-tools | |
apt-get install \ | |
apache2-mpm-prefork=2.2.22-1ubuntu1.11 \ | |
apache2-prefork-dev=2.2.22-1ubuntu1.11 \ | |
apache2.2-bin=2.2.22-1ubuntu1.11 \ | |
apache2.2-common=2.2.22-1ubuntu1.11 \ | |
apache2-utils=2.2.22-1ubuntu1.11 \ | |
apache2=2.2.22-1ubuntu1.11 \ | |
libapache2-mod-php5=5.3.10-1ubuntu3.26 \ | |
php5=5.3.10-1ubuntu3.26 \ | |
php5-common=5.3.10-1ubuntu3.26 \ | |
php5-cli=5.3.10-1ubuntu3.26 \ | |
php5-curl=5.3.10-1ubuntu3.26 \ | |
php5-dev=5.3.10-1ubuntu3.26 \ | |
php5-gd=5.3.10-1ubuntu3.26 \ | |
php5-mcrypt=5.3.5-0ubuntu1 \ | |
php5-mysql=5.3.10-1ubuntu3.26 | |
a2enmod rewrite | |
a2ensite default | |
#a2ensite nea-production.conf | |
#a2dissite 000-default | |
service apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update script to work on Ubuntu 18.04 LTS.
it was specially modified to work on an AWS EC2 instance