Archive for Domain Names

How to redirect domain to subdirectory without redirecting url

If you want to redirect your domain name to sub-directory but the url shows only domain name

For example :

http://yourdomain.com redirect to http://yourdomain.com/blog but the URL shows only http://yourdomain.com

Then add the following rules in your .htaccess file.

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^yourdomain.com
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]
RewriteRule    ^$   blog/    [L]
RewriteRule    (.*)  blog/$1 [L]
</IfModule>

It is easy but to perform this task you need to consider one of the eUKhost web hosting plans and then edit or upload a .htaccess file from your file manager or SSH access on your cPanel hosting plan or a Linux Dedicated Server or the linux VPS hosting plan.

Setting Up Time Zone for a Specific Domain via Command Line

In order to setup a different time zone for a particular domain, you need to specify the time zone in the file called “php.ini”. If you are hosting a website on server with “suphp” as PHP handler, you can specify the time zone in php.ini file on the server. Follow the below steps to set time zone for a particular domain on server.

Step 1: Login to your server using your root login credentials.

Step 2: Enter the following command to find php.ini file on the server.

php -i | grep php.ini

Step 3: Once you get the file, edit it using the vi editor “vi command” and set the following parameters.

date.timezone=”Europe/London”

Step 4: Now save the file.

That’s it!

Dedicated Server Hosting

How to Change MX Records of a Domain – cPanel Help

Not quite often are you required to change MX Records, but when you are switching servers. Following the below steps to change a domain’s MX (Mail Exchange) records for the emails to be run from a server. It forms an essential part of DNS records due to the fact that it something that would enable you to send emails.

how_email_work

Users can make changes to the domain’s MX records from their cPanel Interfaces.

Steps to change Domain MX in cPanel

Step 1: (a) Verify Nameservers

Using any of the online tools, you may ensure your current DNS records. Once you are aware about those details, you may proceed with making the required changes to the DNS settings.

(b) Modify the TTL Settings in DNS

TTL decides the time for the changes to take effect. Decreasing the Time To Live setting for the domain, would tell the system to refresh faster therefore allowing it to grab the changes faster. Once the necessary details have been detected rightly, you may increase it to the previous values.
Ideally it is advisable to make these changes at least 24 – 48 hours before amending the MX records.

Step 2: Amending the MX Records

You must be logged into your server as root via. SSH. Navigate to the /var/named directory. Look for the file named ‘yourdomain.com.db’ and edit it using your preferred text editor.

You must now make changes to domain’s serial number in the zone file and Save it.

Now, using the command prompt run the following command to inform the server with the updated configuration.

rndc reload domain.com

Alternately, you may choose to restart the named service.

NOTE : Your domain might not be accessible until the new settings are implemented.

How to change MX Records Using WHM (Web Host Manager)?

Customers using either a Virtual Private Server, Cloud Server or a Dedicated Hosting server would get an access to the WHM. Upon logging into the panel, look for DNS Functions.

Now, select Edit DNS Zone and choose the domain for which you intend to amend and hit the Edit option.

You’d see a drop down menu for MX records, wherein you are required to enter the MX records in the fields provided. Don’t forget to Save the updates.

It is important to know that the MX records would only point to names and the IP addresses, therefore, you are required to set a name for the IP address that you intend to use for the domain.

If you need any assistance with changing the MX records for your domain, please feel free to get in touch with our support department either via. Live Chat viz. available at our website or login to the client area and raise a ticket from the helpdesk.

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 mail server ip address in PLESK

Windows hosting servers are best to host website and it supports different Microsoft technologies and   due to different activities on hosting resources in server if primary mail server ip address is blocked in any spam checker sites ( eg BARRACUDA,SORBS-SPAM etc) then there is only one solution, that is change the mail server ip address on the server.

You can easily change the mail server ip address in cpanel by using /etc/mailips file. The same as in PLESK you can also change the outgoing mail server ip address by using “/var/qmail/control/smtproutes”file.

Steps to change the mail server ip address in PLESK :

1) First check the domain name which is hosted on the Windows hosting server by using following file
cat/var/qmail/control/rcpthosts
domain1.com
domain2.com
domain3.com
domain4.com
domain5.com

2) By default the “/var/qmail/control/smtproutes” file is not present on PLESK server, you need to create it.
vi /var/qmail/control/smtproutes

3) Then add the new ip address in the following format.
domain1.com:192.168.x.2
domain2.com:192.168.x.2

4) Save the file and restart qmail
/etc/init.d/qmail restart

Note: Please replace the “192.168.x.2” to original ip address and the “yourdomain.com” equal the original domain name.

How to Fix cPanel Error: Sorry, that domain is already setup (remove it from httpd.conf?)

It may be possible that you may come across an issue of adding a domain via WHM create account function and get the following error:

Sorry, that domain is already setup (remove it from httpd.conf)

Getting the above error simply means that the domain still exists in the virtualhost in apache configuration file known as httpd.conf . There are two main reasons why it has shown you this error.

Reason One:

It might be possible that the domain you are trying to create is being used as a primary domain for one of the accounts or may be it has been used as an addon domain or parked for other domains and accounts.

Reason Two:

Or it may be possible that you are facing some technical issues such as the addon, parked or the primary domain is not removed completely from the system after using the removing function.

If the error is due to the first reason, you can easily remove the domain name from the cPanel account and even if it is not removed and come up with the following error:

Error from park wrapper: Sorry, you do not control the domain

Follow the steps given below:

First you should find out who owns the domain, enter the following command:

/scripts/whoowns example.com

Even if it didn’t show any results, enter the following command string:

grep example.com /var/cpanel/users/*

You will get the result something like the following:

root@server [~]# grep example.com /var/cpanel/users/*
/var/cpanel/users/exam:XDNS1=example.com

As you can see, we could easily find the owner of the domain (example.com), the next step is to edit the following files with the corresponding user and remove the lines associated with the domain (example.com) you have problem with.

/var/named/example.com.db
Remove the virtualhost for example.com from /etc/httpd/conf/httpd.conf
/var/cpanel/users/username [remove entries related to domain]
/etc/userdomains
/etc/localdomains
vim /etc/named.conf [remove entries related to domain]
Remove DNS entry in WHM
Run /scripts/updateuserdomains as root on the server

That’s it!

Like this post ?

Share on your Social Networking Profile ( Facebook, Twitter & Google+ ) and get a flat 10% Recurring discount on our VPS Hosting and Dedicated Servers.

Email us the shared link at : sales@eukhost.com or speak to our live chat operator now, by clicking on the “Live Chat” Scroller on the left-hand side of this page and we will provide you with the discount Coupon right away!

httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName | Solved

The ‘yum’ package manager can be used to Install the apache web server on an Fedora web server. Known for it flexibility and stability, Apache is considered to be one of the highly popular and widely used web-servers in the Industry. There isn’t a web server that hosts more websites than what Apache does. Moreover, finding support for it is just meters away, one can find a number of tutorials on this topic over the World Wide Web.
The information offered below would help users understand the steps to get rid of the warning :

httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName

To initiate the the process, we’d first check the IpTables

You need to be careful with the primary step ie. before you install a web server. This is to ensure that browser is capable of reaching it.

Usually, if you have a firewall running on a server, it may carry out its task of blocking traffic to ports 80 and 443 which are usually used for regular and secure connections respectively. So, you must first check the firewall rules using the below command :

sudo /sbin/iptables -L

Check whether the ports 80 and 443 are open. Well, if you do not have a firewall installed on a web hosting server yet, there is no question of making any changes to it.

If you find that the ports are closed the following rules should be set in iptables configuration:Cloud Hosting

iptables -I INPUT -p tcp –dport 80 -m state –state NEW,ESTABLISHED -j ACCEPT
iptables -I OUTPUT -p tcp –sport 80 -m state –state ESTABLISHED -j ACCEPT
iptables -I INPUT -p tcp –dport 443 -m state –state NEW,ESTABLISHED -j ACCEPT
iptables -I OUTPUT -p tcp –sport 443 -m state –state ESTABLISHED -j ACCEPT

How to Install Apache on Fedora ?

The procedure to Install a basic apache is simple, use the following command for the same :

sudo yum install httpd mod_ssl

This command would install apache and couple other packages to support few of the required option.

Setting the ServerName

You may probably encounter a warning such as “httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName”. Such a warning is usually shown by “httpd” as it is a default name of an apache process when it’s running, therefore you must look for in a ps list or top.

To get past this warning you are first of all required to create a “custom” directory in apache’s configuration directory. The following command should help you do that :Cloud Servers

sudo mkdir /etc/httpd/conf/custom

Now create a config file to store your server name:

sudo nano /etc/httpd/conf/custom/preferredserver_name.conf

You must now include the below line into the servername.conf file

ServerName preferredserver_name

NOTE : You must replace the “preferredserver_name” with the name of your choice. Make sure that you do not use domain name as we’d be using it to create virtual hosts later.

Then, you must save the file.

Now, make amendments to the the main apache config file, use the following command to access it:

sudo nano /etc/httpd/conf/httpd.conf

Scroll down to the end and insert the below code:

Include /etc/httpd/conf/custom/*.conf

Save the changes made to httpd.conf.

This completes the installation of apache.

Use the below command to start automatically upon reboot.

sudo /sbin/chkconfig httpd on

Make sure that the ServerName is included in the httpd.conf file and the host name is correctly specified:

hostname preferredserver_name

Once the server is Rebooted, you shouldn’t see the Warning message again.

Cloud Servers in the UK

Like this post ?

Share on your Social Networking Profile ( Facebook, Twitter & Google+ ) and get a flat 10% Recurring discount on our VPS Hosting and Dedicated Servers.

Email us the shared link at : sales@eukhost.com or speak to our live chat operator now, by clicking on the “Live Chat” Scroller on the left-hand side of this page and we will provide you with the discount Coupon right away!

Configuring a Subdomain to a Different IP Address

In this tutorial we are going to learn how to configure a subdomain to a different IP address through the WHM control panel. Usually, it is mostly used by the online websites having a shopping cart.

For example: If example.com is you main site hosted on server “ABC” and the shopping cart “shop” is hosted on the server “XYZ”, and if you wish to show example.com is also hosted on the dedicated server “XYZ”, you will need to setup a subdomain pointing to a separate IP address.

Requirements for Setting up a Subdomain to a Different IP Address:

  • Cpanel Control Panel Access
  • WHM Access
  • Different IP Address or Hostname

Step 1: Log in to your WHM control panel. In the left pane, under the DNS Fuctions, click on the Edit DNS Zone option as shown in the image below.

DNS Functions

Step 2: Now, scroll the page and come to the section “Add New Entries Below this Line”. Here we are going to “Add the A Record”. In order to create a new A record, type “shop” in the first box under the “Add New Entries Below this Line”. From the dropdown menu select “A” as record type. Once you select the A record it will show another box infront of the drop down menu. Enter the IP Address or hostname to in order to mask/point it. (See image below)

Configuring a Subdomain to a Different IP Address

Step 3: Make sure that subdomain with similar name doesn’t exists in the users account or the mask will not work as it should.

Like this post ?

Share on your Social Networking Profile ( Facebook, Twitter & Google+ ) and get a flat 10% Recurring discount on our VPS Hosting and Dedicated Servers.

Email us the shared link at : sales@eukhost.com or speak to our live chat operator now, by clicking on the “Live Chat” Scroller on the left-hand side of this page and we will provide you with the discount Coupon right away!

Configure Your MX Records to point to Gmail

How To Configure Your MX Records to point to Gmail ?

Inorder to use gmail as your primary email provider for your business website, you are required to get registered with Google Apps. Once done, you must make amendments to the MX records set for your website inorder to use Gmail for business communications.

If you use any of our Linux based cheap hosting UK servers with a cPanel, you’d find an option titled ‘MX Entry‘ in the panel. From there, you can clear all the MX record entries and populate them with the Google Apps Mail MX records as listed below :

Following is a step-by-step procedure to change MX Records and point them to Google Mail :

Step 1 : In cPanel look for the option MX Entry and click it

Step 2 : Select Remote Mail Exchanger

Step 3 : Hit the Change button

Step 4 : In the ‘Add New Record‘ area you must make the following entries with the stated priorities :

MX Records Priority
ASPMX.L.GOOGLE.COM 1
ALT1.ASPMX.L.GOOGLE.COM 2
ALT2.ASPMX.L.GOOGLE.COM 3
ASPMX2.GOOGLEMAIL.COM 4
ASPMX3.GOOGLEMAIL.COM 5
ASPMX4.GOOGLEMAIL.COM 6
ASPMX5.GOOGLEMAIL.COM 7

This concludes the configuration of MX records to point to Google. It may take 24-48 hours for the propagation.

If you encounter an issue with emails, you may contact our Support Department by either means ie. via. Live Chat or via. Ticketing System. We would be glad to assist you with sorting the issues.

Like this post ?

Share on your Social Networking Profile ( Facebook, Twitter & Google+ ) and get a flat 10% Recurring discount on our VPS Hosting and Dedicated Servers.

Email us the shared link at : sales@eukhost.com or speak to our live chat operator now, by clicking on the “Live Chat” Scroller on the left-hand side of this page and we will provide you with the discount Coupon right away!

Method to modify your MX records for Google Apps Email / Gmail?

MX record is known as an e-mail exchange record which is a record type of resources in the system of domain names. A  server that is responsible for accepting e-mails in the name of the domain of a receiver and explains a preference value for priority mail delivery or multiple copies of mail servers available. The set of MX records or a specific domain name e-mail must be sent with the SMTP (Simple Mail Transfer Protocol). An MX record comprises a FQDN and a priority. The priority is simply a number which is used to choose which mail server to use if multiple MX records exist for a domain name. A mail server trying to send an email to you will always try the lowest number priority first.

Now lets see how to modify MX records for Google Apps Email / Gmail,  It is simple Once you sign up your domain for Google Apps, you will have to change the MX records for your domain in order to use it in Gmail specified. But if you are using cPanel then this can be done by using the MX Entry option available in cPanel. There find the domain you will be pointing to Google Apps Mail and delete all of its MX records.

You can add the following MX records with the corresponding priority for your domain:

Priority: 1 to: ASPMX.L.GOOGLE.COM

Priority: 2 to: ALT1.ASPMX.L.GOOGLE.COM

Priority: 3 to: ALT2.ASPMX.L.GOOGLE.COM

Priority: 4 to: ASPMX2.GOOGLEMAIL.COM

Priority: 5 to: ASPMX3.GOOGLEMAIL.COM

Priority: 6 to: ASPMX4.GOOGLEMAIL.COM

Priority: 7 to: ASPMX5.GOOGLEMAIL.COM

These instructions are in full compliance with the official Google Apps and  been adapted to work with cPanel hosting. This will take time near about 24 hours to propagate and take effect and after that your mail will be handled exclusively by Google Apps Mail. Gmail has proven to provide the best mail experience even to the most demanding users and Bodhost UK hosting services provides easy means to change the MX records to Gmail.

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