Apache write access
Hi,
I am setting up a web server for our web site (it is currently hosted by a 3rd party and we will be hosting it our selves shortly).
The web developer told me that the code creates files and folders at various places in the site including the root of the web site (and it may update existing files too). The site is written in PHP.
The server I am setting up is running Apache 2.2 and PHP5.
I am very hesitant to give the apache user write access to the entire web site directory for obvious reasons.
My question is:
Is there some way we can allow PHP to create files/folders and update files without giving apache write access to everything?
I am thinking of something like suExec.
Any ideas would help.
Thanks.
|