Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 08-13-2005, 07:48 AM   #1
Registered: Aug 2005
Distribution: Debian Sarge
Posts: 31

Rep: Reputation: 15
Remove apache2?


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

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;


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/

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,

Old 08-13-2005, 09:51 AM   #2
Senior Member
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
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
Old 08-13-2005, 10:37 AM   #3
Registered: Aug 2004
Distribution: LFS
Posts: 350

Rep: Reputation: 31
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.
rm -rf /usr/local/apache2
Old 08-13-2005, 11:01 AM   #4
Registered: May 2005
Distribution: debian
Posts: 79

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


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
Proper way to remove apache2? stefanlasiewski Debian 3 08-21-2005 04:54 PM
Apache2: remove details on error pages hamish Linux - Networking 2 07-20-2005 09:54 AM
Remove apache2 (httpd) jermo5 Linux - Newbie 8 08-06-2003 07:20 AM
Remove apache2, keep apache 1.3 jermo5 Linux - Software 0 08-05-2003 09:37 AM
how do i remove server banners in apache2? groovin Linux - Networking 7 12-12-2002 01:32 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:45 AM.

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