Uninstall php 7 in ubuntu 18.04

后端 未结 4 1100
北荒
北荒 2021-02-06 03:18

I have a server that has an application that runs with PHP 5.6. But I upgraded the server from Ubuntu 14.04 to 18.04 and in the process I also upgraded PHP to 7.2. Now I\'m tryi

4条回答
  •  囚心锁ツ
    2021-02-06 04:03

    This will remove PHP

    sudo apt-get purge `dpkg -l | grep php7.2| awk '{print $2}' |tr "\n" " "`
    sudo apt-get purge php7.*
    sudo apt-get autoremove --purge
    whereis php
    sudo rm -rf /etc/php
    

提交回复
热议问题