Proper setup for local devlopment of multiple projects

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Proper setup for local devlopment of multiple projects

Postby Jstall » 12. February 2011 03:02

Hello all,

I am a fairly new web developer and am hoping someone here could answer a couple of questions regarding proper directory setup for multiple projects and configuring the server accordingly. I havn't done much sys admin stuff so please bear with me.

Currently I have one project I am working on. However I had to set the DocumentRoot of the server to the projects html folder in order for everything to work properly. This was something I was told to do by the person who helped set the project up for me. So under my default file I have
Code: Select all
DocumentRoot /home/jstall/www/project1/html


And it accessed by going to http://localhost.

My question is how would I add another project to this server and access it? I'm thinking I would have to add another <virtualhost> but am not sure. Could anyone show an example of how this could be achieved?

One more quick question regarding proper directory structure for multiple projects. I'm thinking I will just do something like www/project1 , www/project2, www/project3 is that what is typically done or should I be doing something else?

Any advice anyone could give me would be very much appreciated. Thank much!
Jstall
 
Posts: 13
Joined: 07. July 2010 20:20

Re: Proper setup for local devlopment of multiple projects

Postby Sharley » 12. February 2011 03:40

Change everything back to the defaults in the httpd.conf file as using the vhost configuration file overrides the httpd.conf file settings and may cause issues if there are duplications present...

...read as much as you can about VirtualHost settings in the httpd-vhosts.conf file and officially here:
http://httpd.apache.org/docs/2.2/vhosts/
http://httpd.apache.org/docs/2.2/vhosts/examples.html

Plus I am sure an advanced forum search in the XAMPP for Linux English forum will be most helpful and of course Google and/or your favorite engine, as this is a much used tried and proved process for multiple project hosting both with commercial hosting services and individual users, like your good self, using XAMPP.


Your directory structure for multiple projects is entirely a personal preference and the one you chose above would be suitable as would placing your projects anywhere that suits you - all will become much clearer with some reading on the subject before proceeding, also this forum is here to help where we can.

Good luck and best wishes.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Proper setup for local devlopment of multiple projects

Postby Jstall » 12. February 2011 13:52

Thank you very much for the reply, I will dig into that documentation and see what I can come up with. Thanks again :D
Jstall
 
Posts: 13
Joined: 07. July 2010 20:20


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 104 guests