PostgreSQL vs MySQL Performance: Real Benchmarks Compared
Last updated: 7 November 2026. See the update log at the end."Which is faster, PostgreSQL or...
Step 5 of 10
Laravel only needs to write to two places: storage/ and bootstrap/cache/. Everything else can stay read-only for the web server, and nothing needs 777.
.env: 640 or 600, if your host allows itstorage/ and bootstrap/cache/: 755, or 775 if logs and cache still can't be writtenOn most cPanel hosts PHP runs as your own account, so 755 is enough for writing.
cd ~/laravel-app
find . -type d -exec chmod 755 {} +
find . -type f -exec chmod 644 {} +
chmod -R 775 storage bootstrap/cache
In File Manager, right-click a folder and choose Change Permissions. Zip uploads normally extract with correct permissions, so you only need this when something fails.
Besides being unsafe, many shared hosts refuse to run PHP from a folder or file that is writable by everyone, and answer with a 500 or 403 error. If you changed things to 777 to fix an error, set them back.
It can't write to storage/logs. Set storage/ to 775 and check the folder belongs to your account. If you ran a command as another user, the file may belong to that user.
Last updated: 7 November 2026. See the update log at the end."Which is faster, PostgreSQL or...
Last updated: 8 November 2026. See the update log at the end.Laravel gives you safe defaults...
Last updated: 5 November 2026. See the update log at the end.In a normal PHP-FPM request,...
We use cookies to improve your experience and analyze traffic. By continuing, you agree to our Privacy Policy.