The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
./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 . drwxr-xr-x 24 root root 4096 2012-03-26 00:03 .. -rw-r--r-- 1 root root 1 2012-08-29 22:10 index.html drwxr-xr-x 2 root root 4096 2012-01-10 08:35 thumbs Code:
drwxr-xr-x 2 root root 4096 2012-01-10 08:35 . drwxr-xr-x 3 root root 4096 2012-11-18 12:02 .. -rw-r--r-- 1 root root 1 2012-08-29 22:10 index.html 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" |
#2
|
|||
|
|||
Edit: Actually Stefan118's probably right. It could just be that the error message you posted is displaying the relative path.
|
#3
|
|||
|
|||
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. |
#4
|
||||
|
||||
Quote:
|
#5
|
|||
|
|||
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) |
#6
|
|||
|
|||
Well, the first set of 3 is the permissions for the owner of the file or directory. So if it was working before then it could be that the owner of the directories was changed, or maybe that the user the php scripts run as was changed.
|
#7
|
||||
|
||||
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. |
#8
|
|||
|
|||
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.
|
#9
|
|||
|
|||
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) |
#10
|
||||
|
||||
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? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|