Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- composer create-project laravel/laravel devil
- chmod -R 777 devil/storage
- chmod -R 777 devil/vendor
- drwxr-xr-x. 10 adzar adzar 4096 Mar 25 04:06 app
- -rwxr-xr-x. 1 adzar adzar 1635 Mar 25 04:06 artisan
- drwxr-xr-x. 2 adzar adzar 39 Mar 25 04:06 bootstrap
- -rw-r--r--. 1 adzar adzar 788 Mar 25 04:06 composer.json
- -rw-r--r--. 1 adzar adzar 100509 Mar 25 04:06 composer.lock
- drwxr-xr-x. 2 adzar adzar 4096 Mar 25 04:06 config
- drwxr-xr-x. 4 adzar adzar 52 Mar 25 04:06 database
- -rw-r--r--. 1 adzar adzar 503 Mar 25 04:06 gulpfile.js
- -rw-r--r--. 1 adzar adzar 98 Mar 25 04:06 package.json
- -rw-r--r--. 1 adzar adzar 87 Mar 25 04:06 phpspec.yml
- -rw-r--r--. 1 adzar adzar 777 Mar 25 04:06 phpunit.xml
- drwxr-xr-x. 4 adzar adzar 95 Mar 25 04:06 public
- -rw-r--r--. 1 adzar adzar 1724 Mar 25 04:06 readme.md
- drwxr-xr-x. 5 adzar adzar 42 Mar 25 04:06 resources
- -rw-r--r--. 1 adzar adzar 560 Mar 25 04:06 server.php
- drwxrwxrwx. 5 adzar adzar 60 Mar 25 04:06 storage
- drwxr-xr-x. 2 adzar adzar 47 Mar 25 04:06 tests
- drwxrwxrwx. 26 adzar adzar 4096 Apr 8 18:31 vendor
- APP_ENV=local
- APP_DEBUG=false
- APP_KEY=EOvUHTpMtavKDMx1GdkREtbves8PVEUb
- DB_HOST=localhost
- DB_DATABASE=homestead
- DB_USERNAME=homestead
- DB_PASSWORD=secret
- CACHE_DRIVER=file
- SESSION_DRIVER=file
- QUEUE_DRIVER=sync
- MAIL_DRIVER=smtp
- MAIL_HOST=mailtrap.io
- ...
- #
- # ServerName gives the name and port that the server uses to identify itself.
- # This can often be determined automatically, but we recommend you specify
- # it explicitly to prevent problems during startup.
- #
- # If your host doesn't have a registered DNS name, enter its IP address here.
- #
- ServerName 100.255.XXX.XXX
- ...
- <VirtualHost *:80>
- ServerName 100.255.XXX.XXX
- DocumentRoot /var/www/devil/public
- <Directory /var/www/devil>
- AllowOverride All
- </Directory>
- </VirtualHost>
- setenforce 0
- find storage -type d -exec chmod 777 {} ;
- chmod 775 bootstrap/cache
- sudo vi /etc/sysconfig/selinux
- # This file is intended to run as root
- if [ "$EUID" -ne 0 ]
- then echo "Please run as root"
- exit
- fi
- # set this to your directory
- LARAVELDIR=/var/www/html/cvprima
- # just in case the log file does not exist yet
- touch $LARAVELDIR/storage/logs/laravel.log
- chcon -Rv --type=httpd_log_t $LARAVELDIR/storage/logs/laravel.log
- chgrp www $LARAVELDIR/storage/logs $LARAVELDIR/storage/logs/*.log
- chmod g+w $LARAVELDIR/storage/logs
- # now for the ./storage/ directory
- STORAGE=$LARAVELDIR/storage
- for dir in $STORAGE/framework/cache $STORAGE/framework/sessions $STORAGE/framework/views $STORAGE/app/public $LARAVELDIR/bootstrap/cache ;do
- chcon -Rv --type=httpd_sys_rw_content_t $dir 2>/dev/null 1>&2
- # you _should_ actually never have .gitignore in these directories...
- chcon -Rv --type=httpd_sys_content_t $dir/.gitignore 2>/dev/null 1>&2
- chgrp www $dir $dir/* 2>/dev/null 1>&2
- chmod -R g+w $dir $dir/* 2>/dev/null 1>&2
- done
- # all your files need to be httpd_sys_content_t (including the ./vendor/* directory tree)
- chcon -Rv --type=httpd_sys_content_t $LARAVELDIR
- # You either need files to be o+r, or chgrp www and g+r so that your webserver can access them.
- chgrp -R www $LARAVELDIR
- chmod -R g+r $LARAVELDIR
- find $LARAVELDIR -type d | xargs chmod -R g+rx
- chgrp www $LARAVELDIR/.env
- chmod 640 $LARAVELDIR/.env
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement