 |
 |
two apache servers
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jul 2006
Status:
Offline
|
|
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
|
|
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"
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jul 2006
Status:
Offline
|
|
i see i made a mistake during writting of course i meant localhost:3000
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
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.
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jul 2006
Status:
Offline
|
|
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
|
|
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.
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jul 2006
Status:
Offline
|
|
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
|
|
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?
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jul 2006
Status:
Offline
|
|
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
|
|
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.
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jul 2006
Status:
Offline
|
|
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
|
|
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?
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum 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
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|