Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
50
rated 0 times [  50] [ 0]  / answers: 1 / hits: 234098  / 2 Years ago, fri, april 29, 2022, 4:33:23

I'd like to start over with my webserver and I'd like to reinstall all the LAMP packages, how do I do that?


More From » server

 Answers
4

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:



To remove the LAMP stack remove the following packages:


Note: This assumes you have no other programs that require any of these packages. You might wish to simulate this removal first, and only remove the packages that don't cause removal of something desired.


sudo apt-get remove apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl libmysqlclient15off libnet-daemon-perl libplrpc-perl libpq5 mysql-client-5.0 mysql-common mysql-server mysql-server-5.0 php5-common php5-mysql


To also remove the debconf data, use the purge option when removing. To get rid of any configurations you may have made to apache, manually remove the /etc/apache2 directory once the packages have been removed.



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.


[#44497] Saturday, April 30, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ciousuntru

Total Points: 352
Total Questions: 124
Total Answers: 95

Location: Grenada
Member since Tue, Oct 12, 2021
3 Years ago
ciousuntru questions
;