2

I'm having trouble with my LAMP stack since the Ubuntu 18.04 upgrade, so I'd like to just remove everything and start with a clean slate. I'm referring to the post entitled "How do I remove the LAMP stack so I can start over?" but, it appears to list older versions, PHP5 for example. I can't find documentation for anything more current and I have PHP 7.2.7 installed. Can I just substitute PHP7 in every instance of PHP5 and accomplish the same results, or is there more current and specific documentation that I haven't found. Thanks, in advance, for your assistance.

1 Answers1

2

You can remove all the main stuff with these commands:

sudo apt-get purge mysql-server apache2 php
sudo apt autoremove && sudo apt autoclean

Then reinstall it the modern way using taskel:

sudo apt install tasksel
sudo tasksel install lamp-server