Last active
November 12, 2018 12:15
-
-
Save lirantal/d3ff7c2b11d83b451f40c17758f43f9b to your computer and use it in GitHub Desktop.
Cloud9 PHP7 support
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
# Installing/Upgrading to PHP 7 from a current PHP 5.5 | |
sudo add-apt-repository ppa:ondrej/php -y | |
sudo apt-get update -y | |
sudo apt-get install php7.0-curl php7.0-cli php7.0-dev php7.0-gd php7.0-intl php7.0-mcrypt php7.0-json php7.0-mysql php7.0-opcache php7.0-bcmath php7.0-mbstring php7.0-soap php7.0-xml php7.0-zip -y | |
sudo mv /etc/apache2/envvars /etc/apache2/envvars.bak | |
sudo apt-get remove libapache2-mod-php5 -y | |
sudo apt-get install libapache2-mod-php7.0 -y | |
# MySQL db setup | |
## Create radius db | |
mysql -u root -p | |
create database radius; | |
## Import the db schema | |
mysql -u root -p radius < contrib/db/fr2-mysql-daloradius-and-freeradius.sql | |
# Install PHP dependencies | |
sudo apt-get install php-common php-gd php-curl php-mail php-mail-mime php-pear php-db | |
sudo pear channel-update pear.php.net | |
sudo pear install DB |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there, i cannot locate the package after adding the repo and updating.. are the php7.0 packages still there?