Hi,

I'm a total newbie with drupal and mysql. I'm interesting in learning so I tried installing drupal per these instructions (i'm working in ubuntu 7.10):

http://weait.com/node/15

and

http://drupal.org/getting-started/5

I got a little confused along the way and mixed up my mysql database username and password. I tried a few things and didn't get anywhere. Then I tried removing everything and starting from scratch just to get everything clear in my head. Here's what I did:

sudo apt-get remove apache2 php5-mysql php5-gd libapache2-mod-php5 mysql-server
sudo apt-get autoremove
sudo apt-get autoclean

I started the whole process over, but drupal seems to still be installed since I can't get to the page where I can run the installer.

How do I remove everything related to drupal so I can start over from scratch and learn it properly?

thanks...

Comments

tm’s picture

have not encountered this yet. drupal thinking it is already installed after an attempted uninstall is sometimes related to the settings.php file (sites/default) not being deleted/overlayed with a scratch copy.

if this is the case, wonder if http://drupal.org/node/172250 would help. a little complex, but seems relevant.

dorien’s picture

Well, once you get your lamp server to work properly, you are good. Localhost should display something like: Apache works. Then if you make a little .php file with phpinfo(); you can test if php works fine.

If you want to remove drupal:
- delete the directory drupal in your htdocs or public_html folder
- delete the drupal6 database:
sudo mysql -p (or mysql -u username -ppassword)
drop drupal6

Then you are set to start again with the create database step.

rasfour’s picture

I deleted the drupal6 directory and deleted the drupal6 database in mysql. When I start the installation process all over again and browse to http://localhost/drupal6/, the php file doesn't run and firefox asks my what to do with the php file...open with application/save to disk.

I restarted the apache2 web server using: sudo /etc/init.d/apache2 restart

One thing I did notice is that when I re-install the lamp stack, the terminal doesn't prompt me to enter a root password for mysql. Is there a specific process I should be following other than:


sudo apt-get remove apache2 php5-mysql php5-gd libapache2-mod-php5 mysql-server
sudo apt-get autoremove
sudo apt-get autoclean

???

thanks...

dorien’s picture

So lamp (Linux-Apache-MySql-Php) doesn't work. FF's behaviour means that php is indead not installed correctly. Apache does not recognize the php format, so FF asks you how it needs to open the file. This is the main problem. I suggest you look at linuxquestions.org or the ubuntu forum, I use suse myself... maybe install an extra php package?

Considering the mysql password, the default password for the root user is none!! So you have to set a password is mysql:
mysqladmin -u root password new-password