LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-17-2006, 09:23 AM   #1
DARKGuy
LQ Newbie
 
Registered: Jan 2005
Distribution: Ubuntu 6.06 Dapper Drake
Posts: 28

Rep: Reputation: 15
Question Uninstalling Apache + MySQL + PHP ?


Greetings again ^^!

Hehe, now I have Ubuntu 6.06 Dapper Drake running all cool ! However, as I'm also a web developer I wanted to do the same thing I used to do in Windoze with some program named PHPDev (in Linux terms, some kind of automatic PHP+Apache+MySQL+PHPLibs-everything-localhost script :P) and I use for programming. I don't want to run it in WINE as I know that Linux already has these apps and WINE may screw up too, so I'm trying the native option.

I followed the following guide, in these steps:

http://ubuntuguide.org/wiki/Dapper#H...Server_service
http://ubuntuguide.org/wiki/Dapper#How_to_install_PHP4
http://ubuntuguide.org/wiki/Dapper#H...he_HTTP_Server (which also led me to http://ubuntuguide.org/wiki/Dapper#Database_Server)

Everything worked cool, until...

I screwed it up xD. It was late at night and I didn't read and copy-pasted "mysqladmin -u root password your-new-password". Everything would work fine with "your-new-password" but wasn't exactly very fast to type (and very.... generic xD) so I tried some attempts to change it: I couldn't, so I tried

apt-get remove --purge mysql apache2 php4

And it didn't work, there were still orphan mysql files, so in an attempt to delete it I deleted /var/lib/mysql (I think) and then the service didn't want to restart, but neither regenerated the database it needed again, and says something about a missing mysql.sock.

My question then, is the following one: What can I do for brute-forcing delete of EVERYTHING Mysql+Apache+PHP4 related so I can start again as if it was a clean install? I don't want to reinstall Ubuntu just 'cause of this ...

Thanks in advance
 
Old 08-17-2006, 10:21 AM   #2
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
you possibly could just reinstall everything and what is left would get overwritten.

or you can use find or locate to find all the associated files and delete them.
 
Old 08-17-2006, 10:42 AM   #3
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
All you had to do was:
Code:
apt-get install apache2 php5 libapache2-mod-php5 phpmyadmin
 
Old 08-17-2006, 10:48 AM   #4
DARKGuy
LQ Newbie
 
Registered: Jan 2005
Distribution: Ubuntu 6.06 Dapper Drake
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by xhi
you possibly could just reinstall everything and what is left would get overwritten.

or you can use find or locate to find all the associated files and delete them.
Tried that, I thought it would, but it didn't work :/

Quote:
Originally Posted by nx5000
All you had to do was:
Code:
apt-get install apache2 php5 libapache2-mod-php5 phpmyadmin
Well I din't know that :P. What about MySQL though?

Solved: Alright, it looked like I had to remove --purge the "mysql-common" package. Got its name by downloading it from the MySQL website. I wondered if there was a package with that name and voilá. It wanted to uninstall ubuntu-desktop though (dunno why) but then I reinstalled the packages it deleted, and followed the guide again, and it was all fixed.

Man, I only wish APT was more specific in ALL the packages it installs -_-' surely it'll save lots of headaches :/

Last edited by DARKGuy; 08-17-2006 at 03:56 PM.
 
  


Reply



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
Apache + php + mysql ghodkiller Slackware 5 06-15-2005 02:04 AM
Uninstalling Apache, PhP and MySQL issey Linux - Newbie 2 03-24-2005 08:58 AM
apache , php , mysql linuxtm2005 Red Hat 1 12-29-2003 12:07 PM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 08:59 PM
php-nuke with apache php mysql c0c0deuz Linux - Software 0 03-30-2003 06:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:13 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