• Skippy’s gravatar plug-in says that I have to chmod my gravatars file, but I don’t know which number I should chmod it…
    Any help would be appreciated.

Viewing 11 replies - 1 through 11 (of 11 total)
  • 666 would probably do it, if not try 755.

    Moderator James Huff

    (@macmanx)

    If you mean the gravatars directory, that needs to be 777.

    The correct answer is: the gravatar directory needs to be writable by the web server. This can be accomplished in several ways.

    The quick-and-dirty solution is to chmod 777 gravatars. This gives read/write/execute permissions to everyone. Depending on the details of your hosting environment, this may be bad.
    For example, on a shared host, permsission mode 777 means that any user with shell access can delete all your gravatars. Big whoop? Well, they could also replace all your gravatars with whatever picture they want.

    You could assign ownership of the gravatars directory to the user that the web server uses (usually www-data, or nobody, or maybe something else): chown www-data gravatars. Then assign only that user permission to write to the gravatars directory: chmod 755 gravatars. That would work fine most of the time, since my plugin offers web-based controls for deleting cached gravatars.

    Another option would be to assign group ownership of the gravatars directory to the group account used by the webserver (usually www-data or nogroup or nobody or maybe something else): chgrp www-data gravatars. Then assign this group the permission to read and write to the gravatars directory: chmod 765 gravatars.

    Personally, I like all the files in my webspace to be owned by me; so I use the last option. It ensures that my user account can always do whatever needs to be done to the files but also allows the webserver to do what little it needs to do.

    How would you “translate” these lines for users that have only FTP access?
    chown www-data gravatars
    usually www-data or nogroup or nobody or maybe something else
    etc.

    Alas, I have no idea how to change ownership of files through an FTP client…

    That’s why I hate when geeks give “smart” advice to the average users…
    (sorry, nothing personal, just the mentality)

    Moderator James Huff

    (@macmanx)

    Moshu: I wasn’t trying to be “smart”, I was trying to be correct. If an “average user” has shell access to their host, then they can change ownership on the directory, per my instructions. If a user does not have shell access, that user can change permissions on the directory, per my instructions.

    If a user does not have shell access, they can use the “quick and dirty” solution I posted at the top. I fail to see how this is me geeking out on anyone.

    Thread Starter rach3ldr3w

    (@rach3ldr3w)

    Thanks, everybody, I really appreciate it, but I still get the same problem no matter which number I enter. Here’s the little message I receive:

    WARNING! WARNING! WARNING!
    /home/unknowne/public_html/users/alias/wordpress/wp-content/gravatars
    is not writable.

    Gravatar caching will be disabled until this directory is made writable.

    Everything is set-up properly… All codes are placed in properly, and I’ve tried all the 666’s, 755’s, 777’s, etc. :/

    moshu, using wsftp,
    login to your server.
    rt-click on the folder ie. ‘gravatars’.
    goto ‘properties’.
    from there you can change rwerwerwe properties for user/group/world. hth, goodluck, aj

    applejack: that describes how to change access permissions on the directory, but does not explain how to change ownership of the directory. I do not believe there is any provision in FTP to change onwership of files or directories. As such, if you’re using an FTP client, you will be restricted to setting permissions on the gravatars directory so that anyone can write to it.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Chmod files for skippy’s gravatar plugin’ is closed to new replies.