How to Transfer from cPanel to cPanel in WHM
- Written by Arnel Custodio
cPanel provides a tool that you can use to transfer from cPanel to cPanel, from one server to another. This is a very powerful tool in that it makes moving from one cPanel server to another into a very simple process. Keep in mind that any configuration files that are affected by the change will still need to be changed. This tutorial walks you through the steps for the transfer process.
How to Transfer from cPanel to cPanel using the Transfer Tool
- Login to the WHM.
In the menu at left, search for and then click on Transfer Tool. You will see several options that you will need to select or fill in. They include:
Remote Server address You will need to provide the URL of the account you are transferring from Remote SSH port By default this is set to 22. Change it only if necessary. Select the user type for Login This can be either the root user or an account user. You will need the root user if you're moving multiple accounts, of course.
Root Password - Add the root password so that the root user can be used for authentication. If you're using the root user, then make sure to leave Restricted Restore unchecked.
- Once all of the information has been selected and added for the Remote Server Information and Authentication, click on Fetch Account List.
The Transfer Tool will compare the versions of cPanel and display it for you. You will not need to select anything for the versions.
You will also see a screen listing the available Packages. You do not need to select anything on this screen either.
You will then get the ability to search for the account you want to transfer. You simply need to leave all of the options checked except Express Transfer.
After you have finished selecting the accounts you want to transfer, click on the blue button labeled Copy.
At this point the Transfer Tool will begin the transfer for you. The initial transfer process should be relatively quick, but the processing period may last a while based on the size of your account.
When the processing is complete, you will see Additional Options. The Keep DNS Zone would need to be unchecked UNLESS your servers are in the same DNS cluster. If you have any doubts, then please consult with our live technical support team or the Managed Hosting team.
After the Transfer is Completed
At this point, the accounts should all be transferred over to you. You may still need to re-configure configuration files, clear cache, reset permalinks, set DNS settings, re-point name servers, etc. but the selected accounts should have transferred. Once you have completed your re-configuration and your testing of the moved accounts, then you can begin to close down your old server accounts.
Installing Zend OpCache
- Written by TJ Edens
Note that you will require root access, and the PHP version to be 5.5, or newer in order to use these directions.
This tutorial will quickly explain how to install Zend OpCache on your dedicated server. This guide requires you to be logged into your server with the root user, and the PHP version to be 5.5 or newer.
- Log into your server as the root user.
- Run the EasyApache script./scripts/easyapache
- If you are not installing Mod RUID2 or changing Apache versions select Customize Profile.
- Select Next Step on the Apache section.
- Select Next Step on the PHP section.
- Select Exhaustive Options List when you get to the modules section.
- Scroll down below PHP 5.x continued to find Opcache. Hit your spacebar to select the module and you should see and X in the brackets. After you do this choose Next Step.
- Select Save and Build.
- You will need to confirm what you are doing by selecting Yes to rebuild apache.
- Another prompt will show up asking you to acknowledge you understand the changes being made to the server, you will need to select I Understand before the program will continue.
- Run the following red command to confirm Opcache has been installed.
root@dedicated [~]# php -m|grep cache
- Edit your php.ini file to add the following line at the bottom.
Now your PHP scripts will get cached so they can be provided to visitors during the intial page loading. This caching engine can increase your page load speed to to 75% faster.
Installing and Configuring Varnish 3
- Written by TJ Edens
Note that you will need root access in order to use these directions.
In this tutorial:
This guide will briefly go over how to install and configure Varnish Caching. Varnish Cache is a web application accelerator also known as a caching HTTP reverse proxy. You install it in front of any server that speaks HTTP and configure it to cache the contents. It typically speeds up delivery with a factor of 300 - 1000x, depending on your architecture. Please keep in mind that this is a fairly advanced section and does require you to use root access to perform any actions described. Also know that unless you pay for a plugin to do so you can not control varnish from the WHM interface.
This will get Apache ready which should be done prior to the installation to avoid port conflicts.
- Log into your servers command line interface as the root user.
- Edit the following file. vim /var/cpanel/cpanel.config
- Look for the line "apache_port" and change it to the following then save the file. apache_port=0.0.0.0:8081
- Run this command to update the settings. /usr/local/cpanel/whostmgr/bin/whostmgr2 --updatetweaksettings
This section will show you how to install Varnish 3 onto your dedicated server.
- Check what version of CentOS you are running by entering the following command.cat /etc/centos-release
CentOS release 6.7 (Final)
- Run the following commands to add the Varnish repositories to your server (Please use the correct command for the current version you are running.).
CentOS 6 - rpm --nosignature -i http://repo.varnish-cache.org/redhat/varnish-3.0/el6/noarch/varnish-release/varnish-release-3.0-1.el6.noarch.rpm
CentOS 5 - rpm --nosignature -i http://repo.varnish-cache.org/redhat/varnish-3.0/el5/noarch/varnish-release/varnish-release-3.0-1.el5.centos.noarch.rpm
- Install Varnish via yum. yum install varnish
- Edit the following file. vim /etc/sysconfig/varnish
- Add the following lines to the bottom of the file (After the # DAEMON_OPTS="" line). DAEMON_OPTS="-a :80 \
-T localhost:6082 \
-b localhost:8081 \
-u varnish -g varnish \
- Save the file.
- Restart the following services for the changes to take affect.
service varnish restart
service httpd restart
This configuration does the following:
- Listen on all IP addresses on port 80
- Set the administrative interface on port 6082 (the default)
- Forward requests to localhost on port 8081 (Apache server we changed earlier)
- Set the user/group for child processes to varnish:varnish
- Use the file storage mechanism at /var/lib/varnish/varnish_storage.bin and use only 2GB for the file.
How to Connect to your Dedicated Server via SSH
- Written by John-Paul Briones
In this tutorial:
In this tutorial, we will show you how to connect to your server via SSH. This will allow you to interface with your server via Command Line Interface (CLI). First, we will show you how to add your IP address to the firewall to allow you to access your dedicated server. Then we will show you how to connect with both PuTTY, and Terminal.
1. Add your IP to the firewall
- Look up your IP address. Write it down so you have it for later use.
- Login to WHM.
- Type firewall in the search box, then click the Add IP to Firewall link in the navigation menu.
- In the Allow Rule field, enter your IP address.
- Click the Add Rule / Restart button.
You are finished when you see a message stating "Your IP(s) have been added, and APF is being restarted."
2. Connect using PuTTY or Terminal
After adding your IP address to the firewall, you can connect to the server using a client (such as PuTTY), or directly in terminal (if you are a Linux, or Mac user). This section includes guides for both PuTTY and Terminal.
Connecting to your Dedicated Server via PuTTY
- Download and Install PuTTY.
- In the Host Name (or IP address) field, enter your domain name, or the <>IP address of our Dedicated server.
- Click the Open button.
- You will see a PuTTY Security Alert, click the Accept button.
- When the login as message comes up, enter your username (cPanel username, or root), then click the Enter key.
- Enter your cpanel password (or root password if you are conecting as the root user), then click the Enter key. The password will not show when you type it.
Connecting to your Dedicated Server via Terminal
- Open the terminal on your computer.
- Type ssh, followed by a space. Then your username, followed by the '@' symbol, and your domain (or IP address) for the hostname and hit the Enter key. For example:
- If you see a message stating "Are you sure you want to continue connecting" type yes, then click the Enter key.
- You will then be prompted to enter your password. Type your password, then click the Enter key to connect. The password will not show when you type it.
Congratulations, now you know how to connect to your server via SSH!