14.04 – 如何完全删除PHP 7?

我已将PHP旧版本升级到最新的PHP7但无法启动其服务.

systemctl restart apache2.service

Job for apache2.service Failed. See "systemctl status apache2.service" and "journalctl -xe" for details.

状态详情:

systemctl status apache2.service


● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2)
Active: Failed (Result: exit-code) since Mon 2016-01-04 13:58:17 IST; 5s ago
 Docs: man:systemd-sysv-generator(8)
 Process: 16666 ExecStart=/etc/init.d/apache2 start (code=exited,       status=1/FAILURE)

Jan 04 13:58:17 GCT022 apache2[16666]: *
Jan 04 13:58:17 GCT022 apache2[16666]: * The apache2 configtest Failed.
Jan 04 13:58:17 GCT022 apache2[16666]: Output of config test was:
Jan 04 13:58:17 GCT022 apache2[16666]: apache2: Syntax error on line 140 of /etc/apache2...
Jan 04 13:58:17 GCT022 apache2[16666]: Action 'configtest' Failed.
Jan 04 13:58:17 GCT022 apache2[16666]: The Apache error log may have more information.
Jan 04 13:58:17 GCT022 systemd[1]: apache2.service: control process exited, code=exit...s=1
Jan 04 13:58:17 GCT022 systemd[1]: Failed to start LSB: Apache2 web server.
Jan 04 13:58:17 GCT022 systemd[1]: Unit apache2.service entered Failed state.
Jan 04 13:58:17 GCT022 systemd[1]: apache2.service Failed.
Hint: Some lines were ellipsized, use -l to show in full.
root@client022:/home/user22$^C

现在我想恢复或删除PHP7,我可以使用旧版本激活用户计算机.

解决方法:

正如我已经回答了你的问题Unable to locate package php7.0并且你接受了我的答案,因为你明确要求删除包裹:

sudo apt-get install ppa-purge
sudo ppa-purge ppa:ondrej/PHP-7.0

相关文章

统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
前言 之前做了微信登录,所以总结一下微信授权登录并获取用户...
FastAdmin是我第一个接触的后台管理系统框架。FastAdmin是一...
之前公司需要一个内部的通讯软件,就叫我做一个。通讯软件嘛...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...