Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8217851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T12:35:14+00:00 2026-06-07T12:35:14+00:00

This question has been asked several times but none of the solutions fix it

  • 0

This question has been asked several times but none of the solutions fix it in my situation.

I am running Apache on Mac OSX Lion. This http://localhost/Symfony/web/config.php URL triggers 2 major problems:

Change the permissions of the "app/cache/" directory so that the web server can write into it.
Change the permissions of the "app/logs/" directory so that the web server can write into it.

Following the guide under “Setting up Permissions”:

rm -rf app/cache/*
rm -rf app/logs/*
sudo chmod +a "_www allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
sudo chmod +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs

That doesn’t solve the problems, so then I tried:

sudo chmod -R 777 app/cache

That doesn’t work either. Any ideas how to fix this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T12:35:16+00:00Added an answer on June 7, 2026 at 12:35 pm

    Some preliminary explanations:

    • In order to enhance the performance of your website, Symfony2 needs to cache a lot of data and it does this by writing compiled files into your app/cache directory.
    • In order to propose powerful debugging and monitoring facilities, Symfony2 needs to track your website behavior and it does this by writing trace files into your app/logs directory.

    Some words about Apache:

    • Apache runs under a specific user and a specific group (usually www-data for both, but you have to check your installation to find the used ones. For example, if you search in the /etc/apache2/envvars in Linux, you will have two variables APACHE_RUN_USER=www-data and APACHE_RUN_GROUP=www-data).
    • It means that when you build your website upon Symfony2 shoulders and you run it under Apache, every writes and reads are made on behalf of the Apache user and group.

    Analyze of your problems:

    • First of all you have errors like:

      Change the permissions of the "app/cache/" directory so that the web server can write into it.
      Change the permissions of the "app/logs/" directory so that the web server can write into it.
      

      because your app/cache and app/logs folders are not writable for your Apache user and group.

    • Secondly, by executing:

      sudo chmod +a "_www allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
      sudo chmod +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
      

      you are modifying the Access Control List (ACL) of the app/cache and app/logs folders in order to grant some permissions to whoami (basically you) and to _www.
      This approach does not work and can have two origins:

      1. You are modifying ACLs, but are your kernel and your file system configured to take into account ACLs?

      2. You are giving some permissions to whoami and to _www, but have you checked that your Apache instance runs under one of these users?

    • Thirdly your colleagues solve the problem by executing:

      sudo chmod -R 777 app/cache 
      

      This approach works because of two reasons:

      1. You give all permissions (reads and writes) to every user on your system (777), so you are sure that at least your Apache user and group have also the needed permissions to write in app/cache.
      2. You do it recursively (-R), so all the nested folders created in the app/cache directory are also concerned by the new permissions.

    Simple solution:

    1. Delete the content of your app/cache and app/logs folders:

      rm -rf app/cache/*
      rm -rf app/logs/*
      
    2. Give all permissions (reads and writes) to your app/cache and app/logs folders:

      chmod 777 app/cache
      chmod 777 app/logs
      

    Remarks:

    • There are also other solutions (with a greater difficulty) like giving permission to the specific Apache user and group and using ACLs for fine tuning.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can see that this question has been asked several times, but none of
I know this question has been asked several times on SO, but none of
I've noticed that this question has been asked several times but none of the
Though this question has been asked several times but I really couldn't find any
I realize this question has been asked several times, but I wanted to frame
This question has been asked several times already, but has been solved with poor
I know this question has been asked several times, but I can't quite seem
I know this question has been asked several times but the answers given don't
I know this question has been asked several times for sure, but I have
I know this question has been asked for several times, but I am helpless

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.