Friday, January 6, 2017

centos6 - Can't start httpd centos 6 apache 2.2

I try to start httpd on centos 6 / apache 2.2 but get the following error:



/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]


After searching i found some solutions like changing



Order deny,allow
Deny from all



to



Require all denied


But this is for apache 2.4 and i'm running 2.2



Kinda stuck here and all the websites are down. Can anybody help me out?



EDIT:




This is my httpd-directories.conf file:




Options SymLinksIfOwnerMatch
AllowOverride None

Order Deny,Allow
Deny from All




AllowOverride AuthConfig FileInfo Indexes Limit Options=Includes,IncludesNOEXEC,Indexes,ExecCGI,MultiViews,SymLinksIfOwnerMatch,None
Options IncludesNoExec Includes SymLinksIfOwnerMatch ExecCGI


Order allow,deny
Allow from all



Order deny,allow
Deny from all




Options SymLinksIfOwnerMatch
AllowOverride AuthConfig FileInfo Indexes Limit Options=Includes,IncludesNOEXEC,Indexes,ExecCGI,MultiViews,SymLinksIfOwnerMatch,None

Order allow,deny

Allow from all

suPHP_Engine On
suPHP_UserGroup webapps webapps
SetEnv PHP_INI_SCAN_DIR




AllowOverride None

Options None

Order allow,deny
Allow from all

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...