Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hot to organize web app folder?

This is example that I use with my common projects:

                    └── doc # documentation, helpful information
                    └── log # folder for server logs for that website
                    └── htdocs # folder for app
                        # In case of Laravel
                        # └── app
                        # └── bootstrap
                        # └── public
                        # ...
                    └── backup
                    └── ...

But when I use some framework like Laravel I had project name htdocs, which is not very semantic and meaningful. What approach do you use?

share|improve this question

closed as primarily opinion-based by Nathan C, HBruijn, Rex, kasperd, Falcon Momot Jun 12 '14 at 1:36

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.If this question can be reworded to fit the rules in the help center, please edit the question.

I would usually advice you to use a framework and stick to their structure. For example, with Laravel 4, you have all the logic inside the app folder and the website under the publicfolder

This are guys that have put a lot of work in their structure, so I would recommend you to go with it.

share|improve this answer
You mean put all folders (log,doc etc.) inside Laravel app folder and use it as root folder? (www/sitename/public,vendor,log and others) – Sonique Jun 11 '14 at 19:19
Laravel has its own log files and functions. Why not use those? For documentation, you can use what you wish, even though I would use the app folder – Dbugger Jun 11 '14 at 20:32

Whatever works for you and gets documented...

The only thing I really care about is that web applications can be installed in and/or accessed from an arbitrary subdirectory and don't expect exclusive use of the root directory.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.