LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Need to remove Apache 1.3 default installation under Mandrake 8.1 so Apache2 can run (https://www.linuxquestions.org/questions/linux-software-2/need-to-remove-apache-1-3-default-installation-under-mandrake-8-1-so-apache2-can-run-125006/)

RIOMX 12-11-2003 03:35 PM

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 :D

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

axion0917 12-11-2003 04:58 PM

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?

RIOMX 12-11-2003 06:02 PM

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

axion0917 12-12-2003 03:28 AM

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

RIOMX 12-12-2003 11:23 AM

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 :D

Thanks again ! I'll let you know what happens

- Joe

RIOMX 12-12-2003 04:51 PM

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

Axion 12-13-2003 08:43 AM

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.


All times are GMT -5. The time now is 07:14 PM.