Forums Drupal

How to uninstall Drupal on Ubuntu

Subscribe to How to uninstall Drupal on Ubuntu 6 post(s), 2 voice(s)

 
Avatar Paul 4 post(s)

I need to reinstall and write down all the passwords and user names. I haven’t done anything I need to save. I tried executing, what appears to be, an executable script or bin in the Drupal folder called uninstall. However, the file type is unknown so the OS won’t execute it. Maybe I could change the type if I new how. Need some help here since I come from the land of Windows and I am ignorant.

 
Avatar Daniel Lopez Administrator 104 post(s)

Hi, can you type how you executed the command, and the exact error message that you get? Also, since hte stack is self-contained, if you have all your services stopped, uninstalling can also be as simple as just deleting that directory :)

 
Avatar Paul 4 post(s)

Hi Daniel
When I get a chance I will shut down the services and remove the folder. In the mean time the error when I try to execute the uninstall file is—> command not found. The ls color code is green (for what its worth) but the reported file browser file type is unknown. I can’t open the file with a text editor – can’t detect character encoding. This leads me to believe it is, or is trying to be, an executable. Anyway, just following up for academic purposes since I can uninstall without running the program.

 
Avatar Paul 4 post(s)

So it is a permission problem. Even when I would navigate to the drupal dir in a terminal and do a sudo uninstall I would get the “command not found” message. But when I started nautilus from a terminal as in sudo nautilus and then navigated to the drupal folder and opened the uninstall program the uninstall proceeded to execute. Don’t really know why sudo didn’t work in the first instance.

 
Avatar Paul 4 post(s)

when using the terminal to start an application or execute script the following doesn’t work: sudo something.sh… However, sudo ./something.sh does work. Can anybody explain this?

 
Avatar Daniel Lopez Administrator 104 post(s)

If you do not specify the ./ it assumes it is calling a command in the path, not in the current directory (this is how Unix works, as opposed to Windows)

Forums Drupal