XF 1.1 Problem in uploading avatars ( permission 600 )

TBDragon

Active member
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 ..
 
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 =(
 
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?
 
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

  • Untitled-1.webp
    Untitled-1.webp
    8 KB · Views: 4
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

  • Untitled-2.webp
    Untitled-2.webp
    11.1 KB · Views: 5
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 ?! >_<
 
Ensure that you've followed what Brogan suggested. Then add this to then end of your library/config.php file:

$config['chmodWritableValue'] = 0666;
 
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
 
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.
 
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
 
Back
Top Bottom