I am in the process to migrate to a new web server and I would like to have a clean and safe file architecture for apache and my web application.
The server will serve one single php/mysql application. This application receive files from FTP and webservices and generate logs files.
The server OS is CentOS 5.4.
The default Apache document root is /var/www/html
.
Should I put my web application directory under :
/var/www/html/myWebApp
?/www/myWebApp
?/home/www/myWebApp
?- Somewhere else?
The application directory should be owned by the root
user or apache
user or an other user?
Thanks for your help.