I am having trouble getting the permissions correct. I am trying to get it running in a local environment on my Mac via XAMPP.
I have tried the following:
- Doing the unmask
- Setting The Permissions
- Clearing the cache via
php app/console cache:clear
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Make sure you replace the www-data user with the user your web server runs as. Find out which user your web server runs as by running the command:
Or
You may also need to enable ACL. See the Installation docs for more information, and see this page for information on ACL.
When running Symfony from the command line, cached files/directories are created by the user you’re logged in as – in your case, “jess”. When running the web page in your browser, they’re created by the web server user – in your case, the user “nobody”. Your user does not have access to modify files and dirs created by the web server, and vice versa.
Changing your web server to run as the same user as your login is not the ideal solution as it’s not a very secure option, and you are still going to have the same problem when you put your site on another server.
The solution is to ensure you’ve followed the Setting Up Permissions section of the installation docs at http://symfony.com/doc/current/book/installation.html.
Make sure you rm -rf the contents of the folder, and not just php app/console cache:clear, as the symfony clear cache command will create dirs/files, which are still not writable by your web server.