Forum Moderators: phranque

Message Too Old, No Replies

755 is not writable

do not want to use 777...

         

jake66

12:51 am on Jun 28, 2008 (gmt 0)

10+ Year Member



I used php with cgi handler.

It was recently changed to dso. (As I suspect the segfaults I've been getting had to do with php-cgi)

But now, any folders at 755 are not writable.

How can I write to this folder from php, without having to change it to 777?

jdMorgan

7:49 pm on Jun 28, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Consider putting the chmod 777 inside the script, write your output, and chmod it back again. Your writable files will then only be as secure as the script itself, so take care...

You also might want to look into suexec -- or ask over in the PHP forum, 'cause I'm no PHP expert!

Jim