October 6, 2009 | Posted by
admin | Category: cPanel Management
If you receive the following error message in the /var/log/messages file while restarting the pure-ftpd service, the problem is in the ftp configuration file at /etc/pure-ftpd.conf
pure-ftpd: (?@?) [ERROR] Configuration error: Illegal load limit: 0
Edit the pure-ftp configuration file and search for
MaxLoad = 0
change it to
MaxLoad = 4 (value should be above 0)
Save the file and restart the service: /etc/init.d/pure-ftpd restart
Comments Off on pure-ftpd: [ERROR] Configuration error: Illegal load limit: 0
October 3, 2009 | Posted by
admin | Category: cPanel Management
Howto install CSF on your server:
1) cd /usr/local/src/
2) download csf: wget http://www.configserver.com/free/csf.tgz
3) tar -xzf csf.tgz
4) goto the csf directory : cd csf
5) ./install.sh
Once it is installed, you can either edit the configuration file from WHM >> Plugins >> “Config Server Security and Firewall” option.
If you don’t have WHM/cPanel on your server, the configuration and all the CSF related files are stored under /etc/csf directory. You need to edit the csf configuration file /etc/csf/csf.conf and make the changes as per your wish.
Once you make the required changes to your CSF configuration file and are sure, you are not going to block yourself out, change the following from
TESTING = “1”
to
TESTING = “0”
and restart the csf firewall using service csf restart command.
Comments Off on Howto: install CSF on your server.
October 1, 2009 | Posted by
admin | Category: cPanel Management
You may have notice packet drops when CSF firewall is enabled and you are downloading something. The only reason is the option
PACKET_FILTER = “1”
By default the “PACKET_FILTER” is ON which drops packets that looks illegal or out of sequence. If it’s generating false alarms and causing the valid packet to drop, you should better turn OFF the option in /etc/csf/csf.conf file
PACKET_FILTER = “0”
Save the file and restart CSF firewall.
Comments Off on CSF dropping the packets while dowloading
October 1, 2009 | Posted by
admin | Category: cPanel Management, Linux Administration, Plesk Management
“Got a packet bigger than ‘max_allowed_packet’ bytes”
The message is displayed when you try to restore a database and the packet size if more than the default one OR the one defined in the my.cnf file.You can check the existing bytes with the following command
root@server [~]# mysqladmin variables | grep max_allowed_packet
| max_allowed_packet | 1048576 |
To overcome the issue, add the following parameter in the my.cnf file
max_allowed_packet = 2097152
The value should be more than the default one. Save the file and restart the mysql service.
Comments Off on Got a packet bigger than ‘max_allowed_packet’ bytes
September 27, 2009 | Posted by
admin | Category: cPanel Management
The path to various logs files on a cPanel server for different services is listed below:
Apache Web Server Logs:
/usr/local/apache/logs/access_log
/usr/local/apache/logs/error_log
Exim (Email) Logs:
/var/log/exim_mainlog
/var/log/exim_paniclog
/var/log/exim_rejectlog
Ftp Logs:
/var/log/messages
Mysql Logs:
/var/lib/mysql/server.hostname.err
Cronjob Logs:
/var/log/cron
Server Logs:
/var/log/messages
SSH Logs:
/var/log/secure
cPanel Installation Logs:
/var/log/cpanel-install-thread0.log
ChkServd (cPanel Monitoring Daemon) Logs:
/var/log/chkservd.log
Named (Bind) Logs:
/var/log/messages
Last successful login attempts to the server:
/var/log/wtmp (but to view the details, execute the command “last”)
Last unsuccessful login attempts to the server:
/var/log/utmp (To view the logs, execute “lastb” command)
Domlogs of an Account:
/usr/local/apache/domlogs/domainname.tld
Mod Security Logs:
/usr/local/apache/logs/modsec_audit.log
/usr/local/apache/logs/modsec_debug_log
Apache SUEXEC Logs:
/usr/local/apache/logs/suexec_log
cPanel Access and Error Logs:
/usr/local/cpanel/logs/access_log
/usr/local/cpanel/logs/error_log
Stats Execution Logs:
/usr/local/cpanel/logs/stats_log
cPanel License Logs:
/usr/local/cpanel/logs/license_log
cPanel Backup Logs:
/usr/local/cpanel/logs/cpbackup/*.log
Tomcat Logs:
/usr/local/jakarta/tomcat/logs/catalina.err
/usr/local/jakarta/tomcat/logs/catalina.out
Comments Off on Know cPanel logs in detail OR List of different log files in cPanel