Article Details
Review the content, attachments, and feedback.
Article Details
Review the content, attachments, and feedback.
Script to set up laravel permissions
Kevin
Sep 22, 2025
19 views
kb868258
No rating yet
cd /var/www/html/eileen_bnb
# Set ownership to web server
sudo chown -R www-data:www-data .
# Set directory permissions
sudo find . -type d -exec chmod 755 {} \;
# Set file permissions
sudo find . -type f -exec chmod 644 {} \;
# Set writable directories
sudo chmod -R 775 storage/
sudo chmod -R 775 bootstrap/cache/
# Make artisan executable
sudo chmod +x artisan
# Secure environment file
sudo chmod 600 .env
Rate & Comment
Latest Comments
No comments yet.