Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

permissions for laravel deployment

cd /code/laravel_project
php artisan cache:clear
php artisan config:clear
sudo service php7.4-fpm stop
sudo service nginx stop

sudo chown -R $USER:www-data storage
sudo chown -R $USER:www-data bootstrap/cache
chmod -R 775 storage
chmod -R 755 bootstrap/cache
sudo service php7.4-fpm start && sudo service nginx start
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #permissions #laravel #deployment
ADD COMMENT
Topic
Name
5+8 =