How to Install CacheWall Cache for cPanel & Retrieve License

  Cachewall is compatible with cPanel under both CentOS 6 and CentOS 7 (including CloudLinux 6 and CloudLinux 7). The software may be installed in both dedicated and virtual server environments. Cachewall works with all cPanel versions, EasyApache 3, EasyApache 4 and LiteSpeed WebServer. rpm -ivh https://repo.cachewall.com/cachewall-release.rpm yum install -y epel-release yum install -y cachewall To activate the Cachewall plugin, you will need to register at the Cachewall site with your email address. Once signed up, CacheWall license manager will immediately send you the access information. From your login, you can create a license key for any number of servers. Site: http://cachewall.com/ Once you have the key, Run the following command to… Read More

Continue Reading

Install WP-CLI

WP-CLI is a set of command-line tools for managing WordPress installations. It allows you to run updates, add users, activate themes and more Website: http://wp-cli.org/ Installation curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar  chmod +x wp-cli.phar  mv wp-cli.phar /usr/local/bin/wp List of Available Commands: The wp-cli website contains the full lists of commands available. http://wp-cli.org/commands/ The help pages for wp-cli can be found using: wp help

Continue Reading

Downgrading MariaDB/MySQL on cPanel

IMPORTANT: This is something that is NOT recommended, especially for production servers! If for some reason you need to do this Or simply want the information, the write-up is below: MAKE A BACKUP of all data! If possible, make a snapshot/full backup of your server. This CAN go horribly wrong and cause severe data loss. $EDITOR /var/cpanel/cpanel.config search for the line, mysql-version=XXX edit that line to mysql-version=5.5   <<Or whichever version that is 1 version older than you are looking to downgrade to yum remove mariadb*    << |   <<Removes the wrong new version yum remove MariaDB-*  << /scripts/check_cpanel_rpms –fix  <<Installs the older version Then go into WHM, and “”upgrade”” to XX … Read More

Continue Reading

Check Disk Use for Each Email Box for All cPanel Accounts

Run the below script as root, and after waiting you will be presented with the disk usage for each email account CP_ACCOUNTS=`ls -1A /var/cpanel/users/` for user in `echo -n $CP_ACCOUNTS` do domain=`grep -i ^dns /var/cpanel/users/$user |cut -d= -f2` for dom in `echo -n “$domain”` do PASSWD_FILE=”/home/$user/etc/$dom/passwd” if [ -f $PASSWD_FILE ] && [ -s $PASSWD_FILE ] then for mail in `cat $PASSWD_FILE| cut -d”:” -f1` do du -h –max=0 /home/$user/mail/$dom/$mail done fi done done

Continue Reading

DNS Records

The main point of DNS records is to translate your domain name, to a server IP. DNS records can also provide verification for your domain. This includes your site and your e-mail. There are multiple types of records that you may need to operate your domain. A Record – The A Record is one of the most important records. This points any of your domains or sub-domains to an IP Address. You will need to have at least 1 A record in order for other records like CNAME records to work properly. domain.com IN A 10.10.10.10. CNAME Record – The CNAME allows you to point a subdomain to another domain. If you… Read More

Continue Reading

Creating a Database in cPanel

Creating a Database in cPanel has a couple of steps to it. After creating the database, you will also need to create a user and then add that user to the database. The last 2 steps are commonly missed. Remember if you want cPanel to recognize the database, you will need to create it from cPanel. If you create the database from the command line, it will still work, however, cPanel will know nothing about it. First, you will need to: Login to the sites cPanel Go to MYSQL databases. Now that you are here you can do all three steps on 1 page. Create the database Create the User… Read More

Continue Reading