MLUG: [MLUG] Cohabitating Apaches and YUM woes
[MLUG] Cohabitating Apaches and YUM woes
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Hi.. I'm getting back into Linux admin with Fedora 2 Core. I've 
installed Apache2 and Apache1.3x, and am wondering if there's a way to 
get them running both at the same time on different ports. I've changed 
the Listen 80 to Listen 8000 in one of my confs, and I can run one or 
the other.  They are installed in /usr/local/apache2/ and 
/usr/local/apache/ respectively.

If  I do the following with apache2 already started...
[EMAIL:PROTECTED bin]# ./apachectl start
./apachectl start: httpd started

It seems to start the server, but if I
[EMAIL:PROTECTED bin]# apachectl stop
httpd (no pid file) not running

It's not started.

Looking at PIDs gives me the following.

[EMAIL:PROTECTED bin]# ps -e | grep htt
 2671 ?        00:00:00 httpd
 2672 ?        00:00:00 httpd
 2673 ?        00:00:00 httpd
 2674 ?        00:00:00 httpd
 2675 ?        00:00:00 httpd
 2676 ?        00:00:00 httpd
 2678 ?        00:00:00 httpd
 4901 ?        00:00:00 httpd
 5007 ?        00:00:00 httpd
 5008 ?        00:00:00 httpd
 5009 ?        00:00:00 httpd
 5010 ?        00:00:00 httpd
 5011 ?        00:00:00 httpd
 5012 ?        00:00:00 httpd
[EMAIL:PROTECTED bin]#

It looks like 7 instances for each server.. I assume 7 listening sockets.

However.....  I can only log into the first server I've run.
If I then try to http://bomby.org:8000 it spins and spins and spins and 
eventually times out.

If I try to start either one of them again, it fails and tells me 
there's already an instance running.

Often times I will tell ./apachectl to stop the server, and it will say 
that it has, but if I try to start again, it will tell me that there's 
already an instance running (this is after reboot with only one of the 
servers running).  If I './apachectl stop' twice in a row, then it will 
start again with './apachectl start'.

Finally.. the YUM woes.  Since I had Apache running and was happy with 
it, I felt it was ready to start adding perl and php to it.  I used YUM 
to pull down and install php.  When I did it told me httpd was a 
dependency and I let it satisfy the dependency, little knowing that it 
would install a completely new instance in /usr/sbin/ and trash my 
/etc/rc.d/init.d/httpd.

I'm wondering.. where to go from here.  If I uninstall the httpd using 
YUM or RPM or something, what would I then do to install further modules 
and such, telling them to use my apache to satisfy dependencies.  Would 
it be better for me to download and compile and configure by hand as I 
did for apache?  I'm planning on getting MySql, php, and perl up and 
running (is this possible with both servers?).

Anyways.  Any advice is greatly appreciated.




-- 
||

Christian Marcus Cepel           | And the wrens have returned &
EMAIL:PROTECTED icq:12384980 | are nesting; In the hollow of
371 Crown Point, Columbia, MO    | that oak where his heart once
65203-2202 573.999.2370          | had been; And he lifts up his
Computer Support Specialist, Sr. | arms in a blessing; For being
University of Missouri-Columbia  | born again. --Rich Mullins

_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members