root@tasnim:/home/tara# service apache2 restart
* Restarting web server apache2 [fail]
* The apache2 configtest failed.
Вывод теста конфигурации был:
AH00534: apache2: Configuration error: No MPM loaded.
Action 'configtest' failed.
Используя
sudo a2enmod mpm_prefork
service apache2 restart
Я добрался:
root@tasnim:/home/tara# service apache2 restart
* Restarting web server apache2 [fail]
* The apache2 configtest failed.
Вывод теста конфигурации был:
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 log may have more information.
Затем я открываюсь /etc/apache2/apache2.conf
файл и получил это:
//access here, or in any related virtual host.
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied //this is line 156
</Directory>
Используя
apt-cache policy apache2
я добрался:
root@tasnim:/home/tara# apt-cache policy apache2
apache2:
Installed: 2.4.7-1ubuntu4.4
Candidate: 2.4.7-1ubuntu4.4
Version table:
*** 2.4.7-1ubuntu4.4 0
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
500 http://archive.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
100 /var/lib/dpkg/status
2.4.7-1ubuntu4 0
500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
Используя
a2query -v
я добрался:
root@tasnim:/home/tara# a2query -v
2.4.7
У меня была та же проблема Как:
Starting web server apache2
* The apache2 configtest failed.
Output of config test was: apache2:
Syntax error on line 140 of /etc/apache2/apache2.conf:
Syntax error on line 2 of /etc/apache2/mods-enabled/mpm_itk.load:
Cannot load /usr/lib/apache2/modules/mpm_itk.so into server:
/usr/lib/apache2/modules/mpm_itk.so: cannot open shared object file:
No such file or directory Action 'configtest' failed.
The Apache error log may have more information.
я пробую это: apt-get install libapache2-mpm-itk
, таким образом, я разрешаю свою проблему, переустанавливаю файлы, который отсутствует так, я могу восстановиться.
Спасибо я скачкообразно перемещаю Вас, парни могут получить решение.
sudo a2enmod auth_basic authn_core authn_file authz_core authz_host authz_user access_compat
позволяют модулям запустить сервер
Взятый от этот ответ A.B. к этот вопрос на Unix & Linux SE