Forums

chmod to 777 or 755 for writeable cache? (2 posts)

  1. Dgold
    Member
    Posted 5 years ago #

    Hello, I'm moving servers. 1 of my plugins needs a cache folder that is writable by the Apache process. Should I chmod it to 777, or 755?

    Details about my issue:

    • On the new server my Headline Images plugin by Coldforged isn't working, because I couldn't figure out the path to the Cache folder this plugin requires.
    • On my old server the path that worked was:
      /var/www/radio/wp-content/headline-cache/

    • On the new server the path should be:
      /www/radio/wp-content/headline-cache/
    • It gives the error message
      Error: The Folder [/www/radio/wp-content/headline-cache] is not writeable.

      FATAL: The directory you specified to cache the image files is not
      writeable from the Apache task. Either select a different directory or
      make the directory you specified writable by the Apache task (chmod
      755 the directory).

    • So you can see the plugin itself tells me to "chmod 755". I checked and the folder is already 755. So I asked my host, and their answer was this:
      "The permission of the writable files or folders should be set to 777."

    Do you agree? Is 777 safe? Why does the plugin tell me to 755?

  2. macbrink
    Member
    Posted 5 years ago #

    @DGold
    777 is not safe.
    Hackers could upload scripts to your site and run them.
    I have had that problem too. Now my host has changed how php is running. Everything is OK on 755 again.
    If you have to use 777 you could try to secure your folders with .htaccess
    http://codex.wordpress.org/.htaccess_for_subdirectories

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags