o apache2 configtest falhou com a saída “No MPM loaded.”

2
root@tasnim:/home/tara# service apache2 restart
 * Restarting web server apache2                                         [fail] 
 * The apache2 configtest failed.

A saída do teste de configuração foi:

AH00534: apache2: Configuration error: No MPM loaded.
Action 'configtest' failed.

Usando

sudo a2enmod mpm_prefork
service apache2 restart

Eu tenho:

root@tasnim:/home/tara# service apache2 restart
 * Restarting web server apache2                                  [fail] 
 * The apache2 configtest failed.

A saída do teste de configuração foi:

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.

Então eu abro o arquivo /etc/apache2/apache2.conf e entendi:

//access here, or in any related virtual host.
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Require all denied //this is line 156
</Directory>

Usando

 apt-cache policy apache2

eu tenho:

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

Usando

 a2query -v

eu tenho:

root@tasnim:/home/tara# a2query -v
2.4.7
    
por Tasnim Tara 08.05.2015 / 09:47

2 respostas

4

Eu tive o mesmo problema Como:

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.

Eu tento isso: apt-get install libapache2-mpm-itk , então resolvo meu problema, reinstale os arquivos que estão faltando para que eu possa recuperar.

Obrigado, eu espero que vocês possam obter uma solução.

    
por ashish bhatt 09.07.2015 / 07:09
0
sudo a2enmod auth_basic authn_core authn_file authz_core authz_host authz_user access_compat

habilitar módulos para iniciar o servidor

Extraído de esta resposta por AB para esta questão no Unix & amp; Linux SE

    
por suraj kakade 05.03.2017 / 05:23