Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > two apache servers

two apache servers
Thread Tools
Fresh-Faced Recruit
Join Date: Jul 2006
Status: Offline
Reply With Quote
Jul 29, 2006, 07:06 AM
 
i would like to run two apaches on one computer

i have one installed on my HDD with configuration (call it server 1)

127.0.0.1
port 80

and the second one is installed on my flash disk with configuration (call it server 2)

127.0.0.1:3000
port 3000

when i run server 1 and then server 2..server 1 listnes on 80 and respond to "http://localhost" typed in browser address bar but server 2 doesnt respond when i type "http://localhost:90"

but when i shut down both and restart them in the way "server 2 start" and then "server 1 start" everythings OK ...

where do i do mistake, why i have to stoped my local server and then start them backwards?
how can i config server 2 on flash to be running without stopping my local server?

i want to use the flash server as a my storage place for database and i would like to start it on any computer where i need to access my database even if the host computer have running apache

please help me
thx Michal
     
Mac Elite
Join Date: May 2001
Location: Vancouver
Status: Offline
Reply With Quote
Jul 29, 2006, 09:56 AM
 
Did you try http://localhost:3000? Your 2nd server isn't listening on port 90...

Originally Posted by maikki
the second one is installed on my flash disk with configuration (call it server 2)

127.0.0.1:3000
port 3000

server 2 doesnt respond when i type "http://localhost:90"
Macbook (Black) C2D/250GB/3GB | G5/1.6 250GBx2/2.0GB
Free Mobile Ringtone & Games Uploader | Flickr | Twitter
     
maikki  (op)
Fresh-Faced Recruit
Join Date: Jul 2006
Status: Offline
Reply With Quote
Jul 29, 2006, 10:28 AM
 
i see i made a mistake during writting of course i meant localhost:3000
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Jul 29, 2006, 11:57 AM
 
Are you trying to have a single install of Apache listen on two separate ports, or have two separate versions of Apache listening on two separate ports?

You should be able to do the former by creating a virtual host declaration for your secondary port. For doing the latter, you'll need to compile Apache into a separate space. I'd suggest working with Darwinports to do that.
     
maikki  (op)
Fresh-Faced Recruit
Join Date: Jul 2006
Status: Offline
Reply With Quote
Jul 29, 2006, 12:47 PM
 
Originally Posted by besson3c
Are you trying to have a single install of Apache listen on two separate ports, or have two separate versions of Apache listening on two separate ports?

You should be able to do the former by creating a virtual host declaration for your secondary port. For doing the latter, you'll need to compile Apache into a separate space. I'd suggest working with Darwinports to do that.
I have two separate versions of apache listening on two separate ports....

i would like to do something like movable server on the flash, i installed php home edition on flash disk and the same on my computer..but everytime i run from flash it told me that another instance of apache is running

but when i start it on computer where is no apache installed everything goes great
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Jul 29, 2006, 02:20 PM
 
Originally Posted by maikki
I have two separate versions of apache listening on two separate ports....

i would like to do something like movable server on the flash, i installed php home edition on flash disk and the same on my computer..but everytime i run from flash it told me that another instance of apache is running

but when i start it on computer where is no apache installed everything goes great

Why do you need a movable server on your Flash drive? You are only going to be able to startup the Apache server on the Flash drive if you are on a computer with similar hardware to that where Apache was originally compiled.

Can you paste in the error messages out of /var/log you are getting when you start Apache from your Flash drive? I'm assuming it is trying to bind to the same port, which is causing this error message, I could be mistaken though since I have little else to go by.
     
maikki  (op)
Fresh-Faced Recruit
Join Date: Jul 2006
Status: Offline
Reply With Quote
Jul 30, 2006, 06:57 AM
 
Originally Posted by besson3c
Why do you need a movable server on your Flash drive? You are only going to be able to startup the Apache server on the Flash drive if you are on a computer with similar hardware to that where Apache was originally compiled.

Can you paste in the error messages out of /var/log you are getting when you start Apache from your Flash drive? I'm assuming it is trying to bind to the same port, which is causing this error message, I could be mistaken though since I have little else to go by.

Beacause I have made an application in php suported by mysql where i store data and therefore i want to use it also on computers where is no apache installed. i dont know now if it is realy possibble to do that but i thought that i can installed apache on flash and than it should be run on any comp but now i think it is realy problem
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Jul 30, 2006, 11:20 AM
 
Originally Posted by maikki
Beacause I have made an application in php suported by mysql where i store data and therefore i want to use it also on computers where is no apache installed. i dont know now if it is realy possibble to do that but i thought that i can installed apache on flash and than it should be run on any comp but now i think it is realy problem

Yeah, I don't think you can do what you are trying to do.

Why don't you just put your application on the internet, and password protect the pages if you don't want everybody to have access to use your application?
     
maikki  (op)
Fresh-Faced Recruit
Join Date: Jul 2006
Status: Offline
Reply With Quote
Jul 31, 2006, 04:05 AM
 
Originally Posted by besson3c
Yeah, I don't think you can do what you are trying to do.

Why don't you just put your application on the internet, and password protect the pages if you don't want everybody to have access to use your application?
thats not exactly my application, its for my employer and he wants me to do something like that even if he wont be online .... but as i see i try another solution
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Jul 31, 2006, 07:30 AM
 
Originally Posted by maikki
thats not exactly my application, its for my employer and he wants me to do something like that even if he wont be online .... but as i see i try another solution

Even if it were possible, the internet address for the application would be changing so frequently...

The idea just seems a little bizarre, is all.
     
maikki  (op)
Fresh-Faced Recruit
Join Date: Jul 2006
Status: Offline
Reply With Quote
Jul 31, 2006, 09:15 AM
 
Originally Posted by besson3c
Even if it were possible, the internet address for the application would be changing so frequently...

The idea just seems a little bizarre, is all.
no, when he would be online he would connect to one address on the internet likw
www.somtheing.com

this should be just like a presentation
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Jul 31, 2006, 09:20 AM
 
Originally Posted by maikki
no, when he would be online he would connect to one address on the internet likw
www.somtheing.com

this should be just like a presentation


If your DNS name resolution is an internet service, why can't the presentation also be put online?
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:55 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2