TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 01-10-2008, 02:53 PM   #1 (permalink)
Nor
The Addict
 
Join Date: Nov 2007
Posts: 282
Thanks: 61
Nor is on a distinguished road
Default 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!
Nor is offline  
Reply With Quote
Old 01-10-2008, 03:07 PM   #2 (permalink)
The Addict
Top Contributor Good Samaritan 
 
Join Date: Jan 2008
Location: USA
Posts: 217
Thanks: 16
RobertK is on a distinguished road
Default

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
RobertK is offline  
Reply With Quote
Old 01-10-2008, 03:38 PM   #3 (permalink)
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

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
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote
Old 01-10-2008, 03:51 PM   #4 (permalink)
Nor
The Addict
 
Join Date: Nov 2007
Posts: 282
Thanks: 61
Nor is on a distinguished road
Default

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!
Nor is offline  
Reply With Quote
Old 01-10-2008, 03:53 PM   #5 (permalink)
The Addict
Top Contributor Good Samaritan 
 
Join Date: Jan 2008
Location: USA
Posts: 217
Thanks: 16
RobertK is on a distinguished road
Default

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
RobertK is offline  
Reply With Quote
Old 01-10-2008, 03:55 PM   #6 (permalink)
Nor
The Addict
 
Join Date: Nov 2007
Posts: 282
Thanks: 61
Nor is on a distinguished road
Default

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!
Nor is offline  
Reply With Quote
Old 01-10-2008, 04:00 PM   #7 (permalink)
The Addict
Top Contributor Good Samaritan 
 
Join Date: Jan 2008
Location: USA
Posts: 217
Thanks: 16
RobertK is on a distinguished road
Default

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
RobertK is offline  
Reply With Quote
Old 01-10-2008, 04:01 PM   #8 (permalink)
Nor
The Addict
 
Join Date: Nov 2007
Posts: 282
Thanks: 61
Nor is on a distinguished road
Default

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!
Nor is offline  
Reply With Quote
Old 01-10-2008, 05:41 PM   #9 (permalink)
The Frequenter
Newcomer 
 
xenon's Avatar
 
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
xenon is on a distinguished road
Default

Quote:
Originally Posted by sketchMedia View Post
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>
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
xenon is offline  
Reply With Quote
Old 01-11-2008, 03:10 PM   #10 (permalink)
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

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'
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote
Old 01-11-2008, 05:20 PM   #11 (permalink)
The Frequenter
Newcomer 
 
xenon's Avatar
 
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
xenon is on a distinguished road
Default

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.
xenon is offline  
Reply With Quote
Old 01-11-2008, 05:32 PM   #12 (permalink)
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

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)
sketchMedia is offline  
Reply With Quote
Old 01-14-2008, 01:55 PM   #13 (permalink)
Nor
The Addict
 
Join Date: Nov 2007
Posts: 282
Thanks: 61
Nor is on a distinguished road
Default

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!
Nor is offline  
Reply With Quote
Old 01-16-2008, 10:17 PM   #14 (permalink)
The Wanderer
 
SystemBomber's Avatar
 
Join Date: Oct 2007
Location: Essex, United Kingdom
Posts: 6
Thanks: 0
SystemBomber is on a distinguished road
Default

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.
SystemBomber is offline  
Reply With Quote
Old 01-17-2008, 11:37 AM   #15 (permalink)
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

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.
sketchMedia is offline  
Reply With Quote
Old 01-17-2008, 12:36 PM   #16 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

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.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
Old 01-17-2008, 12:58 PM   #17 (permalink)
The Addict
Top Contributor Good Samaritan 
 
Join Date: Jan 2008
Location: USA
Posts: 217
Thanks: 16
RobertK is on a distinguished road
Default

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
RobertK is offline  
Reply With Quote
Old 01-17-2008, 02:55 PM   #18 (permalink)
Nor
The Addict
 
Join Date: Nov 2007
Posts: 282
Thanks: 61
Nor is on a distinguished road
Default

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!
Nor is offline  
Reply With Quote
Old 01-17-2008, 05:00 PM   #19 (permalink)
The Wanderer
 
SystemBomber's Avatar
 
Join Date: Oct 2007
Location: Essex, United Kingdom
Posts: 6
Thanks: 0
SystemBomber is on a distinguished road
Default

Quote:
Originally Posted by Nor View Post
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.
__________________
SystemBomber is offline  
Reply With Quote
Old 01-17-2008, 05:10 PM   #20 (permalink)
Nor
The Addict
 
Join Date: Nov 2007
Posts: 282
Thanks: 61
Nor is on a distinguished road
Default

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!
Nor is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 10:18 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design