微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐