Eu tento iniciar o httpd no centos 6 / apache 2.2, mas recebo o seguinte erro:
/etc/init.d/httpd start
Starting httpd: [Sun Nov 08 20:47:36 2015] [warn] module php5_module is already loaded, skipping
Syntax error on line 5 of /etc/httpd/conf/extra/httpd-directories.conf:
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration
[FAILED]
Depois de pesquisar, encontrei algumas soluções, como mudar
Order deny,allow
Deny from all
para
Require all denied
Mas isso é para o apache 2.4 e eu estou rodando 2.2
Meio preso aqui e todos os sites estão em baixo. Alguém pode me ajudar?
EDITAR:
Este é o meu arquivo httpd-directories.conf:
<Directory />
Options SymLinksIfOwnerMatch
AllowOverride None
Order Deny,Allow
Deny from All
</Directory>
<Directory /home>
AllowOverride AuthConfig FileInfo Indexes Limit Options=Includes,IncludesNOEXEC,Indexes,ExecCGI,MultiViews,SymLinksIfOwnerMatch,None
Options IncludesNoExec Includes SymLinksIfOwnerMatch ExecCGI
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
<Directory /var/www/html>
Options SymLinksIfOwnerMatch
AllowOverride AuthConfig FileInfo Indexes Limit Options=Includes,IncludesNOEXEC,Indexes,ExecCGI,MultiViews,SymLinksIfOwnerMatch,None
Order allow,deny
Allow from all
<IfModule mod_suphp.c>
suPHP_Engine On
suPHP_UserGroup webapps webapps
SetEnv PHP_INI_SCAN_DIR
</IfModule>
</Directory>
<Directory /var/www/cgi-bin>
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>