Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 2nd, 2008, 12:55 AM
Chuck Anderson
Guest
 
Posts: n/a
Default WAMP development machine folder structure ideas

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.
***********************************

 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles