General cPanel FAQ (72 Articles)

How to disable SuperCacher for wildcard subdomains

When you have a wildcard subdomain setup and you need to disable SuperCacher for a specific subdomain, follow these steps: 1. Add the subdomain in cPanel -> Subdomains and set public_html as the DocumentRoot . 2. In cPanel -> SuperCacher disable the Static Cache for your newly-added…

How to Import Existing SSH Key in WHM

In this article we will show you how to add an existing key to WHm in order to access your account via SSH with root privileges. First, login to WHM and navigate to Home -> Security Center -> Manage root's SSH Keys. Then, follow these steps: Click on the Import Key button Enter a name for this key in the first field Paste the public key in the corresponding field Click the Import button *There are fields for Password and Private Key which are not required Now, you need to authorize this key for the root user. To do this, go back to  Manage root's SSH Keys  and click on the  Manage Authorization button next to the key you've just added. Finally, click on the  Authorize  button. You can now login to your server as root using this…

How to access WHM on a Cloud VPS?

All customers on a Cloud VPS hosting package can access their WHM (Web Host Manager) interface by opening: http://yourdomain.com/whm where yourdomain.com is your actual domain name. If your domain is not yet pointed to your VPS, you will be able to access the VPS via its server name (e.g. if you are hosted on vm7777.sgvps.net , you will be able to access your WHM via http://vm7777.sgvps.net/whm ). When you access WHM, you will receive a warning about the SSL certificate used. The reason for the warning is that by default cPanel uses a shared self-signed SSL certificate. You can safely accept the certificate - the connection will still be secure. Next you will be asked for your WHM login credentials. The WHM username is your cPanel username and the WHM password is your cPanel password. Once the correct login details are provided, you will log in to your WHM and will be able to manage your Cloud VPS. For more information on how to access, manage and use WHM you can check our Cloud VPS WHM tutorial .…

How to restore files/folders using the Files Backup Restore tool in cPanel?

Clients with the Daily Backup upgrade can restore files and folders from their daily backups via cPanel > Files Backup Restore tool. To restore a backup, access the tool and once the next page loads, you will be able to see the backup dates available for your hosting account. You can select your date and press at the "Browse" button on the right side next to the respective date. After that you can browse through the backup and select which files/folders you would like to be restored (double-click will open the folders). Once the respective files/folders are selected, you have 3 options at the top bar: Restore Selected - This option will restore the selected files/folders to your hosting account at SiteGround. The process will take a while and once it is finished the files/folders will be restored from the respective backup date. Please have in mind that the old files will be overwritten. Download Selected - This option will allow you to download the selected files/folders to your local computer. Send Selected to Agent - This option will allow you to restore the selected files/folders to your hosting account's home folder. They will be restored in compressed format for your future usage. In future you can restore the website from these files or download them for local use. …

Using international (non-Latin) domain names in cPanel

If the domain name that you are trying to use in cPanel as a parked or an addon contains non-Latin characters (Chinese, Arabic, Cyrillic, etc.) in its name, it needs to be first encoded by using this or similar tool. You should then use the converted form of the domain when adding it in cPanel. Example: If you owned the domain bücher.com its converted alternative would look like this: xn--bcher-kva.com In cPanel you need to use xn--bcher-kva.com when adding the domain. When your site visitors type bücher.com , their browsers will automatically convert the name to xn--bcher-kva.com and will then establish a connection to your site.…

How to enable SSH/Shell Access icon in cPanel on VPS?

In order to turn on the SSH/Shell Access icon in the users' cPanel you should log in to the VPS WHM. Navigate to Packages-> F eature Manager . Create a new list or edit an existing one and make sure you enable the SSH Connection Window option. Click on the Save button to keep the changes. You need to assign this feature list to all accounts which you want to have the SSH/Shell Access icon visible in cPanel. More information on how to enable SSH access for your users can be found in our article here: How to enable SSH on VPS through WHM? …

How to enable SSH on VPS through WHM?

If you want to allow SSH access for an ordinary account created by you on your VPS follow the steps listed in this article: 1. Open WHM on your VPS and navigate to Account Functions > Modify an Account . 2. Activate the SSH access for the account through the Shell Access check box. 3. Then log in the account's cPanel, navigate to SSH/Shell Access and click on the Manage SSH Keys. If the SSH/Shell Access icon is not present in the Security section you can insert it by following the instructions posted in our knowledge base article How to Enable SSH Access in cPanel on a VPS . 4. Either generate a new key pair or import a key which has been generated on the local computer of the user: How to generate an SSH key in Windows How to generate an SSH key in Linux How to generate an SSH key in MacOS 5. Authorize the public key using the Manage Authorization link. 6. Download the public and the private keys and provide them to the account's user. 7. The user can establish an SSH connection by following the detailed instructions provided in the following knowledge base articles: How to connect via SSH in Windows using PuTTY How to connect via SSH in Linux How to connect via SSH in MacOS …

Comparison of cPanel vs. Plesk

The most popular web hosting control panels are cPanel and Plesk. In this article we will review both of them so that you can find the best one for you. This review is rather for the end user and it will not compare them on server level. First, both cPanel and Plesk support different server platforms (Linux, Windows, FreeBSD). Even though there is almost no different, for Windows cPanel is branded under the name Enkompass. Second, both have fast, easy and intuitive interfaces. Though cPanel's interface is more simple and all features are accessible directly from the front page. Thus you don't have to learn new routines for common web hosting tasks when using cPanel. On the other hand, Plesk is organized in different sections. Thus it requires some time to get used to how things are done with it. Though sometimes this allows you to work faster with it. In regards to functionality, both cPanel and Plesk are very similar. In most cases you will miss nothing if you just switch from one to another. Speaking of switching, we should mention that the two control panels are not compatible with each other, unfortunately. This means that if you create an account backup on one of them you will not be able to restore it on the other. Finally, you should check cPanel demo and Plesk demo to get a real impression of both. After all, it is hard to say which is better between cPanel and Plesk. It is mostly a matter of personal choice but for us cPanel has proven better in the last 10 years. That's why all SiteGround servers run cPanel. We have also our own cPanel theme for improved user experience. Along with that we have implemented features not found in other hosting providers such as Security Center and installer for Magento, CreLoaded, MediaWiki, Joomla, Wordpress and many other popular web applications. If you are interested in learning more about cPanel please check our cPanel tutorial. and last but not least our cPanel hosting .…

Can I use phpMyAdmin outside cPanel?

The phpMyAdmin tool available in cPanel is bundled with it and can be used only if you are already logged into cPanel. In order to use phpMyAdmin without logging into cPanel, you will need a separate phpMyAdmin installation. You can download the installation package from the phpMyAdmin official website . If you need help with the installation, you can request it to be performed by the SiteGround support team. To do so, log in to your Customer area -> Help Desk - Request Script Installation and post a ticket with your request.…

How to add a new mime type in cPanel

In order to define a new Mime Type there are few simple steps you need to accomplish. 1. Log in to cPanel for your hosting account. 2. Under the Advanced category click MIME Types . 3. In the "Create a MIME Type" section add the desired MIME Type and file Extension(s). Then click the Add button.…

My 403 custom error page is not working

If you have set a 403 custom error page and you have "deny from all" rules in your .htaccess file, access to the 403 custom error page will also be denied. The easiest way to resolve this issue is to allow access only to the 403 custom error page. So, if you have the following rule defining your 403 error page: ErrorDocument 403 /~cpanel_username/ 403.html you should add the following rule to your .htaccess file: <Files 403.html > allow from all </Files> in order to allow access to the 403 error…

How to switch my primary domain name with my addon domain?

Let's say that you have one hosting account and two domain names used for two different websites - yourdomain1.com and yourdomain2.com . The domain yourdomain1.com is the primary domain for your account and yourdomain2.com is hosted as an addon domain, Here are the steps you should take in order to switch the two domains, i.e. make yourdomain2.com primary for your account and host yourdomain1.com as an addon domain: Remove yourdomain2.com from the addon slot from your cPanel > Addon domains. Change the primary domain name for your account from yourdomain1.com to yourdomain2.com. This can be done via your User Area > My Accounts > Manage Account > Information and Settings > Change Primary Domain. More information on how to do this change can be found in this article . Back up the website files for yourdomain1.com located in the public_html folder and then remove them or place them in another folder. Move the files from the addon domain's folder to your public_html directory. Add yourdomain1.com to your addon slot from your cPanel > Addon domains. Copy/restore the website files for yourdomain1.com to the newly created addon folder . Please note that depending on the applications you are using, additional modifications to the applications' configurations may be needed in order for them to work correctly from the new…

‘The database is not working properly…’ error message when upgrading an application through Fantastico

If you attempt to upgrade an application through Fantastico and you get the following error message: The database user_db is not working properly and the creation of a database backup file has failed. Please contact the sysadmin for further assistance. Include this message for reference. where user_db is the database of the application you are trying to upgrade, you should make sure the permissions of the folder where your application resides are correct. The easiest way to fix the issue is to change the permissions of the application's folder to 755 .…

What is an “inode”?

An inode is a record in a disk table, which contains information about a file or folder such as its size, owner, device node, socket, pipe, etc., except data content and file name. The number of inodes on your account equals the number of files and folders you have on it. SiteGround customers may see the number of inodes they are using from their account’s cPanel -> Stats -> Inodes Usage (situated on the left side on the cPanel home page). You may need to click on the Expand Stats link in order for the Inode usage graph to be displayed. Every time a file is opened, the file’s inode is read by the kernel of the server. The more files/folders you have, the more inodes you use. And the more inodes you use, the more system resources your account consumes. That is why it is a common and necessary practice among hosts to limit the number of inodes on a shared server, where it is not suitable for one account to use system resources and leave no power for the other accounts. In case your account reaches the maximum number of inodes, it may be excluded from the backup system, or you may experience problems with file uploading, receiving emails, and see errors when accessing your website. Information on how to reduce the number of inodes your account uses can be found in this article: How to reduce the number of inodes my account uses?…

How to enable wildcard subdomains?

Wildcard subdomains are useful when you wish to redirect all visitors to your main website regardless of what subdomain they access your website through. This is also useful when someone mistypes www for example and writes ww.yourdomain.com . In other words, with wildcard subdomains it won't matter whether someone accesses your site through ww.yourdomain.com or wwwwww.yourdomain.com . Here are three ways to enable wildcard subdomains for your website: 1) The easiest way to enable wildcard subdomains is to create a subdomain *.yourdomain.com . SiteGround customers can do this from their cPanel > Subdomains. You should make sure that the subdomain's Document Root is public_html . 2) If you are using cPanel and you have access to WHM, you can log in to WHM and go to Edit DNS Zone . Select the domain you wish to modify from the list of available websites. Under Add New Entries Below this Line you should fill in the fields so that they look like: *                       14400            IN                     A               1.2.3.4 where 1.2.3.4 is the IP of the account 3) Another way to enable wildcard subdomains is to directly edit the httpd.conf file. (For this you will need root access to the server hosting the account.) Log in as root and open the httpd.conf file (usually this file is located in /etc/httpd/conf ) with a text editor such as vim or nano . Then find the VirtualHost entry for the website. It should look like: <VirtualHost 67.15.245.5> ServerAlias www.yourdomain.com ServerAdmin webmaster@yourdomain.com DocumentRoot /home/yourdoma/public_html/joe ServerName yourdomain.com User yourdoma Group yourdoma BytesLog /usr/local/apache/domlogs/yourdomain.com-bytes_log CustomLog /usr/local/apache/domlogs/yourdomain.com combined ScriptAlias /cgi-bin/ /home/yourdoma/public_html/joe/cgi-bin/ </VirtualHost> The only modification you need to make is change: ServerAlias www.yourdomain.com to ServerAlias *.yourdomain.com …

CPU resource usage graph explained

If you are a SiteGround customer and you have been contacted regarding your account's CPU resource usage, you would have received a graph showing how much CPU resources your account consumes. In this article we will explain how to read the stats shown in the graph. The CPU statistics for each account's server resource usage are generated on a quite complex principle.  The graph is split into two smaller graphs - the upper one shows the CPU time for your user. This is the average time a script started by your account takes to execute on the server. The time is in CPU ticks / cycles . The numbers on the left side of the graph show the number of CPU ticks and the digits at the bottom show the time on the server (the timezone on our servers is CST). The lower graph shows the number of executions per hour your account makes. The numbers on the left side of the graph show the number of executions and the digits at the bottom show the time on the server (the timezone on our servers is CST). A simple example of an execution is when a visitor opens your website and your index file is loaded. This counts as one execution. The more visitors your website has, the more executions it will generate. You will also see two lines - a yellow and a red one. The yellow line shows the CPU usage and executions of a regular account on the shared server. The red one shows the CPU time and executions for your account. The higher the red line is, the more resources your account consumes.…

cPanel is slow! How to make cPanel faster?

Some users experience slowness with the new cPanel x3 (sg) theme. This is because it has many advanced features for enhanced user experience. While there can't be done much on the server's side to speed up cPanel, there is an easy workaround: Simply change your cPanel's style to Blue Lagoon. This can be done by logging in cPanel, going to Preferences, Change style. This style is very fast and optimized for best performance.…

Warning – Cannot modify header information error in phpMyAdmin

Sometimes, when you try to modify a database in phpMyAdmin, you may get this error message when you try to execute the SQL query: Warning: Invalid argument supplied for foreach() in /usr/local/cpanel/base/3rdparty/phpMyAdmin/tbl_replace.php on line XX Warning: Invalid argument supplied for foreach() in /usr/local/cpanel/base/3rdparty/phpMyAdmin/tbl_replace.php on line XXX Warning: Cannot modify header information - headers already sent by (output started at /usr/local/cpanel/base/3rdparty/phpMyAdmin/tbl_replace.php:52) in /usr/local/cpanel/base/3rdparty/phpMyAdmin/libraries/common.lib.php on line 1154 This is a known issue in cPanel which occurs when you access your cPanel via the Access cPanel Normally button in your Customer Area. In other words, this issue appears when you access your cPanel using the cPanel proxy, i.e: http://cpanel.sitegroundXXX.com In order to avoid it, please access your cPanel via: http://yourdomain.com/cpanel or using the Access cPanel Securely button in your Customer…

How to change the language for cPanel

By default all Siteground accounts come with the English language pack. If you would like to change the language for your cPanel, navigate to the "Change Language" section under the "Advanced". There you will be able to chose from all languages supported by cPanel. Note only that some of the SiteGround specific tools are not yet translated in all available languages. If this is the case, the tool itself will still be shown in English. In order to revert the changes and have English as the default language, you can again navigate to the same section and choose English from the drop-down…