0

when I clear the cache, I get this following error:

Error in file: "/var/www/public_html/app/code/local/Wyomind/Simplegoogleshopping/sql/simplegoogleshopping_setup/mysql4-install-5.0.0.php" - Please make sure that / is writable by web-server.

Then after 20-30 sec, my site is working normally again.

The files have permission 777.

Tried to change the whole path to 777, but that didn't help.

7
  • have u tried to give 777 permissions to var folder?? Commented Sep 22, 2017 at 9:37
  • I already have 777 on var
    – Chris Gudn
    Commented Sep 22, 2017 at 9:40
  • what is owner group of var folder? Commented Sep 22, 2017 at 9:41
  • ec2-user apache, using aws ec2
    – Chris Gudn
    Commented Sep 22, 2017 at 9:42
  • Is your cloud front is enabled? Commented Sep 22, 2017 at 9:52

1 Answer 1

1

We ran into an issue where when the cache was cleared, or any of the magento cli commands ran, the owner settings of directiories and files was changing. Make sure files/directories are owned and writeable by the web server user group.

3
  • I just checked when I cleared the cache now, the owner did not change. And I checked the permission also, nothing changed.
    – Chris Gudn
    Commented Sep 22, 2017 at 12:22
  • Are they owned by the web server group, though? Initially when we deployed, owner/group was ourUser:OurUserGroup, we had to change it to ourUser:WebServerGroup, and make sure our user was added to that group
    – codestr
    Commented Sep 22, 2017 at 12:25
  • Our user is ec2-user and server is apache, so ec2-user:apache
    – Chris Gudn
    Commented Sep 22, 2017 at 12:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.