On 8/22/06, mb2@xxxxxxxxxxxxxxxx <mb2@xxxxxxxxxxxxxxxx> wrote:
Hi, We have a shared hosting platform, and have a requirement to allow php scripts to create directories+files - Problem is that php is run under apache user (www-data), and the users directories are owned by the user, so php script is getting permission denied...We could chmod 777 on the directory, but I was hoping there was a more secure alternative?
Two options: 1. Run php as a CGI under suexec. 2. Give ownership of the relevant directories to www-data and use php's safe mode. (But be sure to recognize its limitations.) Joshua. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx