Click here to get back home

WAMP development machine folder structure ideas

 HomeNewsGroups | Search | About
 alt.www.webmaster    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
WAMP development machine folder structure ideas Chuck Anderson 07-01-2008
Posted by Chuck Anderson on July 1, 2008, 7:54 pm
Please log in for more thread options
I'm trying to come with a good organization plan for the Apache, Php,
MySQL development software on my home PC and am wondering what sort of
folder structure others may have come up with that seems handy, easy to
backup, and modularized.

My setup has not changed much over the years. As of now I have:

C:\apache2.2
C:\mysql
C:\Php

All of my web sites and local web apps are under apache2.2/htdocs - and
I have placed any special binaries I have needed for them in a folder -
c:/apache2.2/bin (e.g., ... curl, exiftool, gzip, jpegtran, ...).

(By web apps, I mean applications I've created using Php/MySQL and
HTML/browser for the GUI; like a music catalog, calendar, photo
album/gallery, general purpose address book, etc. These only reside on
my local machine .. but can also be uploaded and used within web sites.)

I've actually never bothered using Virtual Host in my apache config
until just now, ..... and since I am going to begin doing that, I want
to reorganize everything.

I'm thinking of keeping Apache, Php and MySQL in their root based
folders (as above), but I want to reorganize my web sites and local web
apps. (Is there any advantage to putting everything under one big
folder like C:/server, then placing apache, mysql, and php as subfolders
there .... along with all the web sites and web applications? I'd also
like to make backups easy .... and have them fit onto one DVD (my web
sites and web apps - plus mysql/data are the only things that really
need backing up ... Php, Mysql and apache can always be reinstalled.)

One thought I have is to create a folder, C:/localhost, and then have
subfolders for my web apps and web sites, where the web sites will look
like this:

C:/localhost/website1
# and then subfolders
includes
logs
public_html
temp

C:/localhost/website2
# and then subfolders
includes
logs
public_html
temp

... and so on ....

... putting the actual websites into the public_html subfolder,
emulating the layout on the remote host - and setting up Virtual Hosting
(e.g., loc.website1.tld -> C:/localhost/website1/pubic_html) using
Apache config and the windows hosts file.

The web apps would simply be in a subfolder such as:
C:/localhost/calendar
And I can put files used by more than one web application directly under
C:/localhost

.... So phpMyAdmin would also go there:
C:/localhost/phpmyadmin.n.n

I don't know if I should break this down more or not. I'm not sure what
to do with my "bin" files (above), but I think moving them under Program
Files might be more appropriate than the apache/bin folder I created
myself and have been using).

Before I commit to any one structure I was wondering if anyone has any
clever folder/sub-folder layouts ideas they'd like to share?

Thanks.

--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Nothing he's got he really needs
Twenty first century schizoid man.
***********************************


Similar ThreadsPosted
Help clean-out orphaned files on server & development folder March 18, 2008, 11:17 am
Can DW8 synchronise BETTER?! (i.e. simply make this folder THE SAME as that folder) September 6, 2006, 6:19 am
Standard directory structure September 21, 2006, 1:40 pm
Degaging the structure of a site May 14, 2007, 7:46 pm
OT: Firefox - Recovering Bookmarks With Directory Structure? February 17, 2006, 10:05 am
A kind data structure and arithmetic for subnetting April 30, 2006, 10:35 pm
Need CMS? Ideas May 27, 2007, 12:32 pm
A question about machine for webserver June 17, 2005, 2:23 am
A question about machine for web server June 16, 2005, 11:00 am
OT: Machine turning off unexpectedly February 7, 2006, 10:59 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap