Skip to content

Instantly share code, notes, and snippets.

@schalkburger
Last active December 28, 2017 12:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schalkburger/863555774c3d79c57399fc5c26d7b2d9 to your computer and use it in GitHub Desktop.
Save schalkburger/863555774c3d79c57399fc5c26d7b2d9 to your computer and use it in GitHub Desktop.
Install PHP 7 on Scotch Box 3 Free
List of PHP 7 Packages: https://launchpad.net/ubuntu/+source/php7.0
Disclaimer: I get unreliable results when I don't run these commands seperately and in order.
vagrant ssh
sudo apt-get update
sudo add-apt-repository ppa:ondrej/php
sudo apt-get install php7.0
sudo apt-get update
sudo apt-get install php7.0-mysql libapache2-mod-php7.0 php7.0-fpm php7.0-json php7.0-xmlrpc php7.0-cgi php7.0-opcache php7.0-zip php7.0-imap php7.0-curl php7.0-xml php7.0-gd php-mbstring php7.0-mbstring php-gettext libapache2-mod-php7.0
sudo a2enmod proxy_fcgi setenvif
sudo a2enconf php7.0-fpm
sudo a2dismod php5
sudo a2enmod php7.0
sudo apachectl restart
sudo service apache2 reload
@schalkburger
Copy link
Author

schalkburger commented Dec 28, 2017

Sometimes requires sudo apt-get install php7.2-mbstring

@schalkburger
Copy link
Author

Search for available modules of an extension apt-cache search mbstring

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