10 articles WHM/CPanel

.htaccess for WordPress

htaccess

Here are some great codes to insert into your .htaccess file to help with securing your website. Put this in your root folder. #Disable disable directory browsing Options All -Indexes # Block wp-includes folder and files RewriteEngine On RewriteBase / RewriteRule ^wp-admin/includes/ – [F,L] RewriteRule !^wp-includes/ – [S=3] RewriteRule ^wp-includes/[^/]+\.php$ – [F,L] RewriteRule ^wp-includes/js/tinymce/langs/.+\.php -…

Increasing PHP Limits

In order to have your own customize php.ini file functioning properly, your host must support users with customize php files. If your WHM setups uses suPHP, then it should support customize php.ini files. In order to see your php setup, create a file usting notepad (Windows) or textedit (Mac) and save it as “phpinfo.php”. Type…

Error Log Locations for Cpanel

Here’s a list of Log file locations. Great for troubleshooting. Access logs and user actions /usr/local/cpanel/logs/access_log Account transfers and misc. logs /var/cpanel/logs Auditing log (account creations, deletions, etc) /var/cpanel/accounting.log Backup logs /usr/local/cpanel/logs/cpbackup Brute force protection (cphulkd) log /usr/local/cpanel/logs/cphulkd.log Cpanel dnsadmin dns clustering daemon /usr/local/cpanel/logs/dnsadmin_log Cpanel taskqueue processing daemon /usr/local/cpanel/logs/queueprocd.log DBmapping /usr/local/cpanel/logs/setupdbmap_log EasyApache build logs /usr/local/cpanel/logs/easy/apache/…

Tune mysql for better performance

mysql

Increase mysql performance with the tool from mysqltuner.com 1. SSH into your server. Make sure you have perl installed already. 2. Run the command to download the mysqltuner script wget http://mysqltuner.pl/ -O mysqltuner.pl 3. Run the code perl mysqltuner.pl Here is a sample out put root@server [~]# perl mysqltuner.pl >> MySQLTuner 1.3.0 – Major Hayden…

Fix Unlimited Quota in WHM

Issue: Quota in WHM under Account Information > List Accounts shows “unlimited” for all users in a SolusVM OpenVZ container environment. The following steps will demonstrate how to fix the issue. It will require access to the Node and to the VPS. 1. SSH into the VPS and run this command: # /scripts/fixquotas Fail output…