 |
Account Login
|
 |
 |
Latest Articles
|
 |
 |
IRC Channel
|
 |
 |
Associates
|
 |
 |
Associates
|
 |
|
 |
|
 |
|
 |
01-10-2008, 02:53 PM
|
#1 (permalink)
|
|
The Addict
Join Date: Nov 2007
Posts: 282
Thanks: 61
|
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/
__________________
PHP/XHTML Freelancer:
Cleanscript.com v3 - Programming starting at just $5 act now!
|
|
|
|
01-10-2008, 03:07 PM
|
#2 (permalink)
|
|
The Addict
Join Date: Jan 2008
Location: USA
Posts: 217
Thanks: 16
|
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.
__________________
Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots. So far the Universe is winning. - Rich Cook
|
|
|
|
01-10-2008, 03:38 PM
|
#3 (permalink)
|
|
The Prestige
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
|
in your windows host file located 'C:\WINDOWS\system32\drivers\etc' add:
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
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
|
|
|
|
01-10-2008, 03:51 PM
|
#4 (permalink)
|
|
The Addict
Join Date: Nov 2007
Posts: 282
Thanks: 61
|
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.
__________________
PHP/XHTML Freelancer:
Cleanscript.com v3 - Programming starting at just $5 act now!
|
|
|
|
01-10-2008, 03:53 PM
|
#5 (permalink)
|
|
The Addict
Join Date: Jan 2008
Location: USA
Posts: 217
Thanks: 16
|
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.
__________________
Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots. So far the Universe is winning. - Rich Cook
|
|
|
|
01-10-2008, 03:55 PM
|
#6 (permalink)
|
|
The Addict
Join Date: Nov 2007
Posts: 282
Thanks: 61
|
Basically its like saying you got 2 websites on 2 different hosts. For different things. But just on my home computer...
__________________
PHP/XHTML Freelancer:
Cleanscript.com v3 - Programming starting at just $5 act now!
|
|
|
|
01-10-2008, 04:00 PM
|
#7 (permalink)
|
|
The Addict
Join Date: Jan 2008
Location: USA
Posts: 217
Thanks: 16
|
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. 
__________________
Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots. So far the Universe is winning. - Rich Cook
|
|
|
|
01-10-2008, 04:01 PM
|
#8 (permalink)
|
|
The Addict
Join Date: Nov 2007
Posts: 282
Thanks: 61
|
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)
__________________
PHP/XHTML Freelancer:
Cleanscript.com v3 - Programming starting at just $5 act now!
|
|
|
|
01-10-2008, 05:41 PM
|
#9 (permalink)
|
|
The Frequenter
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
|
Quote:
Originally Posted by sketchMedia
in your windows host file located 'C:\WINDOWS\system32\drivers\etc' add:
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>
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
|
|
|
|
01-11-2008, 03:10 PM
|
#10 (permalink)
|
|
The Prestige
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
|
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:
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'
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
|
|
|
|
01-11-2008, 05:20 PM
|
#11 (permalink)
|
|
The Frequenter
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
|
ok dude, just chill...I just gave an advice, not hit you in the head with a hammer 
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
|
|
|
|
01-11-2008, 05:32 PM
|
#12 (permalink)
|
|
The Prestige
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
|
yea sorry it was alittle harsh, ive had a stressful day, can you tell? xD didnt mean to take it out on u.
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
|
|
|
|
01-14-2008, 01:55 PM
|
#13 (permalink)
|
|
The Addict
Join Date: Nov 2007
Posts: 282
Thanks: 61
|
I'll try the virtual host thing out, but everything I tried didn't work -.-..
__________________
PHP/XHTML Freelancer:
Cleanscript.com v3 - Programming starting at just $5 act now!
|
|
|
|
01-16-2008, 10:17 PM
|
#14 (permalink)
|
|
The Wanderer
Join Date: Oct 2007
Location: Essex, United Kingdom
Posts: 6
Thanks: 0
|
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.
|
|
|
|
01-17-2008, 11:37 AM
|
#15 (permalink)
|
|
The Prestige
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
|
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
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
Last edited by sketchMedia : 01-17-2008 at 12:03 PM.
|
|
|
|
01-17-2008, 12:36 PM
|
#16 (permalink)
|
|
La Vida es Sueño
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
|
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.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
|
|
|
01-17-2008, 12:58 PM
|
#17 (permalink)
|
|
The Addict
Join Date: Jan 2008
Location: USA
Posts: 217
Thanks: 16
|
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.
__________________
Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots. So far the Universe is winning. - Rich Cook
|
|
|
|
01-17-2008, 02:55 PM
|
#18 (permalink)
|
|
The Addict
Join Date: Nov 2007
Posts: 282
Thanks: 61
|
How can I create ports on my computer like http://localhost:80 and localhost:1337 (hehe)
__________________
PHP/XHTML Freelancer:
Cleanscript.com v3 - Programming starting at just $5 act now!
|
|
|
|
01-17-2008, 05:00 PM
|
#19 (permalink)
|
|
The Wanderer
Join Date: Oct 2007
Location: Essex, United Kingdom
Posts: 6
Thanks: 0
|
Quote:
Originally Posted by Nor
|
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.
__________________
|
|
|
|
01-17-2008, 05:10 PM
|
#20 (permalink)
|
|
The Addict
Join Date: Nov 2007
Posts: 282
Thanks: 61
|
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?
__________________
PHP/XHTML Freelancer:
Cleanscript.com v3 - Programming starting at just $5 act now!
|
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|