Created
February 6, 2018 09:23
-
-
Save gossterrible/6e590fbcede7de0556d82da0e0e51a78 to your computer and use it in GitHub Desktop.
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
| sudo apt-get update | |
| sudo apt-get upgrade | |
| sudo add-apt-repository ppa:ondrej/php | |
| sudo apt-get update | |
| sudo apt-get install php7.1 php7.1-mcrypt php7.1-xml php7.1-gd php7.1-opcache php7.1-mbstring | |
| sudo apt-get install apache2 libapache2-mod-php7.1 | |
| cd /tmp | |
| curl -sS https://getcomposer.org/installer | php | |
| sudo mv composer.phar /usr/local/bin/composer | |
| cd /var/www/html | |
| sudo composer create-project laravel/laravel your-project --prefer-dist | |
| sudo chgrp -R www-data /var/www/html/your-project | |
| sudo chmod -R 775 /var/www/html/your-project/storage | |
| cd /etc/apache2/sites-available | |
| sudo nano laravel.conf | |
| <VirtualHost *:80> | |
| ServerName yourdomain.tld | |
| ServerAdmin webmaster@localhost | |
| DocumentRoot /var/www/html/your-project/public | |
| <Directory /var/www/html/your-project> | |
| AllowOverride All | |
| </Directory> | |
| ErrorLog ${APACHE_LOG_DIR}/error.log | |
| CustomLog ${APACHE_LOG_DIR}/access.log combined | |
| </VirtualHost> | |
| sudo a2dissite 000-default.conf | |
| sudo a2ensite laravel.conf | |
| sudo a2enmod rewrite | |
| sudo service apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment