apache down when using options in httpd.conf

arabgenius

Member
Jun 25, 2011
19
0
51
Hello every body ...
Am getting frequently hacked by symlink and cgi-shells nowadays

and Iam using apache 2.0.64 and PHP 5.2.17 and ( works fine for me as my users cant stand php 5.3 yet )
the problem is that before few months I was able to stop symlink and cgi-shells by using this in pre_virtualhost_global.conf
Code:
<Directory "/usr/local/apache/htdocs">
    Options -ExecCGI Includes -Indexes -FollowSymLinks +IncludesNOEXEC  -MultiViews +SymLinksIfOwnerMatch
    AllowOverride AuthConfig Indexes Limit FileInfo Options=IncludesNOEXEC,-Indexes,Includes,-MultiViews,SymLinksIfOwnerMatch,-FollowSymLinks
    Order allow,deny
    Allow from all
</Directory>

<Directory "/home">
    Options -ExecCGI Includes -Indexes -FollowSymLinks +IncludesNOEXEC  -MultiViews +SymLinksIfOwnerMatch
    AllowOverride AuthConfig Indexes Limit FileInfo Options=IncludesNOEXEC,-Indexes,Includes,-MultiViews,SymLinksIfOwnerMatch,-FollowSymLinks
    Order allow,deny
    Allow from all
</Directory>
but now I can't use the same code As it do not accept "Options="
Code:
Syntax error on line 19 of /usr/local/apache/conf/includes/pre_virtualhost_global.conf:
Illegal override option Options=IncludesNOEXEC
how to solve that ? and if not possible how to downgrade apache to the last version accept "Options="
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Hello :)

I noticed you opened a support ticket for this issue. It was determined the best way to resolve this issue was to upgrade your version of Apache to version 2.2 or 2.4.

Thank you.