Results 1 to 4 of 4
Php can't write to files/directories that are owned by apache:ftp w/rwx rights (ie. fopen & etc fail)
this is a new gentoo server i set up in november as a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-03-2007 #1Just Joined!
- Join Date
- Dec 2006
- Posts
- 4
php/apache and file permissions
Php can't write to files/directories that are owned by apache:ftp w/rwx rights (ie. fopen & etc fail)
this is a new gentoo server i set up in november as a dev box
i'm completely stumped... suggestions would be appreciated
- 02-04-2007 #2Linux User
- Join Date
- Jan 2006
- Posts
- 414
Try changing the file's/directory's owner and/or group to nobody.
chown nobody /file/you/want/php/to/write/to
chgrp nobody /file/you/want/php/to/write/to
- 02-04-2007 #3Just Joined!
- Join Date
- Dec 2006
- Posts
- 4
Thanks. I tried this, with no luck. PHP isn't in safemode and open_basedir isn't set.
I'm totally lost.
- 02-04-2007 #4Just Joined!
- Join Date
- Dec 2006
- Posts
- 4
I wrote a simple diagnostics script to test fopen on its own - the diagnostic script works, indicating this has nothing to do with server configuration.
Thanks all!


Reply With Quote
