Skip to content

Instantly share code, notes, and snippets.

@lirantal
Last active November 12, 2018 12:15
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save lirantal/d3ff7c2b11d83b451f40c17758f43f9b to your computer and use it in GitHub Desktop.
Save lirantal/d3ff7c2b11d83b451f40c17758f43f9b to your computer and use it in GitHub Desktop.
Cloud9 PHP7 support
# 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
@jilt
Copy link

jilt commented Sep 27, 2017

Hi there, i cannot locate the package after adding the repo and updating.. are the php7.0 packages still there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment