Running 2 apaches simultaneously


 
Thread Tools Search this Thread
Operating Systems Solaris Running 2 apaches simultaneously
# 1  
Old 07-21-2005
Computer Running 2 apaches simultaneously

Hello, I want to run 2 apaches simultaneusly in a system, one operating with port 80 and the other one with 85, i already have the configuration files ready and i tryed something i saw in a manual, like this:

first i start apache as normal:

/usr/local/etc/httpd/bin/apachectl start

the i try to start a second instance with another directory like this:

/usr/local/etc/httpd/bin/httpd -d /sistemas/cencar.httpd

or pointing to the httpd.conf file:

/usr/local/etc/httpd/bin/httpd -f /sistemas/cencar.httpd/conf/httpd.conf


all of them work fine, except they dont work simultaneously, i can start either one or another but not 2 at the same time, after i started the first apache i try to start the second, i type the command and nothing happens, no error messages and it doesnt start... does anyone know what wrong with this?

thanks.

Tony.

-----------------------------------------------------------
edit: woops, I forgot, its apache 1.3.9 , the OS is Solaris 9 Smilie

Last edited by sx3v1l_1n51de; 07-21-2005 at 10:55 AM.. Reason: forgot teh version...
# 2  
Old 07-21-2005
Take a look at Multiple Versions of Apache - should help even if it isn't on Solaris.
# 3  
Old 07-22-2005
Computer

Thanks, i just changed a few things in the httpd.conf file, it appears you have to rename the log files and the pid file of the second apache you want to start so its different from the ones already running, and it worked all right.

Thanks!!! Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to run feeding each other processes simultaneously?

Hello, I need to run multiple shell processes simultaneously and output of the first process shall be the input of the second process but first process is never ending so both should be running in parallel. I do not wish to wait the end of the first process. I am under ubuntu 16.04. ... (3 Replies)
Discussion started by: baris35
3 Replies

2. Shell Programming and Scripting

Shell script for running simultaneously two interfaces

Hi! I have two environments on a machine and each one has some scripts for checking if some interfaces are down, and if so, it restarts them. The issue now is that i cannot keep both interfaces running, on both environments i see the same process running. How can i modify my scripts in... (4 Replies)
Discussion started by: Jane_Doe
4 Replies

3. Shell Programming and Scripting

Looping through 2 files simultaneously

Hi all, I'm having a problem with a script which should ultimately provide a filename by reading a value from file1 and file2 then join together. I'm planning to use a loop/ loops to get the values out of both files and create a single string unfortunately the code currently treats the second... (7 Replies)
Discussion started by: chris01010
7 Replies

4. What is on Your Mind?

Let's Count how many ppl r online simultaneously here...

I just wanto know how many ppl here r simultaneously online and the max number of online ppl here ever.:p:p:p:p (1 Reply)
Discussion started by: macroideal
1 Replies

5. Shell Programming and Scripting

Run a command in bg simultaneously with

Hi, I want to run the command below in the background: tail -f file.txt | grep "pattern" The file file.txt will start getting its contents written after this command has started getting run. So the flow will be like this tail -f file.txt | grep "pattern" #The line below will write data... (0 Replies)
Discussion started by: King Nothing
0 Replies

6. UNIX for Dummies Questions & Answers

how to call two programs simultaneously

Hi, i want to call two programs simultaneously from a currently running program so as to distribute the job and fasten the speed. As of now I call the programs one after the other within the main program. e.g. `perl A.pl`; `perl B.pl`; how can I run the two paralelly? urgent ... please... (1 Reply)
Discussion started by: vipinccmb
1 Replies

7. Filesystems, Disks and Memory

Running 2 Drives simultaneously?

So I have yet another query which requires the genius of the users on Unix.com. Having asked around at my work (Tech company) No one can really answer my question thoroughly. My goal is to get 2 Hard drives running at the same time and allow me to switch between working on one to the other.... (4 Replies)
Discussion started by: Infidel
4 Replies

8. Shell Programming and Scripting

How to parse 2 files simultaneously

Say I have 2 files of 2 rows of 3 columns each file1: cat catdata1 catdata2 dog dogdata1 dogdata2 file2: cat catdata3 catdata4 dog dogdata3 dogdata4 and I need to combine both files so that is appears like: cat catdata1 catdata2 catdata3 catdata4 dog dogdata1 dogdata2 dogdata3... (8 Replies)
Discussion started by: Awanka
8 Replies

9. UNIX for Dummies Questions & Answers

cp & mkdir simultaneously

Can I create a new directory and copy files to it in a single command (not by linking 2 commands with a semi colon)? If so how? The only way I can see to do it is to first create the new directory using mkdir THEN copy files to it using the cp command. (5 Replies)
Discussion started by: enuenu
5 Replies

10. Shell Programming and Scripting

Execution of two jobs simultaneously

Hi All, I have a script and a diff program,(lets say a java program) which needs to be excuted simulaneously. What I am currently doing is excuting one in foregound and the other in the back ground. But as running the job in the background does not always fruitful, especially when the jobs are... (8 Replies)
Discussion started by: rinku11
8 Replies
Login or Register to Ask a Question