Created
January 8, 2014 16:18
-
-
Save pedro-stanaka/8319452 to your computer and use it in GitHub Desktop.
Update PHP on Ubuntu 12.04 to 5.4 version with mcrypt extension;
These are dependencies of CakePHP 3.0
This file contains 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
#!/bin/bash | |
# Install aptitude a better package manager than apt-get | |
# and install the apt-add-repository command | |
sudo apt-get install aptitude python-software-properties | |
# Add the ppa that has the oldstable version of PHP5 | |
sudo apt-add-repository ppa:ondrej/php5-oldstable -y | |
# Install php5 | |
sudo aptitude install -y libapache2-mod-php5 php-date php-mdb2 php-mdb2-driver-pgsql php-net-smtp php-pear php5 php5-cli php5-common php5-dev php5-fpm php5-imagick php5-pgsql php5-tidy php5-curl php5-mysql php5-pgsql php5-mcrypt | |
# Enable mcrypt | |
sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available | |
sudo php5enmod mcrypt | |
sudo service apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment