File upload folder permission fastCGI - How to make it writeable?
- by user6595
I am using centos 5.7 with cPanel WHM running fastcgi/suEXEC
I am trying to make a particular folder writable to allow a script to upload files but seem to be having problems.
The folder (and all recursive folders) I want to be writable is:
/home/mydomain/public_html/uploads
And I want only scripts run by the user "songbanc" to be able to write to this directory.
I have tried the following:
chown -R songbanc /home/mydomain/public_html/uploads
chmod -R 755 /home/mydomain/public_html/uploads
But it still doesn't seem to work.
The script will only upload files if I set the permissions manually via FTP client to 777.
I assume I am misunderstanding how to set permission for users with fastcgi and hopefully someone can help me.
Thanks in advance
EDIT: Running getfacl on one of the scripts or folders gives the following:
# file: home/mydomain/public_html/ripples/1.jpg
# owner: songbanc
# group: songbanc
So it appears that the owner is correct? I'm now totally confused!
EDIT 2:
The plot thickens... lsattr and chattr are returning Inappropriate ioctl for device While reading flags on...