LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-05-2008, 04:02 AM   #1
helptonewbie
Member
 
Registered: Aug 2006
Location: England Somewhere
Distribution: Mandriva, PCLinuxOS, Karoshi, Suse, Redhat, Ubuntu
Posts: 518

Rep: Reputation: 39
Is it ok to run to separate apache instances on the same server and...?


Hi All,
Before i go and run-up my second apache installation, both installed from source and in separate directories. I wanted to double check if any weird things could happen if i set both apache instances to point at the same DocumentRoot path on the both servers, so both servers are accessing the same files??

Cheers
 
Old 06-05-2008, 05:13 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
Why do you want to do that? Different apache versions?
 
Old 06-05-2008, 05:31 AM   #3
helptonewbie
Member
 
Registered: Aug 2006
Location: England Somewhere
Distribution: Mandriva, PCLinuxOS, Karoshi, Suse, Redhat, Ubuntu
Posts: 518

Original Poster
Rep: Reputation: 39
Yes basically, different apache version and different versions of software installed on the new apache version.

Just wanted to check running two apache instances to the same documentroot that the new version wouldn't upset the already running apache?

cheers
 
Old 06-05-2008, 05:51 AM   #4
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
Technically, apache would just read the files and therefore, I see no problem when 2 instances access the files to read at the same time. Just check that both apache instances have the read access to the files.
 
Old 06-05-2008, 06:26 AM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
I assume that you are aware that each one needs to listen on a different address/port combination.
 
Old 06-05-2008, 08:35 AM   #6
helptonewbie
Member
 
Registered: Aug 2006
Location: England Somewhere
Distribution: Mandriva, PCLinuxOS, Karoshi, Suse, Redhat, Ubuntu
Posts: 518

Original Poster
Rep: Reputation: 39
yes thanks, no problems there :-)

I'd just never set-up two apache instances that both required to access exactly the same data, wasn't sure but expected it to be fine if apache wasn't doing anything weird behind the scenes, un-likly but i thought always best to check.

Up and running now and all seems fine.

Cheers peeps
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Too Many instances of Apache? keysorsoze Linux - Server 5 04-18-2007 04:00 PM
2 apache instances fschaller Red Hat 5 09-05-2006 12:18 PM
Can I run 2 instances of Firefox? BDiddy Linux - Software 3 09-01-2005 05:05 AM
Can't run two instances of a java program audibel Linux - Software 0 02-19-2005 05:01 PM
can you run an apache server alongside a postfix server mikew101 Linux - Software 5 07-10-2003 08:32 AM


All times are GMT -5. The time now is 09:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration