root@tasnim:/home/tara# service apache2 restart
* Restarting web server apache2 [fail]
* The apache2 configtest failed.
Run Code Online (Sandbox Code Playgroud)
配置测试的输出是:
AH00534: apache2: Configuration error: No MPM loaded.
Action 'configtest' failed.
Run Code Online (Sandbox Code Playgroud)
使用
sudo a2enmod mpm_prefork
service apache2 restart
Run Code Online (Sandbox Code Playgroud)
我有:
root@tasnim:/home/tara# service apache2 restart
* Restarting web server apache2 [fail]
* The apache2 configtest failed.
Run Code Online (Sandbox Code Playgroud)
配置测试的输出是:
AH00526: Syntax error on line 156 of /etc/apache2/apache2.conf:
Invalid command 'Require', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error …Run Code Online (Sandbox Code Playgroud)