LinuxQuestions.org
Visit Jeremy's Blog.
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 05-07-2009, 08:42 AM   #1
atomiccomp
Member
 
Registered: Dec 2008
Location: UK
Distribution: Debian/Ubuntu
Posts: 41

Rep: Reputation: 0
Cool Apache2 removal debian? won't remove


Hi All!
I have been tryng to get apache working with virtual hosts and screwed up my apache2.conf file, so I thought no problem I will uninstall it!
So I did and I removed it using apt-get --purge remove for apache2 & apache2-common, but it has left all my files still there, and if also if I run /etc/init.d/apache2 start it tries to start but complains there is no apache2.conf file!
I just don't get it, why has apt not removed it all lock stock ect. What I am trying to do is start from scratch with apache.
So are my options?
1, wipe the box and start again (but that defeats the object of running linux to me)
2, or is there a way to totaly remove/trash apache2 and start again?

Thanks in advance.
Atomiccomp
 
Old 05-07-2009, 08:58 AM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
what is the output of the two following commands ?

aptitude search ~c | grep apache

aptitude search ~i | grep apache


btw the Debian developers recommended you switch from apt-get to aptitude back when Etch was released.. your call.

Last edited by farslayer; 05-07-2009 at 09:00 AM.
 
Old 05-07-2009, 09:05 AM   #3
atomiccomp
Member
 
Registered: Dec 2008
Location: UK
Distribution: Debian/Ubuntu
Posts: 41

Original Poster
Rep: Reputation: 0
Hi, thanks for the reply, the first command generated nothing but the second generated the following;
jibend:/etc/apache2# aptitude search ~c | grep apache
jibend:/etc/apache2# aptitude search ~i | grep apache
i apache2-doc - documentation for apache2
i apache2-mpm-prefork - Traditional model for Apache HTTPD 2.1
i A apache2-utils - utility programs for webservers
i A apache2.2-common - Next generation, scalable, extendable web
i libapache2-mod-perl2 - Integration of perl with the Apache2 web s
i libapache2-mod-php5 - server-side, HTML-embedded scripting langu
i libapache2-mod-python - Apache 2 module that embeds Python within


HAve I missed something?!
Regards
Atomiccomp
 
Old 05-07-2009, 09:16 AM   #4
atomiccomp
Member
 
Registered: Dec 2008
Location: UK
Distribution: Debian/Ubuntu
Posts: 41

Original Poster
Rep: Reputation: 0
I used aptitude to remove apache2.2-common;
jibend:/etc# aptitude search ~i | grep apache
i apache2-doc - documentation for apache2
jibend:/etc# aptitude search ~c | grep apache
c apache2.2-common - Next generation, scalable, extendable web
c libapache2-mod-perl2 - Integration of perl with the Apache2 web s
c libapache2-mod-php5 - server-side, HTML-embedded scripting langu
c libapache2-mod-python - Apache 2 module that embeds Python within
jibend:/etc# aptitude remove apache2.2-common
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
Building tag database... Done
The following packages have been kept back:
acpid apt apt-utils avahi-daemon bind9 bind9-doc bind9-host cupsys cupsys-bsd cupsys-client cupsys-common debian-archive-keyring dnsutils dpkg
dpkg-dev dselect epiphany-browser iceweasel iceweasel-gnome-support ipopd ipopd-ssl libavahi-client3 libavahi-common-data libavahi-common3
libavahi-core4 libavahi-glib1 libavahi-qt3-1 libavcodec0d libbind9-0 libc-client2002edebian libc6 libc6-i686 libcupsimage2 libcupsys2 libcurl3
libdns22 libfreetype6 libglib2.0-0 libgnutls13 libicu36 libisc11 libisccc0 libisccfg1 libkrb53 liblcms1 liblwres9 libmozjs0d libmysqlclient15off
libnspr4-0d libnss3-0d libpam-modules libpam-runtime libpam0g libpng12-0 libpostproc0d libpq4 libsndfile1 libsnmp-base libsnmp9 libsoup2.2-8
libssl0.9.8 libvolume-id0 libxml2 libxml2-utils libxul-common libxul0d linux-image-2.6.18-6-686 locales login lwresd mlock mysql-common openssl passwd
proftpd python-libxml2 python2.4 python2.4-minimal reportbug udev uw-imapd uw-imapd-ssl vim-common vim-tiny xterm xulrunner-gnome-support
0 packages upgraded, 0 newly installed, 0 to remove and 86 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
jibend:/etc# aptitude search ~c | grep apache
c apache2.2-common - Next generation, scalable, extendable web
c libapache2-mod-perl2 - Integration of perl with the Apache2 web s
c libapache2-mod-php5 - server-side, HTML-embedded scripting langu
c libapache2-mod-python - Apache 2 module that embeds Python within
jibend:/etc# aptitude search ~i | grep apache
i apache2-doc - documentation for apache2
 
Old 05-07-2009, 09:16 AM   #5
atomiccomp
Member
 
Registered: Dec 2008
Location: UK
Distribution: Debian/Ubuntu
Posts: 41

Original Poster
Rep: Reputation: 0
But, the dir and files remain for some reason.
 
Old 05-07-2009, 11:22 AM   #6
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
aptitude purge apache2 would have been a better choice, but we can still work with this.

the search using ~c shows config files that are left behind. according to that output the apache confgs have not been removed..

aptitude purge ~c

that should remove ALL leftover config files from packages that have been removed from your system. surprise you will probably see a list a LOT larger than just those apache items. I just discovered this the other day and found I had leftovr config files form 150 odd packages on my system that had been automatically removed..

http://www.linuxquestions.org/questi...orking-723265/
 
Old 05-07-2009, 05:19 PM   #7
atomiccomp
Member
 
Registered: Dec 2008
Location: UK
Distribution: Debian/Ubuntu
Posts: 41

Original Poster
Rep: Reputation: 0
Thankyou for the info, I now have apache2 working properly, after following your advice. Been an excellect learning experience!
Thanks Again.
 
  


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
Proper way to remove apache2? stefanlasiewski Debian 3 08-21-2005 05:54 PM
Remove apache2? freakin'me Linux - Software 3 08-13-2005 12:01 PM
Remove apache2 (httpd) jermo5 Linux - Newbie 8 08-06-2003 08:20 AM
Remove apache2, keep apache 1.3 jermo5 Linux - Software 0 08-05-2003 10:37 AM
how do i remove server banners in apache2? groovin Linux - Networking 7 12-12-2002 02:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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
Open Source Consulting | Domain Registration