Archive for Reseller Hosting

PHP Mail Function Disabled on Shared Web Hosting

PHP Programming Language Logo
CodeIgniter, SwiftMailer and PEAR LogosWe had previously decided to disable the mail function because the mail() function was often used by malicious users on our network to send spam and other unsolicited e-mails. We recommend our customers to use an e-mail library in order to send e-mails, and there are many in which to choose from.

CodeIgniter Framework.

If you make use of the CodeIgniter framework, you can use the built-in Email class in order to send e-mails. Here is sample code using the CodeIgniter’s Email class:

$this->load->library(‘email’);
$this->email->from(‘noreply@eukhost.com’, ‘eUKhost Limited (No Reply)’);
$this->email->to($email); // $email = “email_id”
$this->email->subject(‘Welcome to eUKhost Limited.’);
$this->email->message(‘<html>
<head>
</head>
<body>
<p><b>Message here</b></p>
</body>
</html>’);
$this->email->send();

You can also autoload the Email class within the config/autoload.php file which means you do not need to use the first line of code to instantiate the Email class before making use of it.
For more information on the Email class in CodeIgniter, see the documentation.

PEAR Library.

The PEAR library also has a built-in Mail class for sending e-mails, including e-mails over SMTP authentication with an already-existing e-mail account. Here’s an example:

include(‘Mail.php’); // includes the PEAR Mail class
$headers = array (‘From’ => $from, ‘To’ => $to, ‘Subject’ => $subject); // the email headers
$smtp = Mail::factory(‘smtp’, array (‘host’ => “localhost”, ‘auth’ => true, ‘username’ => $username, ‘password’ => $password, ‘port’ => ’587′)); // SMTP protocol with the username and password of an existing email account in your hosting account
$mail = $smtp->send($to, $headers, $body); // sending the email

For more information, see the page on the Mail class on the PEAR website.
Note: The code above does not catch any errors so we’d recommend you check the documentation for more elaborative examples.

To find the SMTP port, go to “Configure Email Client” under the “More” menu within “Email Accounts” of cPanel. It may be port 587, but check to be sure.

SwiftMailer Library.

The SwiftMailer library is another popular choice for sending e-mails. Here’s an example:
$transport = Swift_SmtpTransport::newInstance(‘mail.example.com’, 587); // your mail server address and port. If you don’t know what yours is, go to cPanel -> E-mail Settings and for the specific e-mail account, More -> Configure E-mail Client – it will be displayed there.

$mailer = Swift_Mailer::newInstance($transport); // creates new instance of an SMTP transport specifically

$transport->setUsername(‘email@example.com’);
$transport->setPassword(‘your_password_here’);

$message = Swift_Message::newInstance();

$message->setSubject(‘Set the subject of the e-mail’);
$message->setFrom(array(‘email@example.com’ => ‘Your Name/Company Name’));
$message->setTo(array($email));

$message->addPart(‘<p>If you want <b>HTML in your e-mail use addPart()</b></p>’, ‘text/html’);

$result = $mailer->send($message); // returns FALSE boolean on failure

if(!$result)
{
echo ‘failure’;
}
else
{
echo ‘success’;
}

Some of our staff members are experienced with PHP so if you require any assistance with your PHP code to send e-mail using any one of these libraries or a different library you may want to use, you are most welcome to post your query on our Web Hosting Forum where a staff member or customer on the forum will be happy to assist you.

Does your Reseller Hosting packages permit overselling?

To ensure all of our Reseller Hosting customers have a fast and reliable hosting service, we do not allow overselling on our Reseller Hosting packages. If you require overselling or if your requirements are outstretching what a shared hosting environment can offer, please consider our eUK VPS Hosting or eUK Cloud Hosting services. Our VPS Hosting and Cloud Hosting services come with full root access with no allocation restrictions on the amount of accounts you may host. However, we recommend you do not excessively oversell hosting services because it can affect the reliability and performance of your virtual or dedicated server.

eUK reseller hosting with billing software for Account Management

Hosting multiple domains is one feature that many web developers seek in a shared hosting plan, but the feature is often very limited, as all the domains have to be hosted under a single account. Reseller hosting takes this concept further by allowing you to provision an individual hosting account for each domain that you wish to host; these web hosting accounts can be based around your own web hosting plans so that you can maintain a level of consistency across the board. A reseller account is a good point to start from if you wish to develop your own web hosting business because you will have a platform on which you can create hosting accounts instantly and manage resources so that you can turn over a profit each month.

 

Reseller web hosting from eUKhost provides generous resource assignments that will allow for the hosting of several websites under a single reseller hosting account; a web-based control panel is provided with all of our reseller services so that you can manage your own reseller account whilst providing an interface through which your own clients can manage their own shared hosting accounts. As a Windows reseller you will have the choice of either DotNetPanel or Plesk; both accounts provide the same feature set at heart, with an emphasis being put on how the applications can be used to manage Windows-specific features such as ASP.NET configurations and MSSQL databases. Linux reseller users can manage their accounts using the WHM (Web Host Manager) control panel, an interface that has been designed specifically for server administrators and resellers; your own hosting customers can manage their own accounts through the cPanel control panel that accompanies WHM.

 

All eUKhost reseller hosting accounts are accompanied by our 99.95% uptime guarantee so that you can assure your own customers of the accessibility of their website; we here at eUK appreciate the inconvenience and loss of revenue that can be caused by downtime and so we focus many of our efforts on trying to prevent it where possible. Full support is also provided which is one key method that we use to offer high levels of uptime; 24×7 support for resellers can benefit you in other ways such as:

 

  • Live Chat support is available through our website 24×7 and ensures that if you need to speak to someone immediately, you are able to contact a fully qualified support technician who will be ready to address your concerns
  • 24×7 server and network monitoring is in place to prevent downtime and if it does occur, ensuring that it has no impact on the performance or availability of your web hosting account.

 

Choosing a reseller hosting plan from eUKhost will provide you a stable platform on which you can offer your own web hosting plans. As reseller hosting begins to restrict you, a VPS server or dedicated server from eUKhost can form the next step along the way and can help you with the expansion of your business.

 

Web Hosting Billing Software

 

If you are going to be starting your own web hosting business then one of the key considerations that you will need to make at the beginning is the application that you are going to use for the purposes of billing your clients. Web hosting billing applications generally contain a wide variety of features that are aimed at simplifying the management processes associated with a web hosting company; this can include:

 

  • Providing a support system through which your web hosting clients can create tickets for issues that they are facing; such a system will allow yourself and your clients to keep track of issues and the related correspondence
  • The setup of web hosting accounts can be automated in many cases so that once a client has paid for their order, the software will automatically move to process the order which will mean registering any domains that have been purchased and setting up the related web hosting accounts
  • Some billing applications include features that will provide you with the figures necessary to create final accounts for your business, a task that would otherwise take days as you would have to comb through a large collection of invoices for the financial year.

 

Even though you can always develop your own web hosting billing application, the best solution for many businesses is to choose a third-party application that can provide support for an array of different web hosting control panels. As billing applications are going to be responsible for handing personal information and processing financial transaction, security is of paramount importance and this is the sole reason as to why a third-party application will be a more credible option as high-level coding skills will be necessary to create an application that is equally secure.

Any eUKhost reseller hosting plan will be able to support a third-party or solely developed billing application. As eUKhost uses popular control panels including Plesk and cPanel with our web hosting plans, you will have a good range of billing applications to choose from that will work hand-in-hand with your reseller plan.

How to find out Reseller name with domains

Reseller is a good way to earn unlimited benefits online and if you want to list all cPanel hosting accounts under a specific reseller, then you can use the below simple shell script.

1) Crete the file reseller.sh and add the following code.

vi /home/reseller.sh

#!/bin/bash
usage()
{
echo “Example : $0 domain.com or username”
exit 1
}

test $1 || usage
USERN=$(grep $1 “/etc/userdomains” | awk ‘{print $NF}’ | awk ‘NR==1′)

if [[ -z $USERN ]]
then
echo -e “e[1;33m $1 is not a reseller e[0m"

exit 1
fi

OWNER=`cut -d: -f1 /var/cpanel/resellers | grep -o $USERN`
exitstatus=$?

if [ "$exitstatus" == 0 ] ; then
echo “”
echo -e “e[1;31m Below are the accounts associated with the reseller $name e[0m"
echo ""

output=$(for i in `grep $OWNER /var/cpanel/users/* -l` ; do grep USER= $i ; done | awk -F"=" '{ print $2 }')
echo -e "e[1;33m $output e[0m"
else
echo -e "e[1;35m $1 is not a Reseller e[0m"
exit

2) chmod 755 /home/reseller.sh

3) cd /home/

4)root@server[#] ./reseller resellerusername

or

root@server[#] ./reseller resellerdomain.com

After executing the script you will get the below output as ::

root@server[#] ./reseller yourdomainname.com
Below are the accounts associated with the reseller
Jason

Billy
Mike
or

root@server[#] ./reseller newtest

newtest is not a reseller.

How to Change or Modify Your Customer’s FTP and Frontpage Passwords in Plesk ?

We assume that you have already logged in to your Plesk control panel. Now, lets see how to change your customer’s FTP and Frontpage passwords in Plesk.

Step 1: On the Plesk control panel home screen, scroll below and click the customer’s domain name.

Step 2: On the domain page, Click the “Setup” icon under the “Hosting” section.

Web Reseller Hosting

Step 3: On the “Physical hosting setup page” scroll down to “Account Preferences” and enter the following credentials as shown in the image below:

New FTP Password :
Confirm Password :

Step 4: After entering the new FTP password, Scroll down to Frontpage Support. If the particular customer had Frontpage support enabled, this is where you will be able to change his/her FTP password.

Frontpage Admin’s Password :
Confirm Password :

Step 5: Finally, scroll down and hit the “OK” button to finish. It will end up by showing you a message “Info: Physical hosting settings on domain xyz.com have been updated.”.

That’s it! Your customer’s FTP and Frontpage Password has been changed successfully. Now, you know how to change or modify your customer’s FTP and Frontpage password using your web reseller hosting Plesk control panel. For security reasons, you should remind your customer’s to change their passwords often to prevent the hacking attempts.

How To Brand Your Reseller Hosting Plesk Control Panel With Your Own Logo ?

Most of the beginners starting as a hosting reseller don’t even know that they can brand their reseller hosting business by setting up their own logo in to the plesk control panel. Now lets learn how to brand your reseller hosting business with your own custom made logo in to Plesk control panel.

How to setup your own logo in to Plesk Control Panel ?

Step 1: Login into your Plesk control panel.

Step 2: On your Plesk control panel home screen under the Tools section, find the “Logo Setup” icon and simply click on it.

Reseller Web Hosting

Step 3: On the “Logo Setup” page use the Browse button to select a logo to place in to your control panel.

Setup Logo in to Plesk

Step 4: Enter the destination URL, where you want people to navigate after clicking on your logo and hit the “OK” button.

That’s it! Now, your new logo should have replaced the original Plesk logo in your Plesk control panel as well as for all your customer’s plesk control panels. This is one of the best way to brand your web reseller hosting business.

What is Skeleton Directory and How to Use it?

Most of the beginners starting a reseller web hosting business don’t know most of the features of WHM. One of the main element of WHM panel is the Skeleton Directory. Now, you must be wondering what is the skeleton directory and what it is used for ?

Basically, skeleton directory is a place where a hosting resellers puts a temporary home page for all the new web hosting user accounts that are created in the WHM panel. In this tutorial we are going to show you the exact location of the directory and how you can make a use of it ?

Step 1: Login into your WHM panel using the credentials provided to you by your web hosting provider.

Step 2: On the main page of WHM, Click on the Account Functions link. Once you click the link it will reload the page and will show you the functions available into the Account Functions.

Step 3: Click on the Skeleton Directory link (as shown in the image above) to move inside the directory. This is the place where you will have to put a temporary web page for the new web hosting accounts you create. The default homepage is what will be displayed in the visitors browsers, until a new homepage is uploaded to the hosting account.

In this tuturial, the main reseller’s account username is skel, where the skeleton directory is located. (See image below)

Step 4: In order to change the temporary homepage, simply make use of an FTP program or the File Manager and upload another homepage into your main accounts cPanel (ie. Skel).

Now, you know what is skeleton directory and what is it used for. If you are a hosting reseller or going to start your own reseller web hosting business, make sure you upload a decent temporary homepage into the skeleton directory.

Securing FTP Access On VPS & Reseller Hosting Accounts

Reseller Hosting

Most of the times many reseller web hosting and vps hosting accounts are begin affected by unauthorised FTP uploads. Unlike vps and reseller hosting, on cpanel hosting accounts we are aware of the domains which are being created and can be altered directly from the systems. However, it is not possible with the vps and reseller hosting accounts as the clients has the flexibility to add any number of domains.

However, we can provide a method in order to secure FTP access to your website for a number of IP addresses or a complete subnet.

Primarily, you need to determine your own IP address first. One of the best way to detect your ip address is to visit www.whatismyip.com website. Once you visit this site it will show your ip address like “Your IP Address Is: xxx.xxx.xxx.xxx”. This is all you need to determine if you are on a static IP address. However, if you are assigned with a dynamic IP address, it means your ip will keep on changing, hence you will need to know the ip addresses you would be assigned.

If you have a static ip address assigned, visit the “Whatismyip” site and click on the “IP WHOIS Lookup” link on the left of the page and then simply click the “Whois Lookup” button. You will see a detailed information about your ip address on the middle of the page. In that information, you should see something like this:

inetnum : 128.0.0.1 – 128.0.0.53

The above figures is the range of the IP addresses you could be assigned.

Now, that you have the possible ip addresses, you can proceed with the following steps.

On your machine, create a file .ftpaccess in a text editor (make sure you put the (.) dot at the beginning of the file name).

If you have a static ip address assigned, put the following content in that file:

<Limit ALL>
DenyALL
Allow 128.0.0.1
Allow 1.2.3.4
</Limit>

The line “Allow 128.0.0.1” should be left in the file as a backup in order to enable you the access to the .ftpaccess file through the Filemanger in the Admin area.

If you are assigned with a dynamic ip address, then you will have to Allow the possible range of ip address based on the example “inetnum: xxx.xxx.xxx.xxx – xxx.xxx.xxx.xxx”. The file contents will look like this:

<Limit ALL>
DenyALL
Allow 128.0.0.1
Allow 1.2.3.
Allow 1.2.4.
Allow 1.2.5.
Allow 1.2.6.
Allow 1.2.7.
</Limit>

Now, as you are done with creating the .ftpaccess file, you just need to upload that file into the httpdocs, httpsdocs and cgi-bin folders on the server. It will restrict all the ip addresses trying to access your site via FTP accept those ip addresses which are Allowed in the .ftpaccess file.

The above change won’t stop blocks on SFTP or WinSCP, if you are going to use only these protocols you could create a file with the following contents.

<Limit ALL>
DenyALL
</Limit>

The above lines will restrict any FTP access to your website. This tutorial is applicable only for the Reseller Web Hosting and VPS Hosting accounts. If you are not familiar with above, you can simply raise a ticket at our support desk and leave the rest on our technical experts.

WHM Tutorials for Hosting Resellers

WHM is a Web Host Manager system or a control panel mostly used by hosting resellers. It helps resellers to manage their customers accounts easily via WHM control panel. Resellers can easily add, modify or delete client accounts at any point of time. It allows resellers to allocate more resources or degrade the resources allocated to a hosting account. With the advanced and appealing features reseller’s can achieve the greater level in the reseller hosting industry.

Various Functions of Web Host Manager (WHM):

How to Create a new Hosting Account in WHM ?

Step 1: Login into your WHM.

Step 2: Click on to the “Account Functions” listed on the left sidebar.

Step 3: Now, click on the “Create a new account” option. Once you click it fill all the required fields and click on the “Create” button on the top. You will get the account information of the recently created account.

Please check out the below video for more detailed steps:

Steps to Create a New Account in WHM

How to manage the bandwidth of an account in WHM ?

Step 1: Login into your WHM, and click on to the “Account Functions”.

Step 2: Once you click onto “Account Functions” to get options.

Step 3: You will see an option “Limit Bandwidth Usage”. Click on it and select the domain for which you want to set or increase a specific amount of bandwidth limit. Allocate the amount of bandwidth and click on the “Change” button.

Please view the following video for more detailed steps:

Steps to Manage the Bandwidth an Account in WHM

How to Manage the Disk space of an Account in WHM ?

Step 1: Login into your WHM and click on the “Account Functions”.

Step 2: Now click on the “Quota Modification” option under the accounts functions section.

Step 3: Select a domain to which you want to increase the amount of disk space. Allocate the amount and hit the button.

How to Suspend and Unsuspend an account in WHM ?

Step 1: Login into your WHM control panel and click on the “Accounts Function” link.

Step 2: Scroll down and click on the “Suspend/Unsuspend an Account” link.

Step 3: Select the domain as the account you want to suspend. Include the reason if any and hit the “Suspend” button.

The unsuspend accounts can be found under the “List Suspended Accounts” mentioned under the “Account Information” section.

Step 4: To unsuspend a suspended account, click on the Suspend/Unsuspend an Account link, select the domain and simply hit the Unsuspend button. Look for the domain you want to unsuspend and hit the “Unsuspend” button.

Please view the following video for more detailed steps:

Steps to Suspend / Unsuspend an account in WHM

How to Terminate an Account in WHM ?

Step 1: Login into your WHM account and click on the “Account Functions” link.

Step 2: Click on the “Terminate an Account” link.

Step 3: Select the domain you wish to terminate and hit the “Terminate” button.

How to create a domain in plesk

Plesk Reseller has many technical features which help windows reseller hosting about how to control everything from adding / removing hosting accounts to administering SQL databases. Plesk is the complete integrated server automation system which is used by any individual to increase features like a new, more intuitive end-user interface and its complete with its new version of Plesk features like integrated billing and SiteBuilder software. For a domain registration process you can use  Plesk to add your unique domain name through its control panel on a windows hosting. It is an easy and popular control panel for windows server hosting.

Now lets see how practically we could add a domain to a Plesk :

1) First use your Username and Password to Login into your Plesk control panel.

2) A successful Login will take you to the Parallel Plesk control where you can see different features and option to manage and maintain your hosting resources.

3) Click on the Domains you can find this option on the Dashboard of Plesk. Click on Create Domain to create a new domain for a website.

4) To create a new domain Enter Domain and required field for a new domain. Please leave mail and DNS options checked.

5) Enter FTP UserName and Password in the empty field of Hosting setting. Click next.

6) The new domain has been configured and ready for any kind of configuration.

7) You can set Frontpage extension for this new Domain and can grant permission to the user as well.

8) Click Finish and you have a new Domain and you can easily manage hosting resources for the new Domain.

« Previous entries Next Page » Next Page »
Content Call us at 0800-862-0380