i’ve just installed the rules and relative plugin into DirectAdmin using CustomBuild 2 on 3 Servers and one of those isnt working correctly.
The Server that isnt working is an old CentOS 5 64Bit server (all software are up2date related to the CentOS Mirrors).
The problem i’m facing is probably related to old perl that this OS doesnt want to update Here is the error i do have once accessing the CWAF plugin:
“remove_tree” is not exported by the File::Path module
Can’t continue after import errors at /usr/lib/perl5/site_perl/5.8.8/Comodo/CWAF/ClientAPI.pm line 12
BEGIN failed–compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Comodo/CWAF/ClientAPI.pm line 12.
Compilation failed in require at /usr/local/directadmin/plugins/comodo_waf/admin/index.pl line 11.
BEGIN failed–compilation aborted at /usr/local/directadmin/plugins/comodo_waf/admin/index.pl line 11.
Since i cant apply the rules from the web interface CustomBuild notify me that i’ve no the current/correct ruleset version for modsecurity.
It’s not a hurry and/or a big issue, i wanted just notify you guys about this issue, if a fix get released i would highly appreciate that.
We have tested Plugin for limited OS versions amount.
If it’s possible, please try to update File::Path module.
For example:
cpan
Terminal does not support AddHistory.
cpan> upgrade File::Path
CPAN: Storable loaded ok (v2.20)
Reading ‘/home/.cpan/Metadata’
…
cpan>q
Terminal does not support GetHistory.
Lockfile removed.
All user-related logs are stored in admin folder log (/var/log/modsec_audit/admin)
I guess this is because you state this folder as storage for modsecurity audit logs at "Security Engine" plugin tab
Modsecurity doesn't separate admin/user logs
Also, in the same file i can see another error message:
Message: collection_store: Failed to access DBM file "/tmp/ip": Permission denied
please help install with centos 6 directadmin but some server have error when apply rules
please help to fix
I have answered on DirectAdmin forum.
Plugin can not find exclude cache. To re-generate lets try to perform rules update.
Please try to delete /usr/local/cwaf/rules/rules.dat file then update rules with ‘Rules 1.25 is available’ button (Alternatively you can do the same with CustomBuild 2.0 plugin. Update Comodo ModSecurity Rule Set)
If this not help, please delete content of /usr/local/cwaf/tmp/rules/ (two directories ‘/workdir1’ and ‘/workdir2’) and content of /usr/local/cwaf/tmp/CACHE directory and update rules again.
Also owner of /usr/local/cwaf directory should be ‘cwaf_plugin’.
If not, please run:
We have Webmin support in the todo list, but I can’t say when we will release it.
Each new platform increases support work and now we have a lot of work with resolving issues and updating documentations for cPanel, DirectAdmin and Plesk.