• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.1 Problem in uploading avatars ( permission 600 )

TBDragon

Active member
#1
hi
one of my friend forum have a problem when user upload an avatar its upload it
but when he check the picture in the data folder
he found it have the permission 0600 not 0644 !!
and we talk with the host and they say the problem with the script >_< so how i can know if this problem from the script it self or the support guy don`t know how to solve it !!!

=( hope u got what i mean and sorry for my english ..
 

TBDragon

Active member
#3
ya i did that
but same error
even if i open the avatar link

its says

Forbidden

You don't have permission to access /data/avatars/l/0/215.jpg on this server.

i make the data , avatars ,l and 0 folder permession 0777
and same error =(
 

Brogan

XenForo moderator
Staff member
#4
Did you run these commands?
Code:
chmod -R 777 data
 
chmod -R 777 internal_data
If it still doesn't work, it could be an ownership issue.

Is there anything in the Apache error logs?
 

TBDragon

Active member
#5
ya already did that but from cPanel !! did this make different ?!


in the error log

there is

[Sat May 18 11:17:12 2013] [error] [client xxxxxxxxxx ] (13)Permission denied: file permissions deny server access: /home/xxxxxx/public_html/xen/data/avatars/s/0/215.jpg
 

Attachments

TBDragon

Active member
#8
check this =(
the old pic i just change the permission but now
even new avatar need to do it manually

does this require some functions need to be enabled from the php.in ?!
 

Attachments

TBDragon

Active member
#9
i try with him right now to make a fresh install
and make the permission for both folder
once i finish uploading the avatar its give same error
so i just goes to the data folder which already have the 777 chmod
and then i found the new folder
avatars but !!!
it was 755 chomd not !! 777 !!!!
is there any solution from the root server ?! to tell the support to do it ?! >_<
 

Mike

XenForo developer
Staff member
#10
Ensure that you've followed what Brogan suggested. Then add this to then end of your library/config.php file:

$config['chmodWritableValue'] = 0666;
 
#14
i have the same problem. I did chmod settings but, m and s folders uploaded files, chmod 600 is set.
ın l folders dont have chmod problem.
 

Liam W

Well-known member
#18
Do you have SSH access? If so, run the commands above. If not, you'll have to select all the files in the folder, and set their permissions (all read).

Did you say files default to 600 when uploaded?

Liam
 
#19
yes i have ssh access. i applied this commands but when i uploads a new avatars or attachment chmode option is 600.

my default options are not 600. only here i upload this issue.
 

Liam W

Well-known member
#20
yes i have ssh access. i applied this commands but when i uploads a new avatars or attachment chmode option is 600.

my default options are not 600. only here i upload this issue.
Hmm, strange. Sounds like something on the server. Could you contact your host and ask if there's something in the server configuration that causes PHP file uploads to be stored with the 600 permissions?

Also, did you add the line in @Mike's post to your config file?

Liam