02 Mar 2021

What Is Shared Hosting?

One of the most popular ways to host your website is shared web hosting. As the overall costs of server maintenance are shared by many clients, it is the most economical choice. Before you determine which company you want to host, first think about what package suits you best. Shared web hosting is by far the most economical way to host a website and most popular hosting options for those who are building out their first websites.

Since most hosting companies offer the same amount of space and storage. Actually shared hosting usually comes equipped with a built-in cPanel, which makes it easy to manage your site. Shared hosting is easily the cheapest and most affordable option for your needs.

Advantages:

  • The cost effectiveness and simplicity is the biggest profit of shared hosting.
  • Shared hosting plans come much cheaper compared to dedicated hosting and VPS.
  • Most shared hosting plans provide round maintenance and technical support that gives you uptime reliability almost comparable to dedicated plans.
  • Its loading time is much slower than dedicated servers.
  • A single server is used to host hundreds and even thousands of websites. This means that the server resources, such as bandwidth, RAM and CPU, are shared by the users.

Disadvantage:

  • One of the biggest disadvantages of shared hosting because of which you should just stay away from it. If any website on a server gets hacked, then other websites also come under potential threat.
  • Your hosting plan may have lesser features compared to dedicated hosting plans. Because of security policy, some available ports and connections may be limited.
  • lack of resources that are available on shared hosting that stop your website from performing to its full potential.
  • As you need to share the resources of a single server, your website my often experience sluggishness brought about by the request for resources by other sites.
  • Any malicious activity that the server suffers affects the whole network of websites using the server.

                                                     In general shared hosting will be inappropriate for users who require extensive software development outside what the hosting provider supports. Almost all applications intended to be on a standard web server work fine with a shared web hosting service. The main strength here is that this is a cost-effective solution, and because you’re prepared to share hardware with other folks, you’ll naturally be paying less than the outlay for dedicated hosting.

24 Feb 2021

What Is Web Hosting? What Does It Mean?

Web Hosting Explained for Beginners

Web hosting is a service that allows organizations and individuals to post a website or web page into the Internet. A web host, or web hosting service provider, is a business that provides the technologies and services needed for the website or webpage to be viewed in the Internet. Websites are hosted, or stored, on special computers called servers.

You can buy a dedicated server to host your website contents, but it’s very expensive compared to others. There are a lot of free web hosting methods are available here. This discussion will enrich your knowledge about different types of hosting techniques and also different web-hosting parameters which are commonly using and so.

What are the different types of Web-Hosting platforms?

This is very necessary to know the type of web hosting platform for your web page. The main web hosting platforms are listed below:

Linux Hosting Servers: If you are a Linux lover there are a lot flavors are waiting for you. Linux web hosting is comparatively cheap and the availability is also high. Linux web hosting supports the following platforms;
PHP, PERL, CGI-BIN, phpbb, CGI.pm, WordPress, Joomla, Drupal etc.

 Looking for affordable Linux hosting?

Windows Hosting Servers: By comparing to Linux, Windows hosting is much expensive due to the licensing cost for different applications. Linux applications are almost open-source. Windows web-hosting supports the following platforms;
Support NET framework, .ASP, ASP.NET, Jrun, php, dot nuke etc.

You can select the web hosting platform as your wish. That means, if you really have knowledge in Asp.net and not much familiar with Linux, you can simply select a Windows web hosting space for your website. If you have much knowledge in Linux, you can select a Linux space for your website.

Different web hosting environments available are;

                                                              Different types of hosting methods are available now-a-days. Here I am explaining the basics of different types of hosting techniques.

  1. Shared web hosting
  2. VPS hosting
  3. Dedicated server

1. Shared Hosting

In this web hosting method, the website is hosted under a high power high speed server along with other websites. Every website owner has their own user name and password to login to their account to manage the website hosted there. In this method the resource usages are shared for all accounts hosted on that server.

Every users can access only their permitted area and their files. Even the users wouldn’t know the total accounts in that server. This type of web hosting is a cost effective one for small/medium websites which needs high performance.

The main disadvantage is, traffic in one website on that server will effect all other website due to the sharing concept of resources.

2. VPS (Virtual Private Servers)

The speed is less for websites compared with the websites which are hosted in shared server. In this method you will get a whole server with root access. You can install/uninstall any application as your wish. You will get a dedicated resources like RAM, HDD, BW etc. This method is much expensive compared to shared but it is suitable for medium website hosting.

Here the main host node with higher resources is divided into small units with limited resources.

3. Dedicated Hosting.

In a dedicated hosting you will get more compared with the virtual hosting. In this technique the complete machine is allocated for your web hosting purpose. You will get a dedicated RAM, HDD, BW, Port speed etc. The cost is very high compared with the others. This web-hosting is suitable for large scale web-hosting, that means for hosting websites with higher connections.

In a dedicated setup the whole area will be assigned for a singe user like only one house in a compound.

That’s it. 🙂

22 Feb 2021

How To Install ClamAV On A CPanel Server

Steps To Install ClamAV On A CPanel Server

Here I’m explaining the steps to install ClamAV on a cPanel server. Before proceeding with this, first you need to make sure WHM plugin clamavconnector is not installed. Check WHM >> Manage plugins

1: If you would like to verify ClamAV’s digital signatures on the virus definition files as they are updated through freshclam, you need to install GMP first.

# /scripts/ensurerpm gmp gmp-devel bzip2-devel

2: Adding user and group for clamav

# useradd clamav
# groupadd clamav

Note: Don’t worry if the user and/or group already exists.

3: Create and chown clamav directory

# mkdir /usr/local/share/clamav
# chown clamav. /usr/local/share/clamav

4: Download the latest ClamAV from http://www.clamav.net/

# wget http://www.clamav.net/downloads/production/clamav-0.99.tar.gz
# tar -xvzf clamav-0.99.tar.gz
# cd clamav-0.99
# ./configure --disable-zlib-vcheck
# make
# make install

#mv -fv /usr/local/etc/freshclam.conf.sample /usr/local/etc/freshclam.conf

5: Comment out “Example” line in /usr/local/etc/freshclam.conf

[email protected] [/]# cat /usr/local/etc/freshclam.conf | grep -i example
## Example config file for freshclam
#Example


#mv -fv /usr/local/etc/clamd.conf.sample /usr/local/etc/clamd.conf

6: Comment out “Example” line in /usr/local/etc/clamd.conf

[email protected] [/]# cat /usr/local/etc/clamd.conf | grep -i example
## Example config file for the Clam AV daemon
#Example

7: Change the “LocalSocket” to /tmp/clamd in /usr/local/etc/clamd.conf

[email protected] [/]# grep LocalSocket /usr/local/etc/clamd.conf
LocalSocket /tmp/clamd.socket

8: Run ldconfig to create the necessary links and cache to the most recent shared libraries

# ldconfig

9: Run freshclam to download the latest definitions

# freshclam

10: Init script for CentOS/CloudLinux upto/including version 6.x

# curl https://download.configserver.com/clamd -o /etc/init.d/clamd
# chown root:root /etc/init.d/clamd
# chmod +x /etc/init.d/clamd
# chkconfig clamd on
# service clamd restart

11: Init script for CentOS/CloudLinux version 7.x

# rm -fv /etc/init.d/clamd
# curl https://download.configserver.com/clamd.service -o /usr/lib/systemd/system/clamd.service
# systemctl daemon-reload
# systemctl enable clamd.service
# systemctl restart clamd.service

12: Add service to /etc/chkserv.d/clamav

[email protected] [/]# cat  /etc/chkserv.d/clamav
service[clamav]=x,x,x,service clamd restart,clamd,root

13: Creating log files for ClamAV updates

# touch /var/log/clam-update.log
# chown clamav:clamav /var/log/clam-update.log

14: Add ClamAV to chkservd

[email protected] [/]# cat  /etc/chkserv.d/chkservd.conf | grep clamav
clamav:1
05 Feb 2021

Config Server Firewall Commands For Unix and Linux Server

Config Server Firewall(CSF)commands. 

CSF is the firewall framework that is most widely used to protect Linux servers.

CSF has a wide variety of options for controlling the Linux firewall from the control panel and from the command line. The CSF installation includes cPanel, DirectAdmin and Webmin preconfigured settings and control panel UIs.

Usage and installation of CSF is quite simple.

Working principle of CSF

As with most iptables firewall setups, the concept with CSF is to block all and then let only those connections you want through. This is achieved by DROPPING all ties on all protocols in and out of the server in iptables. Then allow traffic from existing links in and out. Then open the ports separately for both TCP and UDP in and out.

The installation steps for CSF on the Linux server have already been addressed. Click here to install CSF on CentOS and customize it.

After you have successfully enabled CSF, you need to disable TESTING mode to function properly with CSF on your server.

[[email protected] #] vim /etc/csf/csf.conf
Then change the value of 'TESTING' from 1 to 0

CSF commands for managing server firewall.

STEP 1. Enable CSF and LFD if formerly disabled
csf -e 
Or 
csf --enable

STEP 2. Disable CSF and LDF Effectively

csf -x
Or
csf --disable

START 3. Restart firewall rules

csf -r 
Or 
csf --restart

STEP 4. Start the firewall rules

csf -s 
Or 
csf --start

STEP 5. Flush/Stop firewall rules (Note: lfd may restart csf)

csf -f 
Or 
csf --stop

STEP 6. List/Show the IPv4 iptables configuration

csf -l 
Or 
csf --status

STEP 7. List/Show the IPv6 ip6tables configuration

csf -l6 
Or 
csf --status6

You must have some ideas about the following configuration files for using some other csf commands.

csf.conf : Configuration file for controlling CSF.
csf.allow : Allowed IP’s and CIDR addresses list on the firewall.
csf.deny : Denied IP’s and CIDR addresses list on the firewall.
csf.ignore : Ignored IP’s and CIDR addresses list on the firewall.
csf.*ignore : The list of various ignore files of users, IP’s.

STEP 8. Allow an IP and add to /etc/csf/csf.allow

csf -a ip [comment] 
Or 
csf --add ip [comment]

You can add your comments in the square bracket. See the example below:

[[email protected] ~]# csf -a 6x.8xx.1x2.8x [My server]
Adding 6x.8xx.1x2.8x to csf.allow and iptables ACCEPT...
ACCEPT  all opt -- in !lo out *  6x.8xx.1x2.8x  -> 0.0.0.0/0
ACCEPT  all opt -- in * out !lo  0.0.0.0/0  -> 6x.8xx.1x2.8x
 

6x.8xx.1×2.8x – is the IP address and ‘My server’ inside the square bracket is the comment. You can check the /etc/csf/csf.allow file for more details:

[[email protected] ~]# grep 6x.8xx.1x2.8x /etc/csf/csf.allow
------
6x.8xx.1x2.8x # [My server] - Thu Dec 19 23:16:27 2013
------

STEP 9. Remove an IP from /etc/csf/csf.allow and delete rule

csf -ar 
Or 
csf --addrm ip

STEP 10. Deny an IP and add to /etc/csf/csf.deny

csf -d 
Or 
csf --deny ip [comment]

STEP 11. Unblock an IP and remove from /etc/csf/csf.deny

csf -dr 
Or 
csf --denyrm ip

STEP 12. Remove and unblock all entries in /etc/csf/csf.deny

csf -df 
Or 
csf --denyf

STEP 13. Search the iptables and ip6tables rules for a match (e.g. IP, CIDR, Port Number)

csf -g 
Or 
csf --grep ip

Example:

[[email protected] ~]# csf -g 6x.8xx.1x2.8x
Chain            num   pkts bytes target     prot opt in     out     source               destination
ALLOWIN          1        0     0 ACCEPT     all  --  !lo    *       6x.8xx.1x2.8x        0.0.0.0/0
ALLOWOUT         1        0     0 ACCEPT     all  --  *      !lo     0.0.0.0/0            6x.8xx.1x2.8x
Temporary allow or deny of IP:
The following csf commands are using to allow or deny an IP address temporary from our server.

STEP 14. Displays the current list of temporary allow and deny IP entries with their TTL and comment

csf -t 
Or 
csf --temp

STEP 15. Add an IP to the temp IP allow list (default:inout)

csf -ta ip ttl [-p port] [-d direction] [comment]
Or
csf --tempallow ip ttl [-p port] [-d direction] [comment]

Where ttl is the time to live in seconds(Default value: 3600)

Example:

[[email protected] ~]# csf -ta 66.8x.1xx.xx
ACCEPT  all opt -- in !lo out *  66.8x.1xx.xx  -> 0.0.0.0/0
ACCEPT  all opt -- in * out !lo  0.0.0.0/0  -> 66.8x.1xx.xx
csf: 66.8x.1xx.xx allowed on port * for 3600 seconds in and outbound

STEP 16. Add an IP to the temp IP ban list.

csf -td ip ttl [-p port] [-d direction] [comment]
Or
csf --tempdeny ip ttl [-p port] [-d direction] [comment]

Example:

[[email protected] ~]# csf -td 66.8x.1xx.xx
DROP  all opt -- in !lo out *  66.8x.1xx.xx  -> 0.0.0.0/0
csf: 66.8x.1xx.xx blocked on port * for 3600 seconds inbound

STEP 17. Remove an IP from the temporary IP ban or allow list

csf -tr 
Or 
csf --temprm ip

STEP 18. Flush all IPs from the temporary IP entries

csf -tf 
Or 
csf --tempf

STEP 19. General commands:

csf -v Or csf --version : Show csf version
csf -c Or csf --check : Check for updates to csf but do not upgrade
csf -u Or csf --update : Check for updates to csf and upgrade if available
csf -h Or csf --help : For help
  

links for further Knowledge:: #install nslookup#Migrating CPanel To DirectAdmin

03 Feb 2021

How To Decrease Bounce Rate On Your WordPress Site

Before we begin the bounce rate reduction process, you need to find out the intricate details of each individual blog page that you possess. You need to find out what kind of visitors get attracted by your blog, the various keywords that you need to target, the status of your landing pages, and more. Once you’re acquainted with the fallacies, you can come up with your own set of remedies.

2. Top Notch Content

This is perhaps the most crucial factor which proves detrimental to the success of every blog. Make your content informative, concise, simple and articulate at the same time. Even more than what’s being written, the presentation matters. Avoid long, poorly spaced paragraphs and employ lists whilst highlighting the significant headings. Treat your blog visitors like kings, and you’ll never go wrong!

  • How to write High-Quality Content?
  • How to Write SEO Friendly Blog Posts?
  • What Type of Content Should You Publish To Increase Your Blog Traffic?

3. Optimize Page Loading Times

Why would a visitor stick to your blog if it takes more than half a minute to load? It would be safe to say that a slow paced blog is a recipe for disaster. Follow the underlying steps:

  • Use compressed images
  • Install a caching plug-in
  • Choose a lightweight theme with non-complex graphics. (like Genesis, MyThemeShop etc.)
  • Compress your code
  • If the problems still persist, pick another web hosting provider. I recommend serversupportz.

4. Avoid Flashy Pop-Ups

Possessing splash pages, irrelevant pop-ups, and multiple advertisements will only push your visitors away, as they don’t add value to your blog. You need to polish your blog in a seamless manner without these distractions.

5. Display Excerpts on the Blog Pages

Avoid full post displays on your blog, as that will put off your readers. Give them a choice to click on the article they want to read. Improve your visitor experience by opting for excerpts, which will simultaneously optimize your page loading times and increase your page views.

6. Segregate Longer Posts

Well, the more the merrier doesn’t always work! No one will have the time to read an immensely huge blog post on a single page. Use the <!–nextpage–> tag to split your post into multiple pages. This will improve the reading experience by a significant margin.

7. Give Credible Headlines

Writing the most attractive piece of blog article in the world will still pay no dividends, if you can’t cap it off with an eye-catching headline. The main heading tag is the deal maker-breaker. It needs to be spot on, descriptive, and insanely attractive to say the least.

8. Invoke Seamless Navigation

Make sure that the path to your blog is easy and reachable; otherwise your visitors won’t stick for long. Moreover, to solidify your navigation quotient, you can install plug-ins like YARPP [this is one of the most frequently used plug-ins as it directly affects the bounce rate, by leading your visitors to other blogs that they would probably be interested in].

9. Random Browsing is Healthy

This is your chance to attract the visitors by being creative and articulate. You can employ a button named ‘Feeling Curious?’ which will redirect your visitors to a random blog post. This helps in keeping the spice alive!

10. Treat External Links with Caution

If you’ve included external links in your blog, make sure that all these links get opened in a new window or tab. Otherwise, your visitors will exit your website every time they click!

11. Boast a Healthy Blog Comment Ratio

Indulge yourselves in a healthy blog commenting regime by replying to every credible blog comment that comes your way. This will not only engage the readers, it will also improve the bounce rate whilst attracting more visitors. Avoid faulty plug-ins and spam comments which will lead to Google penalization.

12. Build Concrete Internal Links

You’re reading an interesting blog, and you find an internal link which oozes relevancy, what do you do? You will obviously click on it! The same pattern will be followed by your readers and visitors. This will increase your page views and optimize your SEO value.

13. Tackle 404 Errors by Redirection

A 404 error informs the readers that, even though your blog is working, but the page that they’re looking for doesn’t exist. This is mostly caused due to inappropriate links, deleted posts, and fluctuating permalinks. Now, new visitors won’t strive this hard just so they can reach your blog. Hence, help them reach the right page with the help of the ‘Redirection Plug-in’.

14. Optimize your SEO Prowess

Use the right meta keywords, meta descriptions, and other SEO based techniquesin order to bolster your bounce rate. If someone searching for their favorite team’s football score reaches your cricket blog, he won’t stick around for long, will he? Hence, bring in the right kind of visitors by targeting the appropriate keywords in your blog posts, titles, and file names.

Here is a quick guide on How to select the right keywords. Make sure to read it.

15. Consolidated Blog Search Option

If you’re using a search widget, make sure it’s working properly, or your readers will never come back. And if you’re not, start using one right away as it helps with the page views and visitor reach. If you’re a WordPress blog owner, you’ll know that the search option doesn’t work well. Hence, find a relevant plug-in for assistance.

16. Dynamic Themes

Free themes are ‘free’ for a reason. They’re not meant to attract visitors on a consistent basis. If you’re suffering at the hands of a lower blog bounce rate, consider altering your theme. We’re not expecting you to pick a Picasso-esque design, but still choose a template wisely.

Again, I would recommend you to use Genesis themes on your blog. You can also check this post where you’ll learn why you should use Genesis themes.

17. Interactive Sidebar

A dynamically interactive sidebar not only optimizes the visual aspect, but it also effectively improves navigation, and increases your page views. You can have a section display of most recent or most popular posts, buzzwords, various categories, and so on. Improve the readability and visibility quotient by employing buttons for your RSS feed, subscription, and e-mail updates.

18. Blog Testing on Mobile Phones and Other Devices

Prior to publically releasing your blog, you should always test its appearance and credibility on a smartphone or a tablet. Being mobile friendly is the need of the hour, as over 60% of the Internet users access the web via mobile devices. Hence, you need to indulge in device testing long before you start losing visitors.

19. Accurate Genre Classification

Although this is common sense, but still it is worth mentioning that you need to segregate your blog posts according to their genres and domains, for a seamless reading experience. This way you can open the readers’ eyes to new trending topics they might’ve otherwise overlooked.

27 Jan 2021

How To Create Email Account In Webmin


Webmin is a free control panel for webservers. Here I am explaining the way to create a new email account for a domain under your server via webmin control panel.

 

STEP 1: Login to Webmin control panel

http://YourIP:10000

STEP 2: From the left-side Menu, click “System” and then click on “Users and Groups”
STEP 3: Click on “Create a new user” link
STEP 4: Fill in the form with appropriate information,

- Username (if you want to have an email address [email protected] , set the username’s value to demo)
- User ID: leave it automatic
- Real Name: required only for you to identify each account from the list
- Home Directory: Click “Directory” and set it to: /home/ where  is what you set in the Username field
- Shell: Leave it as it is
- Password: click the “Normal password” and type your desired password (it will be encrypted on save/exit)

You will see few more settings/fields on the same form. You may fill them in if you like. However, the above mentioned fields are those required to have a valid e-mail account created. 

FINAL STEP 4: Now click the “Create” button to complete.

You can access the webmail from web browser by using the port 20000

http://YourIP:20000

Thank you for your time. 🙂

 

06 Jan 2021

Blocking Accounts From Sending Emails – CPanel/WHM

Is it possible to block certain domains/accounts on my server for sending emails?

It’s possible to block certain domains from sending emails from server. There is an option in Exim configuration on your cPanel server to block domains from sending emails. This can be done by adding those domains into “/etc/blockeddomains” this configuration file.

Here I’m going to explain the steps to block accounts from sending emails. You must have a server with root access to do so.

The steps are explained below:

1. SSH to server as root.
2. Check the file “/etc/blockeddomains” is existing on the server. If it’s not there create one.
3. Add domains in “/etc/blockeddomains” to cut the email sending privilege.

You can use the following commands:

# echo "thedomain.com" > /etc/blockeddomains

Or, open “/etc/blockeddomains” with your favorite text editor and add/append the domain into it.

# vi /etc/blockeddomains
thedomain.com

4. Set correct ownership to “/etc/blockeddomains.”

# chown root.mail /etc/blockeddomains

5. Set correct permission.

# chmod 640 /etc/blockeddomains

6. Then log into the WHM panel and go to “EXIM Configuration Manager.”

WHM –> Service Configuration –> EXIM Configuration Manager –> Advanced Editor
Search for “Add additional configuration setting.” This can be located one by forth of the way of scroll down

Add the following entry:

domainlist blocked_domains = lsearch;/etc/blockeddomains

 

7. Search for “ROUTERSTART” and add the following entry:

reject_domains:

driver = redirect
domains = +blocked_domains
allow_fail
data = :fail: Connection rejected: SPAM source $domain is manually blacklisted.

This should be look like:

Yeah, that’s it!! Next time if you want to block another domain from sending emails, just add that domain into “/etc/blockeddomains” this file,

That’s it!!

04 Mar 2020

Guide For Migrating CPanel To DirectAdmin

Due to the recent new pricing scheme for cPanel, customers’ businesses have been impacted destructively. Therefore, customers have to go through a wide range of choices and some of them decided to migrate into DirectAdmin.

The DirectAdmin is the web hosting control panel software, which lets you administer your website as well as hosting options with the help of the graphical and web-based interface. With this, you can manage an unlimited number of websites as well as email accounts using a DirectAdmin control panel. It automates the task so that the web servers can be shared easily and provide a way to the website owners to set up as well as manage their websites in a fast way. 

In general, DirectAdmin allows you to:

  1. Create and manage email addresses, FTP user accounts
  2. Managing DNS
  3. Observing statistics
  4. Managing the FrontPage extensions
  5. Creating and managing subdomains
  6. Uploading and managing the file with the help of File Manager
  7. Managing MySQL Databases
  8. Backing up and restoring the site files and the account data
  9. Setting up error pages
  10. Setting up directory password protection
  11. Installing SSL certificates, setting up cron jobs as well as advanced tools.

You can easily establish and manage hundreds of websites. Also, DirectAdmin costs very low and has been considered as one of the most popular web hosting control panels. It consists of every feature which you will need to set up your website on the hosting platform.

Now, the question arises.

How do we migrate data from cPanel to DirectAdmin?

Migration is generally a bit risky as it involves live websites. Even a single mistake can cause so many website errors as well as data loss. We always take care of every step along with the proper planning.  So, in total, there are two ways to carry out cPanel migration. 

Following is a step-to-step guide for migrating cPanel to DirectAdmin

First Case: This case is applicable when we have root(WHM) access to SSH shell and we can migrate cPanel via the command line.

Let us have a checklist for this:

  1. Being sure that the hardware on the destination server is greater if not equals to the source server hardware specifications. You are also free to select different configurations from either Dedicated servers or Cloud VPS.
  2. Being sure to include the DirectAdmin license in the order.
  3. Being sure that you have the same amount of IPV4 addresses on your destination server as the source server.

Now, follow the steps below:

First Case: This case is applicable when we have root(WHM) access to SSH shell and we can migrate cPanel via the command line.

Let us have a checklist for this:

  1. Being sure that the hardware on the destination server is greater if not equals to the source server hardware specifications. You are also free to select different configurations from either Dedicated servers or Cloud VPS.
  2. Being sure to include the DirectAdmin license in the order.
  3. Being sure that you have the same amount of IPV4 addresses on your destination server as the source server.

Now, follow the steps below:

Step 1: Downloading the conversion tool

Initially, you need to download cPanel to DirectAdmin conversion tool.

Run the command line:

wget https://www.pusathosting.com/file/da.cpanel.import.9.4.tar.gz

Step 2: Creating paths

This tool will require a path (import and export one) which it will use for the conversion. What we will do is create the import and export directories.

mkdir import export

Step 3: Copying the files to “import directory”

What we will do is copy the user backups from cPanel to the import directory.

You can easily create the backups within the cPanel GUI or with the help of the following command:

/scripts/pkgacct USERNAME

This tool will convert the backups created by the following:

  • the ‘/scripts/pkgacct’ script
  • cPanel’s ‘Full Backup’ GUI tool

You need to run the following command on the source server with cPanel where you would be replacing [email protected] with the user as well as the IP address of the new DirectAdmin server.

rsync -av /home/cpmove-USER.tar.gz [email protected]:/import/

You know the name of the backup file is cpmove-USER.tar.gz and this is different for every account.

Step 4: Matching configuration

Now, you need to edit the defaults.conf so to match the DirectAdmin destination server. Here, you must only need to change the IP as well as the nameserver fields.

Step 5: Executing module

Now, you need to proceed to execute the module with the help of the command below and follow the on-screen instructions.

perl da.cpanel.import.pl

Step 6: Moving converted backups

After the completion of converting backups, you need to move the new files from the “export” directory to any DA/home/RESELLER/user_backups directory.

So, we will be using user “admin” as an example.

mv ./export/admin.tar.gz /home/admin/user_backups/

Step 7: Restoring the backups

So, we will now be restoring the backups in the DirectAdmin GUI.

With the help of the “Manage User Backups” tool within the reseller level.

a.) Choose the directory

b.) Choose the option “Stored in the backup”

c.) Select the backup files

So, this is one way to complete the migration from cPanel to DirectAdmin.

Second Case: So, the next case is when we do not have any access to SSH shell and have to migrate the cPanel manually i.e. without any tool.

Step 1: Packaging your account

If you do have root access to the server via SSH (like if you have any VPS), you can do this simply by following the command.

/scripts/pkgacct username

This command will place the cpmove-username.tar.gz file into the /home directory where it can be downloaded via FTP/SCP.

For those who only have user-level cPanel access, you need to login to your cPanel account. You will see a Wizard icon named Backup under the file section.

So, when you click on it, you will be prompted to

1. Backup

2. Full Backup

3. Provide email

When you have completed backup packaging, you will receive an email notification. The generated file will be placed in your home directory. So, you have to download this .tar.gz file onto your desktop.

Step 2: Preparing to upload

For those of you who are windows users, you have to download such as 7-Zip to unpack the tar.gz file. Now, you need to create a folder to place the file in and unpack it. The resulting files will be the entire data from your cPanel account (which also includes your mail in MailDir format). Now, you will find the homedir.tar and pull it out of the folder and then extract it.

Once extracted, you will see several folders that were in your home directory. In the tmp folder, you may find the statistics such as webalizer that can be opened right from your desktop. Moreover, the files you want to concentrate on, are present in /public_html.

If you use any add-on domains, then you need to move them from the public_html folder. Once you have done all this, you can then compress the public_html folder content as a .zip file. You need to do the same for each one of the add-on domains. But, remember to not delete the uncompressed copies.

Step 3: Moving files to DirectAdmin:

Next, you will login into your DirectAdmin account.

In case if you have any add-on domains or subdomains, click on the Domain setup.

After adding the domains as well as subdomains you do have, you can then click on the Files in the top menu bar. Now, you need to click on the ‘domains’ folder. You will see a list of each of your primary domain. For every domain, you would have to click into them until you reach public_html.

Now, you can select the entire files in the folder and delete them. Once you have removed it, you can click on the ‘Upload files into the current directory’ button near the bottom. Therefore, on the same page, you can select the zip file you created for the domain and upload it.

Once you upload it, you can click on the ‘extract’ link in the following row. By doing this, you will get a preview of the compressed archive’s contents. Now, as you can see my test zip, with being an OSX, there is a couple of extra files like _MACOSX and .dstore which can be deleted after the extraction. You can also see that when it is extracted, it will create a public_html folder. So, go for extracting the file.

Once it is extracted, and if the home files directories unpacked in the accurate location then you should not worry about moving anything. If your compressed file extracted into the new folder like another public_html folder, you will click on that folder. Moreover, on the top right, you have to select all the files and click on “Add to Clipboard”.

Now, go one folder back upside and click on the ‘MoveClipboard Files here’ after which you have to click on “Empty Clipboard”. So, here, you will be able to delete the extra public_html folder and the .zip file which was originally uploaded. Now, you need to repeat this step for every domain you have. You will see subdomains as a folder under the original’s domain’s name.  Therefore, if you have sub.testsite.com, it will appear as a folder named as /sub under /domains/testsite.com/public_html.

If you run a WordPress blog, you will have a good chance that your new DirectAdmin account won’t share the same username as your cPanel account. For the same reason, you would like to edit your wp-config.php file to change prefixed username_database/usr to a new username before _. You must also note the password in wp-config.php.

Step 4: Preparing your database:

Go to your extracted cPanel backup folder, you will see a MySQL folder. You will find SQL dumps of each of your database that includes horde or roundcube webmail databases.

Now, you need to login back to the DirectAdmin and click on the domain to find “MySQL Management” and click on the specific link. From here, you will click on ‘Create new database’.

You will see that the DA username is different from the cPanel username. For the password field, you need to make sure that you use the same password which your script was already using for the database. Now, you need to repeat this step for every database you have.

Note for the shell users:

If you are able to login to your account via SSH, then you can simply upload the .sql files via FTP/SCP to your home folder and from there, you can enter the following command to import your database.

mysql -utestuser_dbuser -p testuser_databasename < sql_file.sql

For your every SQL file, you can compress them as SQL files. Now, you can return to the MySQL setup screen and click on phpMyAdmin in the top left corner.

Here, you need to enter the username and password for the database which you are trying to upload. Once it is inside, click on the database you want to upload on the left. Now, you can click on the import tab and select your compressed sql file and click on the go. If everything goes well, you will see a success message on the screen which is followed by the database, showing a table count next to it.

To upload another database for a different database, user needs to click on the exit icon near the logo to be convinced for another username and repeat the process.

So, this is another way to migrate cPanel to DirectAdmin and that is, manually.

Conclusion:

In short, DirectAdmin is the cheapest control panel and is very simple and user-friendly. So, migrate your cPanel to DirectAdmin today with WGS and without experiencing any website downtime. 

If You need any assiatnace in migration contact us.

 

 

17 Jan 2020

Installing VestaCP on centOS 7 Server

Web hosting control panel are web-based interface that provide web hosting service that help users to manage their host services and servers.
Control panel with a GUI(graphical user interface) helps systems admins easily manage and monitor all hosted services client use.
Mainly used web hosting control panels are: vestaCP,cPanel,DirectAdmin,hpanel,ISPManager,ISPConfig,Plesk,Webmin.

VestaCP

Vesta control panel (VestaCP) is an open source hosting control panel,
which can be used to manage multiple websites, creat and manage email accounts, FTP accounts, and MySQL databases, manage DNS records and more

INSTALL INSTRUCTIONS

 

# Connect to your server as root via SSH
ssh [email protected]

# Download installation script
curl -O http://vestacp.com/pub/vst-install.sh

# Run it
bash vst-install.sh

 

11 Apr 2018

Installing CloudFlare plugin on cPanel server

This is a free Content Delivery Network (CDN) for your domain. CloudFlare provides a better Internet security services and distributed domain name server services, sitting between the visitor and the Cloudflare user’s hosting provider, acting as a reverse proxy for websites. CloudFlare’s cPanel plugin is also available to manage the CloudFlare account simply through the cPanel itself.

The CloudFlare cPanel plugin installation is very simple and it can be achieved within 5 minutes. This plugin integrates CloudFlare with your cPanel server. Try this and enjoy!!!

Installation Steps

Step 1. SSH to the server in which you need to install CloudFlare plugin.

Step 2. Enter the cPanel basic directory:

cd /usr/local/cpanel

Step 3. Download the tar file to your server.

curl -k -L https://github.com/cloudflare/CloudFlare-CPanel/tarball/master > cloudflare.tar.gz

Step 4. Untar the file

tar -zxvf cloudflare.tar.gz

Step 5. This will extracts a directory which includes a UNIQUE_ID. The sample format of this will be as follows:

cloudflare-CloudFlare-CPanel-w40bbb3

Here w40bbb3 is the UNIQUE_ID.

cd cloudflare-CloudFlare-CPanel-UNIQUE_ID/cloudflare

Step 6. Execute the install script in the following format:

./install_cf API_HOST_KEY mod_cf "Your Company Name"

API_HOST_KEY – You will get this from your CloudFlare panel.
Your Company name – You can give your hostname here.

How to find the API_HOST_KEY?

You can copy the API_HOST_KEY from your CloudFlare account. Please do the following steps to find out the API_HOST_KEY.

Step 1. Log into your CloudFlare account.

Step 2. Go to “My Settings”.

Step 3. Scroll down to “Global API Key”.

Step 4. Click on the “View API Key” button to see your API identifier.

mod_cf is optional. If set, the installer will also try to install mod_cloudflare

That’s it!!! Now, you will be able to see an icon for “CloudFlare” in all your cPanel accounts.

Sample Output for a successful installation:

info [verify_api_spec_files] LoadFile
Done
Register Complete

==> mod_cloudflare: Installed successfully.
==> You may need to customize your EasyApache profile to include Mod CloudFlare

CloudFlare module installed successfully.

In some cases, if you see the output as :

Your HOST_KEY (d892a17e61de5caa062302d54714eb39e4d42) is invalid.

If you see this error, please contact CloudFlare support and ask for valid Host key.

That’s it 🙂

©2021 Tranzmedia Netvision Limited. All Rights Reserved.
Top