I'd like to start over with my webserver and I'd like to reinstall all the LAMP packages, how do I do that?
Ubuntu – How to remove the LAMP stack so I can start over
lampserveruninstall
lampserveruninstall
I'd like to start over with my webserver and I'd like to reinstall all the LAMP packages, how do I do that?
Best Answer
sudo apt-get purge mysql-server apache2 php5
That will remove the "big-boy" packages, which should take care of most cases.
You can find this information in the documentation, specifically this section on how to start over:
Don't use tasksel to remove packages, bad things can happen, this is covered in this bug report.
The rest of the documentation covers how you would reinstall apache and all the stuff you'll need to get going again.