LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-11-2003, 04:35 PM   #1
RIOMX
LQ Newbie
 
Registered: Oct 2003
Location: Columbus, OH
Posts: 19

Rep: Reputation: 0
Need to remove Apache 1.3 default installation under Mandrake 8.1 so Apache2 can run


I've asked this before and didn't get clear responses, mostly people telling me to try to remove RPMs...but I can't

I can't remove RPMs because there is something severely wrong with this installation of Mandrake and there are many things not working, mainly the software management section of Mandrake Control Center

I've been installing stuff by downloading tar.gz files and installing software that way instead

The main problem here is that I simply want to know if there's a clean or manual way of removing Apache 1.3, that way I can recompile APache 2 and see if it can start up properly

Since Apache 1.3 is running first, Apache2 can't run properly

Anyone have any ideas ?

- Joe
 
Old 12-11-2003, 05:58 PM   #2
axion0917
Member
 
Registered: Nov 2003
Distribution: Arch Linux / LFS
Posts: 49

Rep: Reputation: 16
can you give some specific examples or errors as to why apache 2 cant run? and did you try installing apache 1.3 from source tar.gz to the same basedir as the old install, then performing a 'make uninstall' to get rid of it?
 
Old 12-11-2003, 07:02 PM   #3
RIOMX
LQ Newbie
 
Registered: Oct 2003
Location: Columbus, OH
Posts: 19

Original Poster
Rep: Reputation: 0
I installed Apache2 about a month and a half ago and for a while it worked fine. I would check the list of processes and httpd was up and running without a problem

I could also use apachectl stop and apachectl start and the server would start up just fine

now, I get errors whenever I try to stop or start the server

Whenever I type localhost in a browser, I get the default Apache 1.3 page instead of Apache2 bringing up my index.html from the documentroot directory

I am going to download the 1.3 files as you mentioned and see how it goes from there

- Joe
 
Old 12-12-2003, 04:28 AM   #4
axion0917
Member
 
Registered: Nov 2003
Distribution: Arch Linux / LFS
Posts: 49

Rep: Reputation: 16
use ps auxw to list the processes and kill any PID related to apache or httpd. Then type 'whereis apachectl' and if there are more than one, outside of the apache 2 bin folder, rm them. finally make a symlink of the apache2 apachectl file using 'ln -s path_to_apache2/bin/apachectl /sbin/apachectl'. then you should be able to run apachectl without any problems. if you are seeing the apache 1.3 html pages, you are most likely getting an error when starting apache2 because apache 1.3 is already running ... keep us posted
 
Old 12-12-2003, 12:23 PM   #5
RIOMX
LQ Newbie
 
Registered: Oct 2003
Location: Columbus, OH
Posts: 19

Original Poster
Rep: Reputation: 0
You are so awesome !!!

Thanks so much. This is going to help me get lots of work done today since I need to have Apache2 up and running properly. I have a whole website for the engineering lab here at OSU that needs to be up ASAP

Thanks again ! I'll let you know what happens

- Joe
 
Old 12-12-2003, 05:51 PM   #6
RIOMX
LQ Newbie
 
Registered: Oct 2003
Location: Columbus, OH
Posts: 19

Original Poster
Rep: Reputation: 0
OK I killed the processes that were listed as associated with Apache, but they still launched afterward

I am new to Linux so bear with me

Anyway they just keep coming back:

root 2484 0.0 2.0 15228 5224 ? S 12:05 0:00 httpd-perl -f /etc/httpd/conf/httpd-perl.conf -DHAVE_PHP4 -DHAVE_SSL -DHAVE
apache 3810 0.0 2.1 15356 5524 ? S 12:57 0:00 httpd-perl -f /etc/httpd/conf/httpd-perl.conf -DHAVE_PHP4 -DHAVE_SSL -DHAVE
apache 3811 0.0 2.1 15372 5592 ? S 12:57 0:00 httpd-perl -f /etc/httpd/conf/httpd-perl.conf -DHAVE_PHP4 -DHAVE_SSL -DHAVE
apache 3813 0.0 2.1 15376 5616 ? S 12:57 0:00 httpd-perl -f /etc/httpd/conf/httpd-perl.conf -DHAVE_PHP4 -DHAVE_SSL -DHAVE
apache 3815 0.0 2.1 15376 5596 ? S 12:57 0:00 httpd-perl -f /etc/httpd/conf/httpd-perl.conf -DHAVE_PHP4 -DHAVE_SSL -DHAVE
apache 4250 0.0 2.1 15352 5480 ? S 13:02 0:00 httpd-perl -f /etc/httpd/conf/httpd-perl.conf -DHAVE_PHP4 -DHAVE_SSL -DHAVE
apache 4251 0.0 2.1 15352 5480 ? S 13:02 0:00 httpd-perl -f /etc/httpd/conf/httpd-perl.conf -DHAVE_PHP4 -DHAVE_SSL -DHAVE
apache 4252 0.0 2.1 15352 5480 ? S 13:02 0:00 httpd-perl -f /etc/httpd/conf/httpd-perl.conf -DHAVE_PHP4 -DHAVE_SSL -DHAVE
apache 4275 0.0 2.1 15372 5588 ? S 13:03 0:00 httpd-perl -f /etc/httpd/conf/httpd-perl.conf -DHAVE_PHP4 -DHAVE_SSL -DHAVE

I rm'd /etc/apache/bin/apachectl and also /usr/bin/apachectl

Things still didn't work and by this point I got pissed so I deleted (yes, very bad) via GUI using Konqueror the directory /etc/httpd

Well, somehow http-perl is still launching those processes listed above when that directory /etc/httpd supposedly isn't there anymore

I tried to reinstall apache2 using ./configure --prefix=/usr/local/apache2, then make, make install and trying to launch it and here is the result:

[root@localhost /]# /usr/local/apache2/bin/apachectl start
[Fri Dec 12 17:40:20 2003] [warn] NameVirtualHost 128.146.48.7:80 has no VirtualHosts
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
 
Old 12-13-2003, 09:43 AM   #7
Axion
Member
 
Registered: Jan 2003
Location: Albany, NY
Distribution: Slackware 9.1, Gentoo 2004.1
Posts: 153

Rep: Reputation: 30
Ok you changed around your configuration for vhosts? It could very well be your network...try running apache with the _default_ configuration, but on an odd port such as 1234 and see what happens. also make damn sure there isnt a apache and httpd executable in the 'ps auxw' list before you launch apachectl. if there is use 'kill PID' where PID is equal to the PID number of the process in the list. sorry, i'm not familiar with where mandrake installs its default packages to. also make certain 'whereis apachectl' only has one result and thats your apache2 installation location.
 
  


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
default installation of apache 2 does not have a cgi-bin abtimoteo Ubuntu 2 06-08-2005 01:31 AM
upgrading PHP on a RH9 server with default apache installation praefex Linux - General 4 06-29-2004 10:48 AM
Can you run Apache2 without Apache 1.3? elfoozo Debian 5 05-10-2004 06:17 PM
Anyone know how to remove Apache from Mandrake 9.1 ? RIOMX Linux - Software 1 11-06-2003 10:10 AM
Remove apache2, keep apache 1.3 jermo5 Linux - Software 0 08-05-2003 10:37 AM


All times are GMT -5. The time now is 09:15 PM.

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