DenyIp::adddenyip(xxx.xxx.xxx.xxx) failed: Error: while opening /home/xxx/public_html/.htaccess Error: while opening /home/xxx/public_html/.htaccess

I was getting the below error while adding an IP address from cPanel >> IP Blocker -

DenyIp::adddenyip(xxx.xxx.xxx.xxx) failed: Error: while opening /home/xxx/public_html/.htaccess Error: while opening /home/xxx/public_html/.htaccess
 
Solution :-

1. Check if .htaccess file is present under root directory.
2. Check if .htaccess file permission is valid i.e 644.

It should resolve your issue!

Was this answer helpful?

 Print this Article

Also Read

pcre.backtrack_limit reached - Joomla issue

I was getting the below error on my Joomla website - pcre.backtrack_limit reached. Solution :You...

How to allow remote MySql connection to only one IP?

There may be a case in which one of the cPanel user request you to provide access to Mysql...

How to backup single MySQL table?

Backup single MySQL table using shell command and phpMyAdmin 1. Creating dump file -...

How to reset Joomla Admin Panel Password?

Many times we used to forgot the current password of Joomla Administration panel and get in...

JFolder::create: Could not create directory - Warning! Failed to move file. Unable to find install package - Joomla Issue

While installing Extension in Joomla I was getting below error message - JFolder::create: Could...

Powered by WHMCompleteSolution