multiple web pages with lampp

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

multiple web pages with lampp

Postby duzzo76 » 21. April 2009 10:04

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?
duzzo76
 
Posts: 9
Joined: 21. April 2009 09:53

Re: multiple web pages with lampp

Postby Wiedmann » 21. April 2009 10:14

Put one in "./htdocs/site1" and another in "./htdocs/site2" and access them with "http://localhost/site1/" and "http://localhost/site2/"
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re:Re: multiple web pages with lampp

Postby duzzo76 » 21. April 2009 10:31

Thank you Wiedmann !
Can i acess the pages from outside my network?
duzzo76
 
Posts: 9
Joined: 21. April 2009 09:53

Re: multiple web pages with lampp

Postby Wiedmann » 21. April 2009 10:37

This depends on your router/firewall configuration.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: multiple web pages with lampp

Postby duzzo76 » 21. April 2009 11:17

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
duzzo76
 
Posts: 9
Joined: 21. April 2009 09:53

Re: multiple web pages with lampp

Postby Wiedmann » 21. April 2009 12:17

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.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: multiple web pages with lampp

Postby duzzo76 » 22. April 2009 09:23

can I do that with lampp?
duzzo76
 
Posts: 9
Joined: 21. April 2009 09:53

Re: multiple web pages with lampp

Postby Wiedmann » 22. April 2009 09:29

can I do that with lampp?

Sure. (If not, my answer would be "not possible", and not "you must setup vhosts".)
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: multiple web pages with lampp

Postby duzzo76 » 22. April 2009 09:45

do you know where i can find a guide that shows me how to set up hosts with lampp?
duzzo76
 
Posts: 9
Joined: 21. April 2009 09:53

Re: multiple web pages with lampp

Postby Wiedmann » 22. April 2009 10:24

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.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: multiple web pages with lampp

Postby duzzo76 » 22. April 2009 10:57

Thank you for all thr help
I will try that
duzzo76
 
Posts: 9
Joined: 21. April 2009 09:53

Re: multiple web pages with lampp

Postby duzzo76 » 22. April 2009 11:30

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
duzzo76
 
Posts: 9
Joined: 21. April 2009 09:53

Re: multiple web pages with lampp

Postby Wiedmann » 22. April 2009 11:41

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)
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: multiple web pages with lampp

Postby duzzo76 » 22. April 2009 11:51

Thank you
I'll look into that
duzzo76
 
Posts: 9
Joined: 21. April 2009 09:53

Re: multiple web pages with lampp

Postby Nobbie » 22. April 2009 12:01

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?
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Next

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 13 guests