I am currently developing a php application using MVC techniques. I started it without thinking about a useful directory structure.
I'm planning to deploy the application to a apache2 server now. This is how it looks right now.
I have a httpdocs folder on the server which is accessible from the web. If I copy all files into this directory some files might be accessible that shouldn't. The public
folder contains the files that have to be accessible. (I might need to put my index.php there)
My question is: What is the preferred layout for such an application? Should I put all folders except public
in the parent folder of httpdocs
?
Thanks for your advices!