Twitter Facebook Google+ LinkedIn

Reseller account migration on different server by using script

server-migrationA reseller account can have number of shared server accounts and sometime it becomes hard to manage and migrate all account from one server to another. The below script is an easy way for migrating Reseller and/or Bulk accounts between cPanel servers:

On source server :

cd /home

mkdir /home/Migration

cat /etc/trueuserowners |grep reseller_username | awk ‘{print $1}’ | cut -d: -f 1 > Migration.txt

for i in `cat Migration.txt`;do /scripts/pkgacct $i; mv /home/cpmove-$i.tar.gz /home/Migration/;done

On Destination server

vi Migration.txt ( add all username which you want to restore)

cd /home/

rsync -va -e “ssh -p 22″ root@SOURCESERVERIP:/home/Migration/* /home/

for i in `cat Migration.txt`;do /scripts/restorepkg $i;done

Done 

How to scan FTP uploaded files on cPanel Servers

This How to will help you to scan virus uploaded via FTP to make sure all files are virus free:

clamav-logoFirst lets install clamAV , it has been now been included in Cpanel/WHM. Clam AntiVirus (ClamAV) is a free and open-source, cross-platform antivirus software tool-kit able to detect many types of malicious software, including viruses. One of its main uses is on mail servers as a server-side email virus scanner.

You can also install it from your WHM interface as root by clicking on:

cPanel —> Manage Plugins —> on clamavconnector

Check the “Install and Keep Updated” and then click at the bottom of the page to save.

After the successful installation edit the file /etc/pure-ftpd.conf and change this line to this :

CallUploadScript yes

Next create file /etc/pure-ftpd/clamav_check.sh with this content:

#!/bin/bash

#Maximum file size to scan in bytes that’s set to 10MB

MAXSIZE=10485760

if [ "$UPLOAD_SIZE" -le "$MAXSIZE" ]; then

/usr/bin/clamdscan –remove –quiet –no-summary “$1″

fi

Change its permissions and make it executable:

chmod 755 /etc/pure-ftpd/clamav_check.sh

Now we should start the pure-uploadscript daemon every time to call our script when a file is uploaded

/usr/sbin/pure-uploadscript -B -r /etc/pure-ftpd/clamav_check.sh

And to let it start with your server/vps reboots just run this :

echo “/usr/sbin/pure-uploadscript -B -r /etc/pure-ftpd/clamav_check.sh” >> /etc/rc.d/rc.local

Now restart pure-ftpd :

service pure-ftpd restart

Now all your uploaded files which are less than 10MB in size will be scanned, adjust this size limit per your needs. 

Configure Background Process Killer in WHM.

On my occasions you might have noticed that users are running unwanted or malicious application on servers which they should not run at all.

To prevent users from running such applications which are against your service policy you can configure WHM to kill background processes which are initiated by users on the dedicated servers.

If any of the users is running such a process then WHM will automatically detect it and kill the process even if the process is renamed and send you an email about the same.

Follow the given steps to configure WHM:

1. Login to WHM as root user.

2. Go the System Health option (See  below)

Configure Process Killer in WHM

3. Select the Background process Killer option

Here, you can check all the listed programs. WHM suggest that it is better to select all of these since many of them are related IRC (Internet Relay Chat) which often leads to DDoS attacks.

4. If you want to add exceptions then you can add those in the box one per line. By default WHM ignores root, mysql, named, cpanel, and users with UIDs below 99 and need not be added to the exceptions again.

5. When you are done adding you can click on SAVE to configure the task in WHM. Here you’ll get a notification of the process.

The process is now setup. You have configured WHM to kill unwanted background processes.

Ease the login process by adding Social Logins to WordPress.

Many websites require users to create an account in order to get access to the website or use its services. Although this is a necessity for ensuring that only legitimate users access the website and it is free of spam but it also irks some users and leads to reduced sign ups.

Getting users to sign-up is essential; however, many people do not like the idea of creating a new account and going through the cumbersome process again and again for different websites they use. Due to this they often choose to move away to other websites which does not do any good to either of the parties.

According to a research, many people go away from a website simply because they had to create a new account. An average user has to remember five passwords and adding any more creates trouble for them. Simultaneously making it easier for users to sign up using social logins or their already existing accounts increases the sign up rate and also makes it easier for the user to manage their accounts.

If you also wish to add social logins to your websites or blogs then you can also do so. Simply follow these steps and use the mentioned plugin on your WordPress website to add social logins.

Google Social Login for WordPress

WordPress makes lot of things possible with the help of plugins and for this purpose you can use the Nextend Google Connect Plugin which is free and allows your users to login using their Google account or other social accounts.

Simply install the plugin and configure to allows users to login using any of their social media accounts like Facebook, Twitter or Google +. The existing users can also link their accounts to their Google profile so that next time they can easily login from their Google account.

For website owners who want to encourage users to register on their website but don’t know how to get them to do it can surely try this feature and get better sign up rates compared to the whole account creating process.

If you are unable to implement this on your website or need help with WordPress then you can post in our Web Hosting Forum and we’ll try to answer your queries and for other web hosting service related issues you can contact us via Live Chat or Phone.

Let us know how this works for you in the comments.

How to Export Traffic Statistics from WordPress?

Getting a detailed traffic report of your website is necessary for analyzing your visitors and getting the information required for talking decisions.

WordPress by itself does not provide any website traffic stats and if you are using cPanel then you might rely on AWStats for getting the required data but it is limited to posts with certain amount of traffic and does not provide a complete picture of your website traffic. You can also use Google Analytics but it also has certain restrictions. For instance, if you have a blog with huge amount of posts and you need an individual post statistic then it is not easily available. This is where the trouble begins!

WordPress Statistics Export

If you are familiar with WordPress then you can always use a plugin which does this for you but all the plugins usually provide the statistics from the period you start using them. If you are using a plugin since the inception of your website then all you need to worry about it getting the data out of the plugin.

I have experimented with different plugins to find out what works best for getting the detailed stats on visitors and there some pros and cons to each. The Wassup plugin does with current visitors and gives a fair bit of information. There are various other plugins like WP Slimstat and Statpress which record all the data in a SQL database. However, you cannot export this data from the plugin itself and if you do not clear it then after your database may become huge and unmanageable only Statpress allows you to export before clearing the data.

However, if you wanted to use some other plugin then you would have to delete your data. Or would you? Well, you can work your way into getting your data from the SQL database in the desired format and not lose it. Here’s how:

  1. The Adminer plugin allows you to manage your SQL DB from WordPress itself.
  2. Install Adminer Plugin
  3. Run it from ‘Tools’ menu.
  4. Choose your WP database and click Dump on the top left.

(Note: Only choose the database you want to export which would be xx_wassup for the Wassup plugin)

5. Choose the CSV format and click Export.

There you go. All the stats you needed in the workable format.

What if I do not have a plugin installed?

If you want to export old traffic statistics where the plugin would do no good as it can only gather data since the time you installed it. In that case you can only rely on the data which is already present on the server of your web host and you see it in AWStats.

Exporting Data out of AWStats

In MS-Excel you can use the option to import data:

  1. Open a New Excel Book and Save it.
  2. Go to Data Tab
  3. Click on From Web
  4. Enter the URL of the page (AWStats-From where we want to import the data)
  5. Select (Check) the table
  6. Hit Import

Now all the data from the respective AWStats page should be imported into the Excel Book. Go ahead and do the desired analysis. If you are not familiar with managing plugins on your WordPress website then you can contact the support department and get the desired plugins installed and start using them.

How to Post on WordPress Directly from MS-Word.

We are all aware of the various tricks which one can use to utilize MS-Office for doing unusual tasks. Today I’m going to share a similar trick which you can use for posting on your WordPress blog right from Microsoft Word itself.

Yes, this is possible! You can create your post and publish it on your blog from the MS-Word interface without opening the browser or going to your blog. It only needs you to be connected to the internet.

Step 1.

Open MS-Word and click on the office button and click on NEW. Here select the ‘New Blog Post’ option and click on create as shown in the picture below.

Ms-Word to WordPress

Step 2.

Once you create the new blog post you would asked to ‘Register’ your blog and select the blogging platform which you use on your blog.

Ms-Word to WordPress1

Here you need to fill in the details of your blog and populate the fields with the logins details of your blog. Once you do this your blog would be registered and you would be able to post.

Ms-Word to WordPress3

Note: While registering you can also choose the ‘Picture Options’ which specify where you want the pictures in your post to be stored. You can store them on your own server or on your blog as well.

Step 3.

Creating your post in MS-Word

After the blog is registered you would see a MS-Word like interface as you can see in the picture below. Here you can enter the headline and create your post just as you would in WordPress.

Ms-Word to WordPress4

Step 4.

Publishing your post

In the top left corner you will see the Publish button. There are two options ‘Publish as Draft’ or Publish as a Post’. If you want to store the post as a draft on your blog then you can choose the first option i.e. Draft or if your post in final and you wish to publish it on the blog then you can choose the other option i.e. Publish as Post.

Now you can publish your blog post right from MS-Word without any hassles.

If you are not comfortable doing this it is better that you use the WordPress dashboard only and if you have any issues with your WordPress installation then contact the web hosting service provider to assist you with your website.

 

How to Create a Custom 404 Page in Joomla?

The page not found error is downright irritating and it could bug away visitors and they may never come back to your website. To reduce the trouble cause by a 404 error you could use a custom 404 error page instead of the boring and useless one. The page could provide the necessary details to guide the lost visitor and make sure they return to your site.

Custom Joomla 404 error page

Before you create your own custom 404 page check the following things which you should have on a 404 page.

Search Box- If there is search option on your website then you should add it to the 404 page as well so the visitor can search what they are looking for on your site.

Sitemap link- It is essential that you have link to your sitemap and your homepage so the visitors can find a way to go back to the site and find what they want.

Follow these simple steps for designing you custom 404 error page in Joomla! 2.5.

Step 1. You need to create a file and name it error.php and place the file in the main directory of your template which is (/templates/your_template/error.php). You need to add the following code to the file:

<?php

// no direct access

defined( ‘_JEXEC’ ) or die( ‘Restricted access’ );if ($this->error->getCode()==404) {

echo file_get_contents(‘http://www.example.com/error’);

exit();

}

?>

Make sure that you replace the URL with your website.

Step 2. Now create a message for the page with the title error or 404 or anything that you feel would work. You should place in a category which is not directly visible on your site.

You might have seen error or 404 messages on sites like Reddit or Twitter which are quite creative and you could also create something along those lines to redirect your visitor to a relevant page on your site.

Step 3. Now make a menu hidden menu, one which is not published and  create an item with the name ‘error’ with an alias of error. If you want to use another alias then you need to change the above URL to reflect the same.

Now give the type ‘Single Article’ to it and point it to your ‘Error’ article.

It’s all done now. Now whenever you have a broken link or there is a wrong link used by a visitor then they would see your custom error page with a catchy message that would redirect them to a proper page instead of the crappy server error which usually bugs visitors off.

If you have any other issues when you build a website or related to website hosting then you can refer our Web Hosting Blog or post your query in our Web hosting Forum and we would do our best to help you get your website fixed.

How to Manage Backups in cPanel 11?

In the information era, data is considered to be an asset for any business or individual. If you have a website then everything that is on the website is very important to you and to protect it you need to take regular backups of your data.

Although, your web hosting provider might take backups of your data on a periodical basis it is a good practice to have your own set of backups just in case anything goes wrong. This can also be useful when you are looking to switch from one provider to another.

In this tutorial you will learn about managing your backups using cPanel 11.

  1. Assuming you are logged into your cPanel account, go to the Files section and select Backups. cPanel 11 backups
  2. Now click on the Download or Generate Full Backup button to create a complete backup of your site.
  3. Next up you need to choose a Backup Destination for storing the backup. You can either choose to store the backup in the home directory or select a remote location.

Note: If you wish to store the backup at a remote location then you need to fill the location, username and password details of the particular location.

In order to be notified when the backup task is complete you need to enter your email address.

  1. After you have filled all the details click on the Generate Backup button at the bottom.
  2. You will see the notification of the backup process, now you can Go Back to the backup menu.
  3. When the backup is complete you can download the complete backup by clicking on the Home Directory button and below that you can download the MySQL database backup.

Restoring the backups

You can restore these backups when you wish by using the Restore Backup option and browsing the file on your system and select upload.

Restore cPanel backups

From the same page you can also create backups of your email forwarders and filters and restore them as well.

Most of the web hosting providers offer support with backup and restoring your data and if you are not comfortable doing this yourself then it is better you get in touch with the support department to help you with it and you may also consider a backup solution for regular backups for better protection.

 

How to register a domain using the Plesk Control Panel?

Plesk is widely used Control Panel by webmasters after cPanel. It is usually paired up with Windows web hosting.

In this tutorial you will learn about how to register a new domain through your Plesk Control Panel.

Step 1.

Once you Login to your Plesk Control Panel account, Go to the Domain Section and open the ‘Register’ icon. (See picture below)

register domain using plesk panel

Step 2.

Now enter the domain name you wish to register in the look up field and choose the TLD. (Make sure the domain is available)

Step 3.

You will see the domain you chose can be registered, simply choose the billing term for which you want to register the domain and Click Register Now.

Step 4.

After the domain is registered you would see the nameservers where the domain is temporarily parked. After the registration is complete you can update the nameservers to your desired one’s using the Manage Function from MyPlesk.com

Step 5.

If you do not already have a MyPlesk.com login then you would need to create a separate login for this. After creating the login for MyPlesk.com you can login to your account.

Step 6.

After logging in you need to confirm your purchase of the new domain name and populate all the necessary personal billing and administrative details as required. (These will be seen in the Whois look up of the domain)

Step 7.

After making the payment and completing registration you would be redirected to manage your domain where you can update the nameservers to the one you want.

Now you can easily register a domain name using your Plesk panel. If you still have any issues registering a domain then it is better to ask your web hosting provider to do so for you. This would allow you to register the domain correctly and avoid any issue later on.

FAQ’s about the eUKhost Affiliate Program.

The eUKhost Affiliate Program is a great way of earning money online simply by leveraging your existing resources to provide leads to us. If we make a sale through you then you can earn as much as £350 per sale.

Here are certain FAQ’s that might be of help to you:

1. Do I have to be your customer?

No, you need not be our customer for becoming our Affiliate. You can directly sign up for the Affiliate Program by following the simple procedure.

2. What kinds of websites are allowed?

You can have any kind of website as long as it does not contain, promotes or links to discriminatory, sexually explicit or violent material or any unlawful material or illegal website or a site which is deemed unsuitable by us. You can read more here: http://www.eukhost.com/affiliates-tos.htm

3. What about promotional material?

We will help you with all the Links, and any related banners, graphics, or text ads necessary to promote and offer the eUKhost.com Services to Your Site’s visitors and/or its members. Alternatively, you can also check out the Affiliate banners that you can use on your website here: http://www.eukhost.com/affiliate-banners.php

4. Who will process the orders?

We will process all the orders that are generated as result of you placing the link on your website. We would also track each order and the eventual sale that is generated by you and process your commission based on it.

5. What is the criteria for earning the commission?

You can earn the commission from the Affiliate sale when there is a sale made using the link form your website to parties that are not already our customers.

Also when the customer makes full payment to us and remains our customer beyond out standard 30 day money back guarantee period.

And, of course you cannot use the link to purchase the service yourself and ask for the commission as that does not serve the purpose of getting a new customer.

6. How do you make the payment?

We can make the payment either via PayPal or by mailing a check to your registered with us.

7. Do you support third party affiliate network?

If you wish to work through third party affiliate network just join us with CJ or Affili.net and apply for eUKhost.com program. CJ and Affilinet are the largest affiliate marketing networks in Europe.

For more information about our Affiliate Program Click Here.

 

 

« Previous entries Next Page » Next Page »