PDA

View Full Version : upload attachment and chmod 777 !!!


baghdad4ever
30 Apr 2010, 08:02
hi

i transfere the attachment from database to file system and give the folder chmod 755

the upload is doesnt work unless the chmod 777 while the forum upload attachment work fine with chmod 755

why this occur?? and how to solve it plz

i hate chmod 777

thanks

PitchouneN64ngc
30 Apr 2010, 10:12
I think it depends of the owner / group for each file. I can use CHMOD 755 is the user / group is apache / apache on my installation.

baghdad4ever
30 Apr 2010, 11:04
I think it depends of the owner / group for each file. I can use CHMOD 755 is the user / group is apache / apache on my installation.

thanks for reply

in the my forum 755 is ok but in pt is not

so how i can fix that plz?

PitchouneN64ngc
30 Apr 2010, 11:27
You can use SSH, go to the directory before the directory where you want to move your attachments and execute this command:

chown apache:apache yourdirectoryname

I just made it and all PT attachments are now in filesystem / CHMOD 755.

baghdad4ever
30 Apr 2010, 12:39
You can use SSH, go to the directory before the directory where you want to move your attachments and execute this command:

chown apache:apache yourdirectorynameI just made it and all PT attachments are now in filesystem / CHMOD 755.


thanks it is fixed:D