Hi,
We have a problem with cPanel IP Deny Manager on one account.
When ever we try to add some IP through IP deny Manager, it's trowing out error:
Error: while opening /usr/local/apache/htdocs/.htaccess
That cPanel user does not have rights to write in that file, but I can't find why is it even trying to write there.
Funny thing is that IP is properly added in that account's .htaccess:
/home/$username/public_html/.htaccess
DocumentRoot for that account is set properly:
DocumentRoot /home/$username/public_html
So, it's working, but there is that error every time.
It's happening only for one account on that server, other accounts are OK.
It's a VPS, running cPanel 11, Release.
Here is a full error from cPanel error log:
Any idea would be appreciated.
Thanks
We have a problem with cPanel IP Deny Manager on one account.
When ever we try to add some IP through IP deny Manager, it's trowing out error:
Error: while opening /usr/local/apache/htdocs/.htaccess
That cPanel user does not have rights to write in that file, but I can't find why is it even trying to write there.
Funny thing is that IP is properly added in that account's .htaccess:
/home/$username/public_html/.htaccess
DocumentRoot for that account is set properly:
DocumentRoot /home/$username/public_html
So, it's working, but there is that error every time.
It's happening only for one account on that server, other accounts are OK.
It's a VPS, running cPanel 11, Release.
Here is a full error from cPanel error log:
Code:
touch: cannot touch `/usr/local/apache/htdocs/.htaccess': Permission denied
touch: cannot touch `/usr/local/apache/htdocs/.htaccess': Permission denied
2009-01-09 08:33:04 warn [Cpanel::FileUtils::TouchFile] Failed to create /usr/local/apache/htdocs/.htaccess: No such file or directory at /usr/local/cpanel/Cpanel/FileUtils/TouchFile.pm line 69
Cpanel::FileUtils::TouchFile::touchfile('/usr/local/apache/htdocs/.htaccess') called at /usr/local/cpanel/Cpanel/DenyIp.pm line 32
Cpanel::DenyIp::_HtaccessCompatCheck() called at /usr/local/cpanel/Cpanel/DenyIp.pm line 188
Cpanel::DenyIp::DenyIp_adddenyip('195.29.150.3') called at (eval 73) line 1
eval 'Cpanel::DenyIp::DenyIp_adddenyip(@{$argref});' called at cpanel.pl line 1637
main::exectag('<cpanel DenyIp="adddenyip($FORM{\'ip\'})">') called at cpanel.pl line 4742
main::dotag(undef) called at cpanel.pl line 4625
main::cpanel_parseblock(SCALAR(0x93a5ef0)) called at cpanel.pl line 4577
main::cpanel_parse(GLOB(0x96c4988)) called at cpanel.pl line 1303
touch: cannot touch `/usr/local/apache/htdocs/.htaccess': Permission denied
touch: cannot touch `/usr/local/apache/htdocs/.htaccess': Permission denied
2009-01-09 08:33:05 warn [Cpanel::FileUtils::TouchFile] Failed to create /usr/local/apache/htdocs/.htaccess: No such file or directory at /usr/local/cpanel/Cpanel/FileUtils/TouchFile.pm line 69
Cpanel::FileUtils::TouchFile::touchfile('/usr/local/apache/htdocs/.htaccess') called at /usr/local/cpanel/Cpanel/DenyIp.pm line 260
Cpanel::DenyIp::DenyIp_adddenyip('195.29.150.3') called at (eval 73) line 1
eval 'Cpanel::DenyIp::DenyIp_adddenyip(@{$argref});' called at cpanel.pl line 1637
main::exectag('<cpanel DenyIp="adddenyip($FORM{\'ip\'})">') called at cpanel.pl line 4742
main::dotag(undef) called at cpanel.pl line 4625
main::cpanel_parseblock(SCALAR(0x93a5ef0)) called at cpanel.pl line 4577
main::cpanel_parse(GLOB(0x96c4988)) called at cpanel.pl line 1303
Thanks