How do I remove PHP 7 Completely?

  • systemctl restart apache2.service
  • systemctl status apache2.service

To remove php7.0 use

  • sudo apt-get purge php7.0-common

This will remove all php7 version, be it php 7.0 or php 7.1 etc..

  • sudo apt-get purge php7.*
  • apt-get autoremove php7.0
  • sudo apt-get purge `dpkg -l | grep php7.2| awk '{print $2}' |tr "\n" " "`
  • sudo apt-get purge php7.*

to remove all versions of php7, you still need to run some extra steps to completely and utterly remove php7:

  • sudo apt-get autoremove --purge
  • whereis php

and then remove all directories in the output of the last command, E.G.:

sudo rm -rf /etc/php

Discussion (0)

There are no comments for this doc yet.

Comment posting has been disabled on this doc.

©2024  gTokTok.COM

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending
0

Log in with your credentials

or    

Forgot your details?

Create Account