LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Remove apache2? (https://www.linuxquestions.org/questions/linux-software-2/remove-apache2-352823/)

freakin'me 08-13-2005 07:48 AM

Remove apache2?
 
Hi,

I recently installed apache (newest stable version) on my linux box using this tutorial:

Quote:

Change into the directory created when you untarred the sourceball as follows;

#cd httpd-2.0.48

Follow this command by typing;

#./configure –prefix=/usr/local/apache2 –enable-mods-shared=most (enter)

This tells Apache to install in the /usr/local/apache2 directory, and to build most of the available loadable modules. There are a ton of options with Apache, but these should work for the most part. Once the configure is done and the system returns the prompt to you, issue the following command;

#make

This will take a few minutes, once the prompt comes back again issue the following command;

#make install

Wait for a few minutes and viola !, Apache is installed with the exception of a few minor changes we still need to make. They are as follows..

Issue the following command;

#vi /usr/local/apache2/conf/httpd.conf

Check to make sure the following line is present in the file at the bottom of the LoadModule list, if it is not there add it;

LoadModule php4_module modules/libphp4.so

Find the DirectoryIndex line and edit it so it looks like the following;

DirectoryIndex index.html index.html.var index.php

Find the AddType application section and add the following line;

AddType application/x-httpd-php .php

Thats it, save the file and we are done with Apache. Now, on to MySQL !
(I'd love to post the ur, but that isn't allowed here for me.....)

Now, I want to remove it again, anybody that can tell me how?

thanks in advance,

Freakin'me

slackie1000 08-13-2005 09:51 AM

hi there,
short answer: remove it by hand.
when you install an application from the source, you don't have the possibility to remove it automatically.
only in a few, few, few, cases where the Makefile is prepared for that.
try searching the board.
this kind of question already came up.
when i say "remove it by hand", means that you need to find the installed files and use the old
Code:

rm
regards
slackie1000

madluther 08-13-2005 10:37 AM

The configure command in the build process specifies the location of the apache install, in this case /usr/local/apache2, to remove it simply delete that directory, e.g.
Code:

rm -rf /usr/local/apache2

oblivious69 08-13-2005 11:01 AM

if you still have the source directory, you may be able run "make uninstall."


All times are GMT -5. The time now is 10:37 PM.