Skip to content

Instantly share code, notes, and snippets.

@AidHamza
Forked from nakamuraagatha/console.md
Created October 24, 2017 23:40
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 AidHamza/16733e5ccc3e5bed0812501ca7452b4e to your computer and use it in GitHub Desktop.
Save AidHamza/16733e5ccc3e5bed0812501ca7452b4e to your computer and use it in GitHub Desktop.
Install Laravel C9.io php 7.1 with Laravel Horizon
## Install with PHP 7.1
```
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install libapache2-mod-php7.1
sudo a2dismod php5
sudo a2enmod php7.1
sudo apt-get install php7.1-dom php7.1-mbstring php7.1-zip php7.1-gd php7.1-xml php7.1-gmp php7.1-mysql php7.1-sqlite php7.1-mcrypt php7.1-curl
```
```
sudo apt-get install php7.1-mysql
sudo apt-get install php7.1-sqlite
```
## Laravel Global
```
sudo composer global require 'laravel/installer'
export PATH=~/.composer/vendor/bin:$PATH
laravel new laravel
```
## Apache Setting
```
sudo nano /etc/apache2/sites-enabled/001-cloud9.conf
sudo chown -R $USER $HOME/.composer
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment