我遇到这个错误,网站现在打不开
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
这样做后我遇到了这个问题
yum remove php php-cli php-common php-gd php-ldap php-mysql php-odbc php-pdo php-pear php-pecl-apc php-pecl-memcache php-pgsql php-soap php-xml php-xmlrpc
最佳答案
很可能在 /etc/httpd/conf.d/
中为 php 保留了一个配置文件,默认情况下由 apache 加载(具有 .conf 扩展名)。由于您已经删除了 php,因此无法加载 php 模块并且 httpd 会抛出无法启动的错误。
所以转到/etc/httpd/conf.d,看看那里有什么 .conf 文件,然后删除 php.conf 文件或至少注释其中的 php 模块,这样它就不会在 apache 加载时加载重新启动。然后通过发出 systemctl restart httpd
关于linux - httpd.service 的作业失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46806172/