Uninstall APF

Sometimes we may require to remove APF from the server. Here is a guide which shows how to remove APF completely from the server. Stop the firewall first service apf stop /bin/rm -rfv /etc/apf Remove the cron for APF /bin/rm -fv /etc/cron.daily/fw /bin/rm -fv /etc/init.d/apf lastly disable at startup chkconfig apf off This should remove… Continue reading Uninstall APF

cPanel User Shell Access : fork: Resource temporarily unavailable

The cPanel user shell access gives error all of a sudden : root@server [~]# su – user -bash: fork: Resource temporarily unavailable The culprit seems to be cPanel and its “Shell Fork Bomb Protection”. Logging into WHM >> Security >> Security Center >> “Shell Fork Bomb Protection” and clicking “Disable Protection” resolves the issue. Shell… Continue reading cPanel User Shell Access : fork: Resource temporarily unavailable

Published
Categorized as cPanel

cPanel : Horde login error !

Horde login error Horde Login shows below error : Warning: Unknown: write failed: Disk quota exceeded (122) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/cpanel/userhomes/cpanelhorde/sessions) in Unknown on line 0 Then try this cPanel script : /scripts/autorepair phpapps_owner_fix The… Continue reading cPanel : Horde login error !

What is APF (Advanced Policy Firewall)? APF Firewall

APF is a policy based iptables firewall system designed for ease of use and configuration. It employs a subset of features to satisfy the veteran Linux user and the novice alike. Packaged in tar.gz format and RPM formats, make APF ideal for deployment in many server environments based on Linux. APF is developed and maintained… Continue reading What is APF (Advanced Policy Firewall)? APF Firewall

cPanel/WHM cannot be accessed using IP/whm and IP/cpanel

The reason for this issue due to missing some lines in httpd.conf. Fix ==== 1) Open the apache configuration file(httpd.conf) in your favorite editor. 2) Add the following lines in the httpd.conf. =================================================================== ErrorDocument 400 /400.shtml ErrorDocument 401 /401.shtml ErrorDocument 403 /403.shtml ErrorDocument 404 /404.shtml ErrorDocument 500 /500.shtml ScriptAlias /cgi-sys/ /usr/local/cpanel/cgi-sys/ Alias /sys_cpanel/ /usr/local/cpanel/sys_cpanel/ Alias… Continue reading cPanel/WHM cannot be accessed using IP/whm and IP/cpanel

Published
Categorized as cPanel

cPanel email inconsistent quota !

If a cPanel email user quota does not match what is being reported by the system or a mail client run the following to determine how much space has been used for real: du -hs /home/username/mail/userdomain.com/user/ then compare it with what cPanel reports for the disk usage, if they are different delete: /home/username/mail/domain.com/user/maildirsize finally re-login… Continue reading cPanel email inconsistent quota !

PhpMyAdmin :: SQLite failed to open/create session database

This is usually a bug in the PhpMyAdmin configuration, whenever you receive the following error when accessing PhpMyAdmin either from WHM or cPanel, follow the steps given below for a fix Warning: session_write_close() [function.session-write-close]: open(/var/cpanel/userhomes/cpanelphpmyadmin/sessions/sess_uPSQAGVEZx2uuePd7SpsgTHJ6X7, O_RDWR) failed: No such file or directory (2) in /usr/local/cpanel/base/3rdparty/phpMyAdmin/navigation.php on line 85 Manually edit /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini file as follow: 1)Login… Continue reading PhpMyAdmin :: SQLite failed to open/create session database

Published
Categorized as cPanel

Named rndc.key error when starting

When trying to restart named process after making modifications may end up in a corrupt rndc.key key and the error will show like this: Sep 12 03:30:54 server named[23683]: /etc/rndc.key:1: configuring key ‘rndc-key’: bad base64 encoding Sep 12 03:30:54 server named[23683]: loading configuration: bad base64 encoding Sep 12 03:30:54 server named[23683]: exiting (due to fatal… Continue reading Named rndc.key error when starting

Catch PHP nobody Spammers

PHP and Apache has a history of not being able to track which users are sending out mail through the PHP mail function from the nobody user causing leaks in formmail scripts and malicious users to spam from your server without you knowing who or where. Watching your exim_mainlog doesn’t exactly help, you see th… Continue reading Catch PHP nobody Spammers