403 Forbidden Error in PhpMyAdmin

#1
Hey Everyone,

I am using DirectAdmin with OpenLiteSpeed,
I have enabled modsecurity rules from Comodo , when I import a sql file via PHPMyAdmin,
PHPMyAdmin gives an error 403, so I want to try to disable modsecurity for PHPMyAdmin.
I don't know which file should I edit so I can disable the modsecurity for PHPMyAdmin.

Any suggestion?

I have tried the following files as of now,

In the file: /usr/local/cwaf/etc/httpd/custom_user.conf
Added the following code, and it didn't work.
Code:
<Directory /var/www/html/phpMyAdmin>
SecRuleEngine Off
</Directory>
Tried it here:
/usr/local/lsws/conf/httpd-include.conf
Code:
context exp:^/phpMyAdmin {
type static
location /var/www/html/phpMyAdmin/
modsecurity  off
}
Any help would be greatly appreciated.
 

Cold-Egg

Administrator
#4
That might be a different issue. Please check the log and server load to see which process or service uses the most resources, and if the server is under attack.
 
#5
If I disable ModSecurity there are 100's of bots pinging different websites continuously. There are several LSPHP processes that are spawned and that increases the server load.
The server has around 130 accounts with over 550 websites overall.
 

Cold-Egg

Administrator
#6
For OLS, I don't think there's a way to bypass a directory. Have you tried to disable that single rule only and not the whole modsecurity service?
 
#8
For OLS, I don't think there's a way to bypass a directory. Have you tried to disable that single rule only and not the whole modsecurity service?
If it is not possible to bypass a directory with OLS, is it possible with LS Enterprise?
I can tell the customer to upgrade to LS Enterprise, if it works properly.
 
#10
Top