我使用的是Ubuntu 15.04。suPHP_UserGroup上的suphp錯誤
我已經安裝了此網址引導suphp(回購): Install suphp with apache on ubuntu
後,我定義了虛擬主機這樣的例子:
<VirtualHost 64.131.72.23:80>
ServerName some-site.com
ServerAlias www.some-site.com
DocumentRoot /home/mike/public_html
<IfModule mod_suphp.c>
suPHP_UserGroup mike mike
</IfModule>
</VirtualHost>
我重新啓動Apache服務,並得到了錯誤:
Invalid command 'suPHP_UserGroup', perhaps misspelled or defined by a module not included in the server configuration
:/etc/apache2/sites-available# systemctl status apache2.service -l
apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2)
Active: failed (Result: exit-code) since Wed 2016-01-20 00:36:26 CST; 41s ago
Docs: man:systemd-sysv-generator(8)
Process: 18692 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 18718 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)
Jan 20 00:36:26 numi apache2[18718]: * The apache2 configtest failed.
Jan 20 00:36:26 numi apache2[18718]: Output of config test was:
Jan 20 00:36:26 numi apache2[18718]: AH00526: Syntax error on line 7 of /etc/apache2/sites-enabled/wpdev.co.il.c onf:
Jan 20 00:36:26 numi apache2[18718]: Invalid command 'suPHP_UserGroup', perhaps misspelled or defined by a modul e not included in the server configuration
Jan 20 00:36:26 numi apache2[18718]: Action 'configtest' failed.
Jan 20 00:36:26 numi apache2[18718]: The Apache error log may have more information.
Jan 20 00:36:26 numi systemd[1]: apache2.service: control process exited, code=exited status=1
Jan 20 00:36:26 numi systemd[1]: Failed to start LSB: Apache2 web server.
Jan 20 00:36:26 numi systemd[1]: Unit apache2.service entered failed state.
Jan 20 00:36:26 numi systemd[1]: apache2.service failed.
編輯
根據第一個答案,我已經將我的suPHP_UserGroup包裝在<Directory>
中,但仍然是相同的錯誤。
我不是一個大專家,所以現在不編譯,只是爲了瞭解爲什麼很多人使用的包不適合我。
任何想法?
tryed編譯,得到這樣的錯誤:配置:警告:無法識別的選項:--with-PHP,--enable-SUPHP_USE_USERGROUP 配置:錯誤:找不到安裝-sh,install.sh或shtool在配置「。」/ config – user3401991
這可能會幫助你 http://askubuntu.com/questions/27677/cannot-find-install-sh-install-sh-or-shtool-in-ac-aux https://www.litespeedtech.com/support/wiki/ doku.php ID = litespeed_wiki:PHP:lsapi –