![]() |
./images/avatars directory not writable even though...
...the permissions and ownership on it are correct:
I'm logged onto our server now (SSH) and looking at the directory for avatars: ./images/avatars The directory has no image files. The index.html file is there as well as the thumbs sub-directory, which is also devoid of any images files (it also has an index.html file). I don't know what to make of this, as this is the only avatar directory I am aware of, yet all the Administrators avatars are being displayed, as well as their profile pictures. Something interesting, is that in the AdminCP, when I run Maintenance > General Update Tools > Rebuild Avatar Thumbnails I get the message: Quote:
Code:
drwxr-xr-x 3 root root 4096 2012-11-18 12:02 avatars Code:
drwxr-xr-x 3 root root 4096 2012-11-18 12:02 . Code:
drwxr-xr-x 2 root root 4096 2012-01-10 08:35 . This from the follow-up post by our member: Quote:
Why is the avatars directory not writable, according to vBulletin, even though it is? How do I fix this? Additionally, our members (non-Administrators) are also saying: "I also get similar errors when trying to send PMs, access profile settings and general settings" |
Edit: Actually Stefan118's probably right. It could just be that the error message you posted is displaying the relative path.
|
The directory is not writable, becouse you do NOT have set the right permissions!
drwxr-xr-x means: chmod 755 permissions on a directory: writeable by owner, readable by all and where files are executable by all. You need to set them to: drwxrwxrwx (chmod 666) which means that everyone can read, write and execute the files. |
Quote:
|
but still i mis the w from write, so your forum can't write to the directory.
It has been set to writable for a logged in user only (the owner of the site) |
Quote:
|
Quote:
Avatar File Path This file path should be readable AND writeable by your web server (usually chmod 0777) I can/will change the permissions, but how did the directory and sub-directory/contents permission get set to 0755? I didn't do it, and I know that none of the other Administrators did. Hmm. |
They say to set it to 777 because then it will be writable for everyone. But it's possible that it could work with the permissions set to 755 depending on what user owns the file and what user the php scripts run as. I only know the basics of linux admin, but I think it's normal for the web server to run as a different user than the one that owns the files and directories, for security.
|
Why it is changed i don't know.
But the fact is, you need to set it to eighter 666 or 777 (executable is an option) |
Quote:
What are the permissions for the ./images/avatars directory on your forums? What are the permissions on the contents of that directory? In other words, what are the 'default' permissions supposed to be? |
All times are GMT. The time now is 01:20 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|