Portal Home > Knowledgebase > Articles Database > server directory structrure


server directory structrure




Posted by deko, 04-18-2010, 03:06 PM
I'm moving to a dedicated server and looking for a new web server directory structure for scripts, etc. On the OLD shared server: On the NEW dedicated server, I'm shooting for something intuitive, scalable, and compatible with either Linux/Apache or Windows/IIS The general idea is to organize by technology/file format rather than purpose/description. This is a first draft and wd appreciate any suggestions, best practices, etc. Last edited by deko; 04-18-2010 at 03:10 PM.

Posted by erectvps, 04-18-2010, 03:09 PM
IS this just for your use or for other parties as well? I could seem some people seeing the new structure to be not that intuative

Posted by deko, 04-18-2010, 03:13 PM
There will be multiple sites on the server (currently Linux/Apache). Others admins will be using it. Each site will have its own directory at the first level under /public/. For example: /public/mysite01/, /public/mysite02/, etc. Granted, it's judgment call as to what's intuitive. What do you think is not intuitive? Last edited by deko; 04-18-2010 at 03:25 PM.

Posted by WebHostingNeeds, 04-18-2010, 03:43 PM
Why you want to switch between windows and linux ? I mostly use defeault cpanel structure. cgi-bin only for perl/cgi scripts. PHP can be anyware, mainly index.php is in public_html folder itself. On non cpanel servers i follow same structure, so i can move between with out much issue.

Posted by deko, 04-18-2010, 10:40 PM
We're rolling out a windows box next. May want to switch things around. Would be nice to maintain some kind of consistency. I've been using that structure for years. I think /public/ and /scripts/ are more meaningful/versatile descriptors.

Posted by WebHostingNeeds, 04-19-2010, 02:11 AM
scripts/" folder for php script is not always possible as some times whole web site itself build in PHP. In that case, your php scripts will be in public folder itself. If you are going for custom folder structure, no control panel will support it.

Posted by deko, 04-19-2010, 03:47 PM
Full ack. A shared web server's directory structure is administratively defined and cannot be modified. As antiquated as the /public_html/cgi-bin/ naming convention may seem, it is nevertheless a standard used by most Linux/Apache hosting providers, usually in accordance with the default configuration of control panel software, such as the popular cPanel. If you have complete control over your web server, you can use any directory structure you please.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Mysql question (Views: 545)
Do you do like this?? (Views: 601)