Page 1 of 2

multiple web pages with lampp

PostPosted: 21. April 2009 10:04
by duzzo76
Hello, I'm new to lampp, but i got my personal web page working. The problem is that i don't know how to host several web sites with lammp.. My system is Fedora 8 x64. Could anybody please help me?

Re: multiple web pages with lampp

PostPosted: 21. April 2009 10:14
by Wiedmann
Put one in "./htdocs/site1" and another in "./htdocs/site2" and access them with "http://localhost/site1/" and "http://localhost/site2/"

Re:Re: multiple web pages with lampp

PostPosted: 21. April 2009 10:31
by duzzo76
Thank you Wiedmann !
Can i acess the pages from outside my network?

Re: multiple web pages with lampp

PostPosted: 21. April 2009 10:37
by Wiedmann
This depends on your router/firewall configuration.

Re: multiple web pages with lampp

PostPosted: 21. April 2009 11:17
by duzzo76
Previously I used no-ip to acess my web page from outside, and it worked. I could accsess It by entering www.netimpressos.com on a browser. My question is if I place a folder in htdocs named for instance "whatever", can i access it typing on the browser www.whatever.com. Thanks

Re: multiple web pages with lampp

PostPosted: 21. April 2009 12:17
by Wiedmann
My question is if I place a folder in htdocs named for instance "whatever", can i access it typing on the browser www.whatever.com. Thanks

So you want access different webpages (content) with different hostnames?
--> In this case you must setup vhosts.

Re: multiple web pages with lampp

PostPosted: 22. April 2009 09:23
by duzzo76
can I do that with lampp?

Re: multiple web pages with lampp

PostPosted: 22. April 2009 09:29
by Wiedmann
can I do that with lampp?

Sure. (If not, my answer would be "not possible", and not "you must setup vhosts".)

Re: multiple web pages with lampp

PostPosted: 22. April 2009 09:45
by duzzo76
do you know where i can find a guide that shows me how to set up hosts with lampp?

Re: multiple web pages with lampp

PostPosted: 22. April 2009 10:24
by Wiedmann
do you know where i can find a guide that shows me how to set up hosts with lampp?

The webserver in the XAMPP package is an Apache. So you can find all infos in the Apache manual.

Re: multiple web pages with lampp

PostPosted: 22. April 2009 10:57
by duzzo76
Thank you for all thr help
I will try that

Re: multiple web pages with lampp

PostPosted: 22. April 2009 11:30
by duzzo76
It seems i must edit a httpd-vhosts.conf file, but is the one on lampp folder or the one on etc?
I'm not sure about which files I must edit.
Could you help me?
Thanks

Re: multiple web pages with lampp

PostPosted: 22. April 2009 11:41
by Wiedmann
but is the one on lampp folder or the one on etc?

All XAMPP related files are in "/opt/lampp/...".

(IMHO the location for some files you can also find on the XAMPP for Linux homepage)

Re: multiple web pages with lampp

PostPosted: 22. April 2009 11:51
by duzzo76
Thank you
I'll look into that

Re: multiple web pages with lampp

PostPosted: 22. April 2009 12:01
by Nobbie
duzzo76 wrote:It seems i must edit a httpd-vhosts.conf file, but is the one on lampp folder or the one on etc?Thanks


Oops! If you find a httpd-vhosts.conf in or under /etc, it means that you already have installed an Apache on your linux. Usually it collides with Xampps Apache, did you successfully install and (more important) start Xampp?