“Sorry, subdomains of the hostname cannot be parked” Error in cPanel/WHM

If you’re reading this post, most likely you encounter the following error while adding domain in your cPanel.

"Sorry, subdomains of the hostname cannot be parked"

This error causes the domain you going to be added failed. The problem is due to server hostname is similar to the domain that you’re going to add.

The solution is very simple. Login to WHM & do the following

Server Configuration → Tweak Setting → Domains → Allow users to park subdomains of the server’s hostname main domain  → Select On  → Click Save Button

After you did this try to add the domain again. You should be able to add it successfully.

Fix “#2006 – MySQL server has gone away” Error in phpMyAdmin

I’m importing 3.5MB csv file into the database. After file uploading completed, the following error came out.

#2006 - MySQL server has gone away

It is because MySQL server drop if there is too large packet. To fix the error follow the steps below.

1. SSH to your VPS / Server

2. Edit my MySQL file. Remember to backup your /etc/my.cnf prior to that.

vi /etc/my.cnf

3. Add or edit max_allowed_packet in the MySQL configuration file


4. Save MySQL configuration file

5. Restart mySQL

service mysql restart

If the error still persist you may try to increase the value & try again.