the best way to uninstall nginx & php

https://askubuntu.com/questions/235347/what-is-the-best-way-to-uninstall-nginx

sudo apt-get remove nginx nginx-common # Removes all but config files.

sudo apt-get purge nginx nginx-common # Removes everything.

sudo apt-get autoremove # After using any of the above commands, use this in order to remove dependencies used by nginx which are no longer required.

Remove php $sudo apt-get remove 'php*'

$sudo apt-get purge 'php*'

$sudo apt-get autoremove

Last updated