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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-07-2009, 08:42 AM
|
#1
|
Member
Registered: Dec 2008
Location: UK
Distribution: Debian/Ubuntu
Posts: 41
Rep:
|
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
|
|
|
05-07-2009, 08:58 AM
|
#2
|
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Rep:
|
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.
|
|
|
05-07-2009, 09:05 AM
|
#3
|
Member
Registered: Dec 2008
Location: UK
Distribution: Debian/Ubuntu
Posts: 41
Original Poster
Rep:
|
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
|
|
|
05-07-2009, 09:16 AM
|
#4
|
Member
Registered: Dec 2008
Location: UK
Distribution: Debian/Ubuntu
Posts: 41
Original Poster
Rep:
|
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
|
|
|
05-07-2009, 09:16 AM
|
#5
|
Member
Registered: Dec 2008
Location: UK
Distribution: Debian/Ubuntu
Posts: 41
Original Poster
Rep:
|
But, the dir and files remain for some reason.
|
|
|
05-07-2009, 11:22 AM
|
#6
|
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Rep:
|
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/
|
|
|
05-07-2009, 05:19 PM
|
#7
|
Member
Registered: Dec 2008
Location: UK
Distribution: Debian/Ubuntu
Posts: 41
Original Poster
Rep:
|
Thankyou for the info, I now have apache2 working properly, after following your advice. Been an excellect learning experience!
Thanks Again.
|
|
|
All times are GMT -5. The time now is 03:00 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|