Frequently Asked Questions

How do I fix common permission issues?

If running your project you encounter some permission issues, follow the below steps.

Errors

PHP Fatal error: Uncaught InvalidArgumentException: The directory "/var/www/example.local/html/data" is not writable...

PHP Fatal error: Uncaught InvalidArgumentException: The directory "/var/www/example.local/html/data/cache" is not writable...

PHP Fatal error: Uncaught InvalidArgumentException: The directory "/var/www/example.local/html/data/cache/doctrine" is not writable...

Fix:

chmod -R 777 data

Error

PHP Fatal error: Uncaught InvalidArgumentException: The directory "/var/www/example.local/html/public/uploads" is not writable...

Fix:

chmod -R 777 public/uploads

Error

PHP Fatal error: Uncaught ErrorException: fopen(/var/www/example.local/config/autoload/../../log/error-log-yyyy-mm-dd.log): Failed to open stream: Permission denied...

Fix:

chmod -R 777 log