First, we must find all infested files using following command. root@hr# cd /home/username/public_html/ root@hr#grep -lr --include=*.php "eval(base64_decode" * How to…
1. Apache Logs: /usr/local/apache/logs/error_log 2. Cpanel Logs /usr/local/cpanel/logs/error_log 3. Exim Logs: /var/log/exim_mainlog 4. FTP and Server logs /var/log/messages 5. Cron…
Following are the most IMP server configuration files in Cpanel server Apache Config: /usr/local/apache/conf/httpd.conf Exim: /etc/exim.conf Mysql: /etc/my.cnf Named: /etc/named.conf…
MySQL dbs and users dissapered ? To resolve this use following command, run: /usr/local/cpanel/bin/setupdbmap After that check it. :)
To update stasts on cpanel server for particular user, use following steps. 1. Restart Cpanel service service cpanel restart 2.…
If you are getting Too many MySQL connections error for your site, use following command to flush the connections. mysqladmin…
If you can not see user's account in WHM >> List account, please use following steps to fix it. Check…
To install and uninstall RPMs, use RPM command as follows. rpm -qa | grep pakage-name rpm -e pkgname rpm -ivh…
To change server time use following commnds. date -s 'Sun JUN 12 00:30:00 PST 2012' OR date --set="2 SEP 2013…
To block a particular IP range csf -d 45.0.0.0/8 csf -d 45.213.0.0/16 csf -d 45.213.100.0/24 Then, restart csf. csf -r…