Tag Archives: Dedicated Server

Configuring One Server To Handle HTTP & HTTPS Respectively

On an Nginx server, it is possible for you to configure it to manage both HTTP and HTTPS requests.

You should also know that prior to 0.7.14, it was not possible to enable SSL certificate selectively over individual listening sockets, as we have done here in the following given code:

server {
    listen              80;
    listen              443 ssl;
    server_name         www.yoursite.com;
    ssl_certificate     www.yoursite.com.crt;
    ssl_certificate_key www.yoursite.com.key;
    ...
}

Before SSL could only be enabled over the entire server using an SSL directive, thus it was impossible to put up a single HTTP/HTTPS server. Afterward, the SSL parameter of the listen directive was added to resolve this problem.

The use of the SSL directive in newer versions has been discouraged.

Executing Sofware Packages On Your Dedicated Server With YUM

The package management or software installations on your CentOS-based Linux server can be performed in two different ways, the first is via using a graphical user interface while the other is via command line terminal. The GUI is ok but YUM is a lot more powerful tool globally used by most system administrators.

YUM is one tool made available a long way for managing packages on CentOS Linux systems. One advantage of YUM is it not only keeps track of outdated packages but also monitors outdated dependencies on your server.

Running yum check-update

By running yum check-update command on your server you can check packages that can update candidates. If you have subscribed to a new dedicated server, running this command is going to install the updated candidates on your system.

Installing updated candidates with yum update

Another command called yum update will install all updated candidates on your system, this might take some time to complete depending upon the size of the installation and the speed of your server.

Now you are ready to install software packages

Once these things are done, you are ready to install any software from a central repository with YUM.

Similarly, the list all command of YUM will list all currently available packages, the list installed command shows the packages which are installed using YUM, and the install command is used for installing any package, whereas remove command first removes and then installs a package.

There are many more commands that you will learn about while working on your server. The man yum command is going to provide you with the help file showing all important information.

Managing The Hostname For Your Linux Server

A hostname is a selectable name for your Dedicated Server or VPS host. These are composed of a sequence of labels attached with dots. Here’s how you can change the hostname of your server by following a few easy steps.

  1. Login to your SANGKRIT.net account
  2. Visit your My Products page
  3. Click the Servers option
  4. Click Manage
  5. Select Settings
  6. Next to Hostname, click Change
  7. Enter the new hostname in the Server Hostname field
  8. Click Save.

Remember, the hostname should meet the requirements of an appropriate hostname before you can save it. Once you save your changes, the new hostname will appear in the Settings section and will start to work like the old one.

Managing Apache & PHP Modules On Your Server

You can install necessary PHP modules for Apache on your VPS and Dedicated Server and then enable them manually.

You can enable, disable, or customize such modules using a tool called EasyApache. By using this tool, the PHP and Apache options are rebuilt on the basis of the options you select.

  1. Login to your SANGKRIT.net account
  2. Visit your My Products page
  3. Click the Servers option
  4. Click Manage
  5. Open WHM

The easiest way to upgrade PHP is through EasyApace which you can find in the software section of WHM:

  1. Lookup for EasyApache using the search box on the left section of WHM
  2. Click to open it then click EasyApache (ApacheUpdate) option
  3. This will open the present time Apache Configuration Profile
  4. Click the gear icon for a customized profile option
  5. You will see Apache wizard guiding you through various steps
  6. Here, select the Apache version
  7. Then, select your PHP versions
  8. Next, from the Short Options List, select the features you like to include in your Apache
  9. You can enable the modules you like to add and you can also disable the modules which you don’t want
  10. For more configuration options you may click the Exhaustive Options List
  11. Finally, select the Save and Build option

In the Exhaustive Options List, you can select or deselect various other modules. There is also an option called Save Only that only saves your profile and doesn’t starts the building process.

To start building you will need to click Save and Build option as explained above. Once you click this option, do not close your browser window and wait for the process to complete.

This may take some time depending on the options you have selected and the power of your server. If you are using a small server with limited resources then you should not enable many options at once and instead enable a few options first and then repeat the process for enabling more modules.

Upgrading PHP On Your Dedicated Server

Before upgrading PHP on your VPS or Dedicated Server, you need to make sure that all applications and websites are compatible with the version of PHP you are switching to.

Next, take a backup of all your websites and apps, then follow the given steps.

  1. Login to your SANGKRIT.net account
  2. Visit your My Products page
  3. Click the Servers option
  4. Click Manage
  5. Open WHM

The easiest way to upgrade PHP is through EasyApace which you can find in the software section of WHM:

  1. Lookup for EasyApache using the search box on the left section of WHM
  2. Click to open it then click EasyApache (ApacheUpdate) option
  3. This will open the present time Apache Configuration Profile
  4. Click the gear icon for a customized profile option
  5. Apache version screen will appear
  6. Select the Apache version you want
  7. Click on the next step button
  8. A screen will appear where you can select the PHP version
  9. Select the PHP version and click the next step button
  10. Follow the next two steps to save, build, and upgrade

The directories you must know:

Directory for the specific references to the PHP directory or extensions:

/usr/local/cpanel/3rdparty/php/version-number/

Directory for the specific references to PHP libraries or extensions:

/usr/local/cpanel/3rdparty/php/version-number/lib

Directory for the specific references to PHP binaries:

/usr/local/cpanel/3rdparty/php/version-number/bin/

Every version of PHP has its own php.ini file which is found in:

/usr/local/cpanel/3rdparty/php/version-number/etc

Every time you edit this file, the changes are not transferred to other PHP versions you upgrade to or switch to. Hence, after an upgrade, you also need to change your php.ini file to match it with your newer version of PHP.

Reprovisioning Your Linux VPS or Dedicated Server

In the previous lessons of System Engineering, you have learned how to startup working with VPS or Dedicated Server. Now sometimes it happens with the newbies that they mess up with config on their server and in that case when no return is possible or you don’t know the solution you can just rebuild your server to give yourself a fresh start.

For reverting to a clean setup on your Linux Server, you can rebuild it which is also called reprovisioning. This reprovisioning process is done to return your server to a newly purchased state.

Reprovisioning erases all problematic code and content on your server’s hard drive, including all backups, files, everything and this cannot be undone.

To start, simply login to your SANGKRIT.net account and follow these steps:

  1. Visit your My Products page
  2. Click Servers
  3. Next to your server, click Manage
  4. On the upper-right corner, click Server Actions
  5. Select Rebuild Server

Now, follow the prompts on the rebuild your server screen, and then re-set-up your server by following these steps:

  1. Next to your server, click Manage
  2. Enter a name for your server in the Server name field
  3. Select an OS and data center location (if available) and then click Next
  4. Complete the fields for making a username and password
  5. Click Finish

It takes sometimes and your server is rebuilt, configured, and restarted and then you may log in to your server and do whatever you like doing.

Patching Your Linux Server For Security Vulnerabilities

Once your Linux VPS or Dedicated Server is up and running the websites. You’ll need to keep it protected from security vulnerabilities. To do that, keep patching your server regularly.

Develop a monthly or weekly practice of performing this uncomplicated task and it will save you from a lot of hassle thereafter.

To start, you need to connect to your server via SSH, we have discussed it before, read this tutorial. Once you are connected, switch to root user by running this command:

  • sudo su –

and enter your server password. You now have root access.

Next, run the following command:

  • yum clean all
  • yum update

If you have Ubuntu Linux on your server then replace the above two commands with the following one:

  • apt-get upgrade

That’s it. In the case of Windows Server, you need to connect the server via RDC, follow these steps:

  1. Launch Remote Desktop Connection
  2. Enter your server’s IP address
  3. Enter your user name and password
  4. Select Control Panel from the Start menu
  5. Click Windows Update
  6. Click Check for Updates
  7. Complete the steps to update your server

Managed Hosting, Business Hosting, WordPress, and other assisted service plan customers do not need to patch their own servers. It works either automatically or by the support team.

How AutoSSL Secures All Websites On Your Server At SANGKRIT.net

AutoSSL is a free feature of VPS and Dedicated Servers you subscribe from SANGKRIT.net, it can be used as a free alternative to paid SSL certificates. Configuring AutoSSL, you can automatically secure your websites using a Domain Validated (DV) SSL.

Apart from the users of VPS and Dedicated Servers, the Business Hosting users also get the advantage of AutoSSL. The domain names associated with your VPS or Dedicated Server account automatically get an SSL certificate by AutoSSL unless you have purchased and installed another one. In that case, AutoSSL won’t override the existing certificates but still works for other domains on your server.

After the SSL certificate is installed, the auto-application installer of your server (that allows you to install WordPress and other apps) also lets you choose an HTTPS connection for your website. If you have made or uploaded a website manually then you can manually redirect it to a secure HTTPS connection.

This is done by making a few modifications to your .htaccess file which can be created (if not already present) in the root i.e. public_html directory of the domain you want to secure

If you just created the .htaccess file, use the following code (replacing the example.com with your own domain name) to set up the redirect to the HTTPS version of your website:

RewriteEngine On 
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^(www\.)?example\.com
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]

At the time you change the primary domain or add another domain to your server, the AutoSSL immediately attempts the installation of an SSL certificate. But for the SSL to install and work successfully, your domain name must point to the server’s IP address.

If you see that the SSL is not working for any domain name or you want to manually activate or deactivate the SSL on some domain, you can do that manually from the SSL/TLS Status page in the cPanel administration area of your server.

Testing Linux, Apache, MySQL, & PHP On Your VPS Or Dedicated Server

In the previous lesson, you learned about configuring the super admin access to your server.

Next, while launching a new web application project or a simple website you will need to make sure that the server versions of Linux, Apache, MySQL, and PHP are compatible with the application you like to build or install on your VPS or Dedicated Server.

At SANGKRIT.net, you always get an up-to-date server so you won’t be facing any such compatibility issues here. But, there are commands to check different versions of commonly installed services on your LAMP Server (VPS or Dedicated) running CentOS, Ubuntu, or Fedora.

Simply run these commands to check your versions of Linux, Apache, MySQL & PHP:

Apache: /usr/sbin/httpd -v or httpd -v

Server version: Apache/2.2.29 (Unix) Server built: Oct 9 2020 11:35:25 Cpanel::Easy::Apache v3.26.8 rev9999


Apache on cPanel: /usr/local/apache/bin/httpd -v

Server version: Apache/2.2.29 (Unix) Server built: Oct 9 2020 11:35:25 Cpanel::Easy::Apache v3.26.8 rev9999


Curl: rpm -q curl

curl-7.19.7-40.el6_6.3.x86_64


Bash: bash –version

GNU bash, version 4.1.2(1)-release (x86_64-redhat-linux-gnu) Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>


Exim: exim -bV

Exim version 4.84 #2 built 9-Oct-2020 15:02:41


Glibc: ls /lib/libc-*

/lib/libc-2.12.so*


Kernel: uname -r

2.6.32-042stab093.5


PHP: php -v

PHP 5.4.33 (cli) (built: Oct 7 2014 11:48:26) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies


MySQL: mysql -v

Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 213432 Server version: 5.5.40-cll MySQL Community Server (GPL)


CentOS/Fedora: cat /etc/redhat-release

CentOS release 7.6 (Final)

Here, Linux is the operating system you are using on your VPS or Dedicated Server, Apache is the most popular HTTP server used on the public internet, MySQL is the database that contains all text and password information of your website and PHP is the programming language used to code web applications.

These most commonly used services need to work on your server so that you can build websites and web applications on your domains.

Connecting Your Linux VPS or Dedicated Server With Secure Shell SSH

After you purchase a VPS or Dedicated Server, you will need to follow a few general steps to connect your server via SSH Secure Shell using a local client. This is needed to transfer, backup, or upload your web/app files etc.

What is Secure Shell SSH? ​​Secure Shell i.e. SSH is a cryptographic network protocol for operating network services securely. It is a method for doing a secure remote login from one device to another.

Here, the two devices are your local machine i.e. your computer, and your server i.e. your VPS or Dedicated Server.

Now the steps given here are the exact steps for making a connection via SSH but a few things may depend on the SSH client you use. If you don’t use Linux Terminal then you may use PuTTy for Windows, or Terminal on a macOS machine.

​​Before you start with the SSH login you will need to obtain this info:

  • Your domain name or IP address
  • Your primary FTP username
  • Your primary FTP password

In case you don’t know where to find these things, you may search their tutorials or simply email or call the online support team to get help.

For security reasons, your dedicated server is provisioned with disabled admin/root access. But you can enable it by following these steps:

  1. Login to your SANGKRIT.net account
  2. ​​Navigate to your My Products page
  3. Click Servers 
  4. Next to the Generation 4 server, click Manage
  5. Select Settings from the top of the page in your account dashboard
  6. In the access section, next to the admin access, click Manage
  7. Select Enable Admin Access (this is actually root account sudo access) 
  8. Now click Save
  9. Admin access is now enabled

Next, To establish a connection:

Launch your SSH client, enter the host i.e. your domain name or IP address, and your SSH port number (which by default is 22) to establish the SSH connection.

Now you will be asked to enter the FTP details, as prompted for that, enter your primary FTP username and password and click GO or whatever action button is there in your client.

That’s it. Your client will now make a connection.

How To Use Domain Redirects On cPanel Of Your Server Or Hosting?

Using domain redirects you can redirect an entire domain or selective links to a new domain or links to individual pages. While configuring a domain redirect on cPanel, you will notice that there are two types of redirect options; temporary redirect, and permanent redirects.

  • A 301 redirect i.e. permanent redirect means that you are directing the page permanently. It prompts the search engines and HTTP clients to update their caches to the new link. It simply indicates that the page has been moved to a new address permanently. This is useful when you move your website to a new domain.
  • A 302 redirect i.e. temporary redirect means Found, but it is mainly used to tell the search engines and HTTP clients that the page is temporarily redirected and will soon be available to the old address, so there is no need for them to update their caches, etc. This is useful while you are developing your website or working on a page.

To configure a redirect, simply log in to your SANGKRIT.net account and follow these steps:

  1. Open the products page
  2. Select your hosting or server
  3. Open your cPanel hosting account or select a cPanel of your server
  4. Scroll down to the Domains section and click the Redirects option
  5. Select Permanent (301) or Temporary (302) from the first dropdown
  6. Choose the domain you want to redirect
  7. In case you are redirecting a page, simply paste the URL of the page
  8. Add the new destination domain or URL including https:// or http:// protocol
  9. Click the Add button

You will also notice that there is a wild card redirect option present as a checkbox. Ticking this option will redirect all of a site’s pages to the same URL you have entered.

How To Use New IP On Your Domain On Dedicated Server?

After subscribing to a new IP address you can add it to your domain on your dedicated server. Simply log in to your SANGKRIT.net account and follow these steps:

  1. Open the products page
  2. Select your server and click manage
  3. On your WHM home page i.e. the main page of your server
  4. Navigate to Add a New IP Address under IP Functions of the side menu
  5. Enter the new IP address and a subnet mask
  6. Click Submit to finish

Remember:

  • In step number five, if you don’t know which subnet mask is to be entered, just contact the online support team
  • In step number six, in case you make a mistake, you can delete the new address in the Show or Delete Current IP Addresses option

As you click the Submit button, the new IP address gets added. Now you can associate it with your cPanel hosting or other domain accounts on your server.

To change an existing site’s IP address to the new one you will need to follow these steps:

  1. Open the List Accounts page from the Account Information menu
  2. Select the domain account you want to change
  3. Click the “+” next to the domain name
  4. Click the Change IP Address button
  5. Select the IP you just added

That’s it. Once you have changed your website’s IP, the site will not be available to the old IP address, and it should also appear offline to the new IP address for sometime.

How To Update PHP On Your Dedicated Server?

You can reset the version of PHP on your dedicated server and its cPanel sites. Sometimes one version of PHP works for some sites while it doesn’t work for others.

For example: While running WordPress, the recommended PHP version is at least PHP 7 or higher. However, it also runs on some lower versions.

The lesson will guide you how you can update PHP version both server wide and on per domain basis.

To upgrade PHP on your Dedicated Server:

  1. Log in to your SANGKRIT.net account
  2. Open the Products page and click the Servers tab
  3. Click Launch (Next to the account, you want to use)
  4. Click Manage Server (WHM) 
  5. Click Proceed

On your WHM admin page:

  1. Search PHP on left side search box
  2. Click MultiPHP Manager
  3. You will see a list of domains
  4. You can set PHP version per Domain
  5. Select the domains that you wish to change
  6. Apply a PHP version from the list given there

The page also enables you to set a system default PHP version.

Any domain that is set to the inherit value indicates that it does not have its own PHP version explicitly set.

Newer versions of PHP are released with a lot of new improvements. As it progresses, every update is made to make it more secure, less resource hungry, and overall faster than before.

For any more help, simply comment below or use the helpline.

Serious Players Startup Only Seriously

Three things actually determine whether anything could seriously become your business.

1. Do you love doing what you do?

First of all you must ask yourself whether you love what you are planning doing for the rest of your life? So that your business could get judged at last as your lifetime achievement although that can happen only when this inspires your lifelong engagement.

Any chances to leave things midway are minimised once you truly love doing what you do. That is how your lifelong commitment matters most in determining if anything is seriously your business.

2. Do you adeqautely disrupt by doing so?

Secondly Sangkrit teaches you to start-up only if your idea of doing business adequately disrupts. As per his algorithm, up to the level, your idea can disrupt, determines the total sum of your scope to succeed as a startup.

That is how any serious people play their game to monopolise any particular human behaviour.

3. Did you startup on a dedicated server?

Finally when you are serious enough with your idea of doing business, you must start with a dedicated server and nothing less along with buying bulk domains in your bid for owning all possible extensions of your business domain globally because that is how this works best for monopolising any particular human behaviour as that is called a serious business.

Mediocres, who are not even sure about starting with a dedicated server, mostly fail on the internet contrary to the domainers starting on a dedicated server since any serious players startup only seriously.

Innovation Must Not Get Interrupted By Idiocracy

Internet startup begins by registering a domain name. So that reinventing a particular human behaviour could innovatively get made possible via that over a dedicated server.

Internet startup should simply be driven by reinventing a particular human behaviour for monopolizing that over a domain so internet success simply upgrades that into an internet monopoly. Internet success is simple as that.

This is the new normal in the internet age. Human innovation must not get interrupted by the idiocracy of the industrial age.

Internet monopolies must stick together to enforce a change wherever this becomes necessary to get rid of centuries old outdated laws. Sponsoring Sangkrit is such an opportunity, open to all of them.

A Sure Way To Succeed

Humanity comes under threat from divisive forces. Connection and cooperation leads to security and prosperity. Internet facilitates for all that. Sangkrit distributes this to the deprived majority as well.

Signup for free at sangkrit.net and spread the word among others as well. Your home employment could become simple as that.

Help people in knowing that how to live and work through these pandemic times: –

  1. Teach everyone about owning a part of internet by registering a top level domain.
  2. Teach them about developing their own idea of helping humankind over that.
  3. Teach them about investing in only that.
  4. Teach them about becoming a people’s personal outlet just like you are.
  5. Teach them about making money by selling online support and global exposure.

So that they work as your personal division in a globally distributed order to let you increasingly earn a residual income.

It is going to make your home employment very successful. Helping humankind paves a sure way to succeed as people’s personal outlet.

Enable Remote Domains To Resolve Addon Domain Error On WHM/cPanel

Remote domain is a WHM option that allows users to create parked domains (aliases) and addon domains to resolve to other servers. By default this setting is turned to off. Hence, sometimes causes a common issue while adding addon domains in cPanel of any WHM of VPS or Dedicated Server.

Continue reading Enable Remote Domains To Resolve Addon Domain Error On WHM/cPanel

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)