Article Details
Review the content, attachments, and feedback.
Article Details
Review the content, attachments, and feedback.
create larvel app set permissions for composer install
Kevin
Sep 22, 2025
25 views
kb619259
No rating yet
#!/bin/bash
cd /var/www/html/eileen_bnb
# Set ownership
sudo chown -R www-data:www-data .
# Set base permissions
sudo find . -type d -exec chmod 755 {} \;
sudo find . -type f -exec chmod 644 {} \;
# Set Laravel-specific permissions
sudo chmod -R 775 storage
sudo chmod -R 775 bootstrap/cache
sudo chmod 640 .env
sudo chmod +x artisan
# Ensure critical directories are owned by web server
sudo chown -R www-data:www-data storage
sudo chown -R www-data:www-data bootstrap/cache
sudo chown -R www-data:www-data .env
echo "Laravel permissions set successfully!"
Rate & Comment
Latest Comments
No comments yet.