TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   2 Xampp servers? (http://www.talkphp.com/general/1926-2-xampp-servers.html)

Nor 01-10-2008 02:53 PM

2 Xampp servers?
 
How can I have 2 xampp servers on my computer? so I could access one server located: http://localhost/ and http://testzone/

RobertK 01-10-2008 03:07 PM

Not sure. Localhost is a "loopback" whereas "testzone" isn't. Not sure how you'd configure that.

But why would you need 2 XAMMP servers? Different settings and configurations? Otherwise, just put your website bits into different sub-folders in HTDOCS.

sketchMedia 01-10-2008 03:38 PM

in your windows host file located 'C:\WINDOWS\system32\drivers\etc' add:
Code:

127.0.0.1        testzone
if you want http://testzone to goto your loopback '127.0.0.1'

i dunno about having testzone be a different server, i suppose you could change the 'Listen' in the apache config to a different port, i havnt a clue and i cant try it out as im at work but i will later

Nor 01-10-2008 03:51 PM

yeah humm, one is for testing stuff the other one would be for something else, just organizing the stuff I create and test and what not.

RobertK 01-10-2008 03:53 PM

You mean archiving applications and such? Well, I don't know why you need a separate server for that, or even a webserver for that. ;-)

But hey, it might work if you tried it.

Nor 01-10-2008 03:55 PM

Basically its like saying you got 2 websites on 2 different hosts. For different things. But just on my home computer...

RobertK 01-10-2008 04:00 PM

For simplicity's sake, I'd say stick with one with two "site" subdirectories. That might be a better option. BUT, if you don't set XAMPP to auto-start, I don't see why you cannot install them to separate directories so long as you have the disk space.

Whatever floats your boat. :-D

Nor 01-10-2008 04:01 PM

I just don't see how it would work. If someone could try(im at school) return with the outcome if its possible or not :)..

(Note I already got just one server installed)

xenon 01-10-2008 05:41 PM

Quote:

Originally Posted by sketchMedia (Post 8132)
in your windows host file located 'C:\WINDOWS\system32\drivers\etc' add:
Code:

127.0.0.1        testzone
if you want http://testzone to goto your loopback '127.0.0.1'

That alone won't do. You also need to create a virtual host for Apache.

Code:

<VirtualHost *:80>
    DocumentRoot "/var/www/someotherhostfiles"
    ServerName someotherhost
</VirtualHost>


sketchMedia 01-11-2008 03:10 PM

Quote:

That alone won't do. You also need to create a virtual host for Apache.
If you had bothered to read my statement i said:
Quote:

if you want http://testzone to goto your loopback '127.0.0.1'
i then went on to say that i didnt know how to go about apache gobsh*te in order to have 2 servers on the same 'box'

xenon 01-11-2008 05:20 PM

ok dude, just chill...I just gave an advice, not hit you in the head with a hammer :-/

sketchMedia 01-11-2008 05:32 PM

yea sorry it was alittle harsh, ive had a stressful day, can you tell? xD didnt mean to take it out on u.

Nor 01-14-2008 01:55 PM

I'll try the virtual host thing out, but everything I tried didn't work -.-..

SystemBomber 01-16-2008 10:17 PM

Personally, I've never been able to change the port that Xampp is running on. This really bugs me since I use Skype a lot which uses Port 80 most of the time, so Apache won't start in Xampp :P

I think I read on the website that you can't change the port, but I may be wrong.

sketchMedia 01-17-2008 11:37 AM

why is skype usning port 80? as far as im aware port 80 should only be used for http, anyway you can change the listen port in the apache config (which is defaulted to 80, as it should be)

list of defualt ports can be found here:List of TCP and UDP port numbers - Wikipedia, the free encyclopedia

Wildhoney 01-17-2008 12:36 PM

Skype is an utter pain in the arse. I remember when I had it, Apache often failed to start because Skype was hogging the port. Such an annoyance! I don't think they use it for voice, in fact, I don't know why they use port 80, but they do. It just still works if it can't utilise port 80.

RobertK 01-17-2008 12:58 PM

From what I know, Skype uses port 80 for redundancy if your others aren't passing through. I've never had trouble with it. My port defaults to 46372 for incoming calls, with the option to use port 80/443 as alternatives for incoming calls.

Skype isn't to blame, your configuration is.

Nor 01-17-2008 02:55 PM

How can I create ports on my computer like http://localhost:80 and localhost:1337 (hehe)

SystemBomber 01-17-2008 05:00 PM

Quote:

Originally Posted by Nor (Post 8746)
How can I create ports on my computer like http://localhost:80 and localhost:1337 (hehe)

Nor, you need an application that listens on them ports or allows you to change what port it listens on. You can change Apache's default port - which is Port 80 - to whatever you want in the configuration.

Nor 01-17-2008 05:10 PM

So does that mean its possible to have 2 xampp servers or wamp servers? All I have to do is change the apache default ports?


All times are GMT. The time now is 02:04 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0