Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Issues with uninstalling LAMP


  • Please log in to reply
6 replies to this topic

#1 lanzd

lanzd

  • Members
  • 41 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:07:00 AM

Posted 18 August 2011 - 08:47 PM

Hello, I installed LAMP a little bit ago with out knowing what I was doing. I wanted to start fresh and tried to uninstall Apache2, php5, mysql, and phpmyadmin using

sudo tasksel remove (program name here)

That didn't get rid of all files and folders on my etc folder. So, I tried using

apt-get purge (program name here)

and that still didn't remove all files and folders. So, I assumed I was supposed to manually delete the remaining folders with

dpkg -P (program name here)

and that seemed to get rid of all but when I navigate in my browser to http://localhost/ it still works. So apache is still installed, correct?

I just want to completely remove the 4 programs so I can start fresh.


Thank you, lanzd

BC AdBot (Login to Remove)

 


#2 pane-free

pane-free

  • Members
  • 117 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Between the Mtns N of the Big River
  • Local time:05:00 AM

Posted 21 August 2011 - 12:45 PM

Has
apt-get remove --purge pkgname
been tried? Also, which distro is being referred to, here?

Should it be a true Debian distro, the script smxi could prove helpful on both
the cleanup and the reinstall.

Edited by pane-free, 21 August 2011 - 12:45 PM.

There comes a time in the affairs of man when he must take the bull by the tail and face the situation.
W. C. Fields

#3 keyboardNinja

keyboardNinja

    Bleepin' Ninja


  • Members
  • 4,815 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:teh interwebz
  • Local time:06:00 AM

Posted 21 August 2011 - 09:15 PM

If you didn't stop the apache process (httpd), it is probably still running even after uninstalling.
PICNIC - Problem In Chair, Not In Computer

Posted Image Posted Image

20 Things I Learned About Browsers and the Web

#4 lanzd

lanzd
  • Topic Starter

  • Members
  • 41 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:07:00 AM

Posted 22 August 2011 - 07:15 PM

Okay, No I haven't tried "apt-get remove --purge pkgname" yet. Also I did not stop the apache process before trying to uninstall it. I'm going to try to stop the processes and then use "apt-get remove --purge pkgname" right now.

Thank you

Oh, and I'm running Ubuntu 10.04.

#5 lanzd

lanzd
  • Topic Starter

  • Members
  • 41 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:07:00 AM

Posted 22 August 2011 - 07:29 PM

All right, between doing the two it seemed to work. It doesn't show up when I use the ls command anymore.

#6 keyboardNinja

keyboardNinja

    Bleepin' Ninja


  • Members
  • 4,815 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:teh interwebz
  • Local time:06:00 AM

Posted 23 August 2011 - 12:17 AM

Yeah, if you leave a process running (google-chrome for instance), it will stay running even if you delete the files (or update them like during a software update). That's my experience anyway.
PICNIC - Problem In Chair, Not In Computer

Posted Image Posted Image

20 Things I Learned About Browsers and the Web

#7 Andrew

Andrew

    Bleepin' Night Watchman


  • Moderator
  • 8,260 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:Right behind you
  • Local time:05:00 AM

Posted 23 August 2011 - 02:42 AM

KBN is quite right. Under Linux a file or directory is not truly destroyed until it's no longer being used by a program.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users