Tag Archives: WHM

How To Lock A Directory On Your Dedicated Server?

The directory privacy feature of WHM and cPanel of your dedicated server, VPS, or hosting allows you to secure any web directory from unauthorized access on the web.

You can lock a directory with a username and password so that anyone who attempts to open it must go through its login process. You can secure specific directories on your server. This feature simply modifies htaccess and htpasswd configurations to restrict access to those files on your websites.

To use the feature, simply login to the cPanel of your server and select a directory to manage:

  1. To select a directory, simply click the desired directory’s name
  2. To view and select subdirectories, simply click the parent directory’s name and select the desired subdirectory
  3. To configure the security settings for a directory or subdirectory, simply click the Edit option present under the Actions column
  4. To password protect the selected directory, select the password protect this directory checkbox
  5. Enter a display label for the directory in the enter a name for the protected directory text box
  6. Click the Save button and a confirmation message will appear
  7. Click Go Back to return to the directory’s configuration page

Note,

  • In step number four, to remove the password protection from a directory, simply deselect the Password protect this directory checkbox and save your changes
  • In step number five, This name only functions as a label for the directory. So do not confuse it with the directory’s main name

Next,

Once you have locked your directory by completing the above-given steps, you will need to create a user that can have access to that directory.

To create a user for a directory, your directory must have correct permissions. In case you cannot create a user, then change the directory’s permissions to 0700 using the file manager interface.

To create an authorized user:

  1. On the same page, enter the desired username in the Username text box
  2. Enter and confirm the new password in the appropriate text boxes
  3. Click Save and a confirmation message will appear
  4. Now click Go Back to return to the directory’s configuration page

Remember,

A protected directory’s subdirectories inherit their parent directory’s password protection. The lock icon indicates that Directory Privacy configurations already exist for that specific directory.

It does not protect the directories that users access via FTP, SFTP, Web Disk, and other similar services, or if any user accesses the files locally on the server. This is because when a user accesses secure directories on a server via these specified services, he already goes through the login process so the system doesn’t prompt him for another login.

In case you want to secure your directories and files locally on the server then use the file and folder permission option.

How To Add & Use Multiple Servers Via DNS Cluster Of WHM & cPanel?

While using more than one dedicated server, a DNS cluster allows you to add more servers via WHM so that your group of name servers can share records.

This enables you to physically separate the nameservers that handle the DNS requests from your cPanel and WHM dedicated servers. So that whenever a DNS change occurs on one of your main servers, it gets replicated immediately to all the other servers added in your DNS cluster.

To add the new server to the DNS cluster, simply login to your account and visit your server’s home to implement these changes:

  1. Visit WHM’s DNS Cluster interface via WHM -> Home -> Clusters -> DNS Cluster
  2. Click to Enable DNS Clustering
  3. Click the Change button
  4. Click Return to Cluster Status
  5. Select the server to add to the DNS cluster
  6. Add a new server to the cluster menu
  7. Click Configure
  8. In the Remote cPanel & WHM DNS host text box of the cPanel DNS Remote Configuration interface
  9. Enter the hostname or IP address of the nameserver to add to the cluster
  10. Enter the WHM username for the nameserver
  11. Enter the nameserver’s API token hash or remote access key in the Remote server access hash text box
  12. To automatically configure the DNS cluster on the remote server – Select Setup Reverse Trust Relationship
  13. To synchronize the new server with other nameservers simply select Synchronize Zones Immediately option
  14. To specify the server’s DNS role, select a setting from the DNS Role menu
  15. Click the Submit button

For deleting a server from DNS cluster:

  1. Visit to the DNS Cluster interface via WHM -> Home -> Clusters -> DNS Cluster
  2. In the Modify Cluster Status text box, select Disable DNS Clustering
  3. Click Change, then Click Return to Cluster Status
  4. Log in to the servers that remain in the cluster
  5. Navigate to the DNS Cluster interface via WHM -> Home -> Clusters -> DNS Cluster
  6. Locate the server that you wish to delete
  7. Click the x icon under the Actions heading

To make changes in your server in DNS cluster:

  1. Locate the server that you wish to edit
  2. For DNS changes – In the DNS Role menu, select a new role for the server
  3. Click the save icon to save your changes
  4. Next, to edit a server’s configuration settings
  5. Click the edit icon under the Actions heading
  6. The cPanel DNS Remote Configuration interface will appear
  7. Make your changes to the server’s settings
  8. Click the Submit button

How To Identify & Fix HTTP Errors Of Your Website?

Every HTTP error has an HTTP code that describes the status of a URL to the client. These three-digit codes include error messages that visitors encounter.

Following are the five classes of HTTP codes divided into categories, by the first digit:

  1. Errors starting with 1, 2, or 3 are fully functional requests
  2. Errors starting with 4 are client-side error, the most common error codes span 400 to 404
  3. Errors starting with 5 are server-side error, the most common error codes span 500 to 510

4xx Errors

These errors show up where there is a problem with the client’s request (web browser etc), but often point to a problem on a website.

For instance: You have a broken link on your website, the client requests it and receives a 404 error page. That is how it works.

To resolve this you can check for broken links on your website. On WordPress this can be either done by a plugin or you can check error pages from cPanel -> Home -> Advanced -> Error Pages.

400 Bad Request

It happens when the user’s request contains an incorrect syntax.

401 Unauthorized

The error shows up when the requested file is a protected one and requires authentication, such as a username and password.

403 Forbidden

In general, this happens when the index file is missing on your server or the root directory is empty, or when you have purchased a new hosting and have not uploaded your website or have not installed WordPress, etc.

Other times, it happens when the server stops the visitor to access the requested file. To resolve this, check for the file’s permission settings. Also see whether the system protects the file in cPanel’s Indexes interface (cPanel -> Home -> Advanced -> Indexes).

404 Not Found

When the server doesn’t find the requested URL. Commonly occurs when a visitor mistypes a URL or you have interlinked to a dead URL.

Managed WordPress users may use a permalink finder plugin to reduce this error to zero.

5xx Errors

Such errors occur when a server fails to full fill an apparently-valid request made by the client. These errors are a little bit complicated because sometimes a chain of servers handles an HTTP request which means that the error may also come from other server.

In WordPress, you can resolve it by testing your themes and plugins as it generally comes from there.

Comment below for any assistance in this regard.

500 Internal Server Error

The error is a result of misconfiguration, especially when the server finds some unexpected condition and fails to gather any information about the real problem it is facing.

501 Not Implemented

Comes when the server does not support the client’s chosen HTTP method. Also, occurs on out-of-date servers. To resolve, try reloading your page, clear the browser cache. Other issues might include viruses or malware or an overload on your server.

502 Bad Gateway

Occurs when proxy servers are badly configured or IP communication between backend systems is poor or when the client’s Internet Service Provider (ISP) is overloaded. May also occur due to imroperly configured firewall functions.

Clearing the client’s (web browser) cache sometimes work in resolving this issue. Other times, you may need to report the issue to an expert. You may also comment here for help.

Try to start a new browser session, restart your system and network, change DNS and clear your cache.

503 Service Unavailable

When a server fails to handle requests due to a temporary overload or when the server is temporarily under maintenance. Generally happens when you update your website’s software. To resolve, simply wait.

504 Gateway Timeout

Comes when a server did not receive a timely response. Can happen temporarily or when your server starts to go out of resources or due to slow communication between upstream servers. To resolve, look for any server connectivity issues, check the requested page code, test your firewall for any faults.

505 HTTP Version Not Supported

When the server refuses to allow the HTTP protocol that the client system specifies. This error generally occurs when the user’s system incorrectly specifies the protocol. To resolve, switch to a modern web browser.

506 Variant Also Negotiates

Means the server is not properly configured. To resolve this issue, contact an expert or research yourself or comment below.

507 Insufficient Storage

Simply means that the server is out of free memory. The error comes when requested application fails to allocate necessary server resources. To resolve this issue, contact an expert or research yourself or comment below.

509 Bandwidth Limit Exceeded

This means that your server has reached its bandwidth limit, and you need more resources. To resolve, wait every time until the limit resets or try reducing your resource usage or upgrade your hosting plan or move to a dedicated server.

510 Not Extended

Shows up when the webserver does not support the extension attached to the HTTP request. To resolve, wait every time until the limit resets, or reduce your resource usage, or upgrade your hosting plan, or move to a dedicated server.

How To Create New cPanel Accounts From WHM Of Dedicated Server?

A cPanel provides you an easy interface to manage your domains and websites. The cPanel you get at SANGKRIT.net gives you access to more than a hundred free applications for making many types of websites in few clicks.

Dedicated Server owners can create multiple cPanels associated with different domains. Every cPanel will work like a new hosting account where more domains can be hosted by you.

Follow these steps to create new cPanel accounts:

  1. Login to your SANGKRIT.net Account
  2. Click the Servers tab
  3. Click Manage button
  4. You will be directed to your server’s admin panel
  5. Click Account Functions or use the search box to find it
  6. Click Create a New Account
  7. Fill up the mandatory fields and click Create

Now the Web Host Manager will display you a results page outlining your new Account. Next, you will see Account Creation Complete!!! at the bottom of the screen.

That’s it, following these steps you can create more cPanel accounts.

The accounts you create can be accessed from the Servers tab on your SANGKRIT.net products page. Go back to step no. 1, and you will see all your cPanel accounts are listed there.

How To Host Multiple Domain On Dedicated Server?

After you have subscribed to a dedicated server, the first thing you need to do is set it up for your main domain. Then you can add multiple domains to your server or enable other cPanel hosting accounts on your server to add domains.

For Hosting Multiple Domains From Server’s Admin Panel

This option lets you create different cPanel accounts for each of your domain names.

While creating any new cPanel account you can allow it to host multiple domains or simply keep it limited to only one domain. You can do this at your discretion by following these steps:

  1. Login to your SANGKRIT.net Account
  2. Click the Servers tab
  3. Click Manage button
  4. You will be directed to your server’s admin panel
  5. Use the left side search box to find the List Accounts page
  6. Click List Accounts
  7. Click Create a New Account button

It will present you with a form where you can type in your domain name and select options for the new cPanel account you are creating.

Finally, click the ‘Create’ button.

Follow the same steps for creating separate accounts for your domains.

For Hosting Multiple Domains On A cPanel Account

You can allow any cPanel account on your dedicated server to host multiple domains. This thing is done while creating new cPanel accounts (as we have done above) or you can edit any old account.

To edit any old cPanel account simply visit the ‘List Accounts’ page (as shown in step no. 6 above).

To host multiple domains on cPanel:

  1. Log in to Account Manager 
  2. Click the Servers tab
  3. Next to the cPanel account, which you want to use, click Launch

Next, on cPanel home page:

  1. Scroll down to the Domains section
  2. Click ‘Addon Domains
  3. Type in the domain name
  4. Click the ‘Add Domain‘ button

Each domain added by you will have its own directory where you can upload your website or install WordPress. The web directory of your domains can be accessed from your cPanel’s home page -> File Manager option, present in the Files section.

Make sure you update your domain name servers to make it point to your dedicated server.

How To Get Helped?

In case you need any kind of assistance in hosting your domain names on your dedicated server, simply comment below or use the Helpline number.

How To Transfer Your Account From Other Server To SANGKRIT.net Server?

The manual transfer requires you to download files as well as the database and then upload it to your new server. But there is another method on dedicated servers that allows you to copy your account directly from your previous cPanel host.

What You Will Need?

To start you will need your server address (IP or FQDN) which you can either find yourself or get from your service provider. Second, you are going to need the username and password of your cPanel account.

How To Start?

Log in to your SANGKRIT.net account and follow these steps:

  1. Open the Products page and click the Servers tab
  2. Click Launch (Next to the account, you want to use)
  3. Click Manage Server (WHM) (visible next to cPanel Site)
  4. Click Proceed

On your WHM panel use the left side navigation search box to find the page of ‘Copy an Account From Another Server With an Account Password’. On this page, you will see fields for the Server to copy from, username and password.

On the ‘Server to Copy’ field enter the IP address of your remote server. Next fill in the username and password then press the ‘Copy Account’ button.

In case if you have an additional IP address assigned on your server. You can also select the ‘Give new account an IP address’ option to get the available IP address automatically assigned to your new account.

How It Works?

The server will try to connect to the remote cPanel server and copy the specified account.

It is going to check the remote server every minute till the backup is completed. So at the time the copy process goes do not close your web-browser tab.

How Much Time It Takes?

The time it takes depends on the size of your account on the remote server and once the account is successfully copied you will see the account restored message.

How To See Your Newly Transferred & Restored Account?

Once you see the account restored message at the bottom of the page. Use the top-left search box to type ‘list’, then click on the ‘List Accounts’ option. You should now see the copied account on your server.

How To Make It Work?

Once you have made sure that your old account has been copied to your new server at SANGKRIT.net. You will need to update your domain’s name servers to make your domain point to this new location.

How To Get Helped?

In case you need any kind of assistance in transferring your website, simply contact the support of SANGKRIT.net via Support Page or Helpline numbers.

How To Manage Resources On Dedicated Server?

Managing resources means creating hosting packages having a set resource usage allowance for domains and websites you want to host on your dedicated server.

You can set the maximum amount of resources a domain can use so that other websites won’t get affected by it. 

  • If you are running only one website then you may simply allot all your server resources to it
  • If you are running multiple websites then you may either set a resource quota for each website or let all your sites freely use server resources

In this lesson you will learn –

  1. How to create a new hosting package?
  2. How to allot resources to it?
  3. How to assign it to a domain?

Log in to your SANGKRIT.net Account then follow these steps:

  1. Visit Products page
  2. Click the Servers tab
  3. Next to the account, you want to use, click Launch
  4. From the management interface, next to the cPanel Site,
  5. Click Manage Server (WHM) 
  6. Click Proceed

On your server’s home, To add a new package

  1. Find the Packages section on the left sidebar,
  2. Click Add a Package

Define limitations such as:

  1. Disk space
  2. Max domains
  3. Max bandwidth usage
  4. Max database usage
  5. Max email, etc

As required by you, each or selective options can be left to unlimited

Next, click the blue color Add button at the bottom of the screen.

Your package has been successfully created.

This way you can create as many packages you want, and each package will work as a separate cPanel hosting account.

You may edit or delete any packages by revisiting the packages page from the left sidebar of your dedicated server‘s home.

These steps also work on virtual private servers.

Difference Between cPanel And WHM (WebHost Manager)

Linux VPS or Dedicated Server provides you WHM to manage your website hosting accounts but when you are very new to these systems, you might get a little confused likewise WHM allows you to host multiple websites on different domains but that’s what cPanel can also do at the same time. So what is the difference?

Continue reading Difference Between cPanel And WHM (WebHost Manager)