apache 在 ubuntu 14.04 Plesk 服务器中不工作出现语法错误

apache not working in ubuntu 14.04 Plesk server getting syntax error

我在 ubuntu 14.04 上使用 Plesk 控制面板。

我安装了 apache PHP 模块,然后出现这个错误:

Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP.

所以我尝试使用以下命令卸载模块:

apt-get remove libapache2-mod-php5

但是我又遇到了一个错误:

Syntax error on line 33 of /etc/apache2/plesk.conf.d/roundcube.conf: Wrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper cannot be accessed: (2)No such file or directory

我该如何解决这个问题?

这是已知行为。你需要把 libapache2-mod-php5 带回来,然后在 Tools & Settings > Apache Web Server > Apache modules > MPM mode

中选择 "Event" mode