Created
June 29, 2017 08:16
-
-
Save crushcafeteria/3bcf0afa8f6e6042ef491643d9c93ba5 to your computer and use it in GitHub Desktop.
Revisions
-
dikaio revised this gist
Mar 20, 2017 . 3 changed files with 9 additions and 20 deletions.There are no files selected for viewing
File renamed without changes.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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ 1. `mkdir /var/www/laravel` 2. `vim /etc/nginx/sites-available/default` #replace default with https://gist.github.com/dikaio/601ec9b09b5a282db8b78ab89f1ad92b 3. `vim /etc/php/7.0/fpm/php.ini` #change cgi.fix_pathinfo=1 with 0= 4. `vim /etc/php/7.0/fpm/pool.d/www.conf` #change line, `listen = 127.0.0.1:9000` to `listen = /run/php/php7.0-fpm.sock` 5. sudo service php7.0-fpm restart && sudo service nginx restart 6. curl -sS https://getcomposer.org/installer | php 7. mv composer.phar /usr/local/bin/composer 8. composer create-project laravel/laravel /var/www/laravel/ 4.2 9. chgrp -R www-data /var/www/laravel && chmod -R 775 /var/www/laravel/app/storage 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 charactersOriginal file line number Diff line number Diff line change @@ -1,20 +0,0 @@ -
dikaio revised this gist
Mar 20, 2017 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,12 +1,12 @@ 1. mkdir /var/www/laravel **replace default with https://gist.github.com/dikaio/601ec9b09b5a282db8b78ab89f1ad92b** 2. vim /etc/nginx/sites-available/default **change cgi.fix_pathinfo=1 with 0=** 3. vim /etc/php/7.0/fpm/php.ini **Open and change the line, listen = 127.0.0.1:9000, and change the 127.0.0.1:9000 to listen = /run/php/php7.0-fpm.sock** 4. vim /etc/php/7.0/fpm/pool.d/www.conf 5. sudo service php7.0-fpm restart && sudo service nginx restart -
dikaio revised this gist
Mar 20, 2017 . 1 changed file with 20 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ 1. mkdir /var/www/laravel # replace default with https://gist.github.com/dikaio/601ec9b09b5a282db8b78ab89f1ad92b 2. vim /etc/nginx/sites-available/default # change cgi.fix_pathinfo=1 with 0= 3. vim /etc/php/7.0/fpm/php.ini # Open and change the line, listen = 127.0.0.1:9000, and change the 127.0.0.1:9000 to listen = /run/php/php7.0-fpm.sock 4. vim /etc/php/7.0/fpm/pool.d/www.conf 5. sudo service php7.0-fpm restart && sudo service nginx restart 6. curl -sS https://getcomposer.org/installer | php 7. mv composer.phar /usr/local/bin/composer 8. composer create-project laravel/laravel /var/www/laravel/ 4.2 9. chgrp -R www-data /var/www/laravel && chmod -R 775 /var/www/laravel/app/storage -
dikaio created this gist
Mar 20, 2017 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ server { listen 80 default_server; root /var/www/laravel/public; index index.php index.html index.htm; server_name _; location / { try_files $uri $uri/ /index.php$is_args$args; } location ~ \.php$ { try_files $uri /index.php = 404; fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } }