Category Archives: System Engineering

How To Configure PHP Directives On Your Server?

PHP allows you to control different aspects of your websites by using directives in php.ini files. These files contain the default configuration for the operation of PHP applications.

By using PHP directives you can control different variables such as upload size, file timeout, and resource limit, etc of websites running on your hosting, VPS, or dedicated server.

To add or edit a PHP directive – Log in to your SANGKRIT.net account and follow these steps:

  1. Open cPanel of your server or hosting option
  2. Navigate to the File Manager interface via cPanel -> Home -> Files -> File Manager
  3. Make sure that hidden files are visible to you or you can enable them via Settings, by ticking the Show hidden files checkbox option
  4. Navigate to the target directory.
  5. Create a new file – click New File / + File button
  6. Enter .user.ini filename
  7. Click Create New File button
  8. Select the new file from the list of files and click Edit
  9. Now enter the PHP directives you wish to adjust for the present directory
  10. Click the Save button

INI files can be configured on per-directory basis and are processed only by the CGI/FASTCGI SAPI. This functionality obsoletes the PECL htscanner extension. If you are running PHP as an Apache module then the .htaccess file will do your thing.

In addition to the main INI file, PHP scans each directory for its INI file. In a case where the PHP file has been kept outside the document root, only its directory is scanned.

How To Scan Your cPanel Account For Security Threats?

The free virus scanner provided on every cPanel hosting, VPS, and the Dedicated Server allows you to scan your account for possible security threats.

To use it, simply login to your SANGKRIT.net account and perform the steps given below:

  1. Select a service to scan:
    • Scan Mail — To scan all of your account’s mail folders
    • Scan Entire Home Directory — To scan your account’s home directory
    • Scan Public FTP Space — To scan all of the publicly accessible folders via FTP services
    • Scan Public Web Space — To scan all of the publicly accessible folders via the web
  2. After selecting a service, click the Scan Now button
  3. Here, the scanning process starts and displays you a new interface with the following information:
    • File — Displays the number of files that the system has scanned as well as the total number of files to be scanned
    • Data — Displays the amount of data the system has scanned as well as the total amount of data to be scanned
    • Scanner Progress — Displays the progress of the scan
    • Infected Files — Displays malicious stuff the scanner has detected

The server may take several minutes to complete the scan. If the scanner identifies a threat, it will prompt you to perform an action. Once the scan is complete, you will be returned to your main Virus Scanner interface.

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.

Redirecting HTTP Domains to HTTPS On Dedicated Server

Once SSL is installed on your dedicated server (as explained here) for the domain name you have selected, you will need to redirect all non-secure http links to secure https connection.

For any website to work over SSL, there are some modifications you will need to make to your .htaccess file, and then it will redirect your visitors to the HTTPS version of your website.

Login to your SANGKRIT.net account and follow the given steps:

  1. Go to your SANGKRIT.net product page.
  2. Under the Server, click Manage for cPanel
  3. In the Account Dashboard, click File Manager.
  4. In the cPanel File Manager, click Settings.
  5. Make sure that Show Hidden Files (dotfiles) is checked, and click Save.
  6. Click on public_html, and open your .htaccess if you already have one. If not, click File+, name the file .htaccess and click Create New File.
  7. Select the .htaccess file, and click Edit.
    • If you just created your .htaccess file, use this code:
      RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{HTTP_HOST} ^(www\.)?coolexample\.com RewriteRule ^(.*)$ https://www.coolexample.com/$1 [R,L]
    • If your .htaccess file already exists, insert the lines that begin with ReWriteCond and RewriteRule directly after the already existing ReWriteEngine On.
    • Click Save Changes and Close. 

That’s it. Visit your website and you’ll be re-directed to the HTTPS version.

If you use WordPress, then follow these steps:

  1. Log into your WordPress Dashboard.
  2. Visit Settings, click General.
  3. Locate the following fields:
    • WordPress Address (URL)
    • Site Address (URL)
  4. In each field, update your URLs from http to https
  5. Scroll down and click Save Changes.
  6. Open your current .htaccess file in the /public_html/ folder with the cPanel file manager for editing. If you don’t already have a .htaccess file, you’ll need to create one.
  7. Insert the following code at the top of your .htaccess file:
  8. Click Save Changes at the top-right corner of the screen.

In some cases you will need to edit your .htaccess file, if you don’t want that then you may also use a WordPress plugin such as Really Simple SSL It saves you from following so many technical steps.

How To Administer A Dedicated Server?

The dedicated servers at SANGKRIT.net offer you a WHM admin panel that lets you create multiple cPanel hosting accounts to host your websites and apps.

Before you start, make sure you have subscribed to a Dedicated Server at SANGKRIT.net.

Next, 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

This directs you to the administration area of your dedicated server which can be divided into five major sections:

  1. Main navigation
  2. Support & View options
  3. Side navigation
  4. Demo Steps
  5. Functions

Where,

Section 1, Main Navigation

The main navigation bar remains visible as you navigate throughout your server.

Where you may click –

  • News for important news and announcements
  • Change Log to view the changelogs
  • Log Out to log out

It also displays important server notices.

Section 2, Support & View Options

The top right corner of your server’s admin panel has two sets of options:

  1. The View option allows you to switch admin theme view, and
  2. The lifesaver icon allows you to view the support menu that covers the following set of features:
  • Support Forums for discussing cPanel issues
  • Link for accessing the knowledge base documentation
  • Contact option to submit a ticket to cPanel Technical Support

This section only covers the most helpful features of WHM. To view all of the features in the home interface you may switch to classic view. 

Section 3, The Side Navigation

The side navigation menu provides you access to all of the admin interfaces. Here, you may either scroll and select a page or simply search the specific admin pages.

This is a very deep section that lets you manage almost all functions of your dedicated server.

Section 4, Demo Steps

Here, you will find new notices, demo, and steps for quick access to some important actions needed on your new server.

Sections 5, Functions

This section displays the admin page you click from the side navigation (section -3). It provides the server’s root user and resellers with access to all of the server’s administration features.

Now you are introduced to your server’s admin panel.

Next, start by searching ‘Account Functions‘ on the side navigation. The option lets you host domains and manage your cPanel accounts, follow this lesson.

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.

Make Server Grid Selling Like Power Grids

Physically colocating a server by the end-user is costlier and loses a lot of money in the long run whereas leasing a dedicated server from https://system.sangkrit.net on monthly or annual subscription, proves much better and cheaper as technology is upgraded from time to time and physical servers are also changed regularly without charging any extra cost to the end-user.

Being a people’s personal outlet, you should focus upon helping businesses migrate into leased dedicated servers in remote clouds as that is the way of establishing and running any business in the internet age. Doing so you are most likely to get hired for administering that as well.

You ought to make server grid selling like power grids. Pursuing that on a daily basis would help you utmost to make the most wonderful living for your family.

The time has come when colocating physical server by the end-users should become obsolete the way establishing private electricity generators by the end-users did become a long time back.

Importing MySQL Databases Via SSH Command Line On Self Managed Servers

SANGKRIT.net not only offers you Managed and Fully Managed servers but it also lets you subscribe self-managed server option which is only recommended for command line experts. Because self-managed servers are without a control panel such as cPanel, Plesk, or Simple Control Panel.

These self-managed servers do not have phpMyAdmin installed which is used for managing MySQL databases. So in order to manage databases, you are required to use the SSH command line to import .SQL backup files.

This post guides you through importing MySQL databases via SSH.

Continue reading Importing MySQL Databases Via SSH Command Line On Self Managed Servers

Common Website Issues That Won’t Happen On Dedicated Servers

Dedicated Servers can be compared to owning a house. It provides you access to all available resources. No other websites resides on your server so you get complete control with better performance and security.

In this lesson we are discussing about the issues which are very common on shared hosting plans but won’t happen on Dedicated Servers.

Continue reading Common Website Issues That Won’t Happen On Dedicated Servers

10 Facts About Dedicated Server That Makes It An Ultimate Choice For Startups

Dedicated Server provides you the resources, functions and capabilities of one entire server, which is shared with no one else. Hence you will always have enough memory, bandwidth and resources to handle exponential amounts of traffic, processing and scripts. It is more reliable and secure than shared hosting plans.

Continue reading 10 Facts About Dedicated Server That Makes It An Ultimate Choice For Startups

How To Find Your VPS Or Dedicated Server’s IP?

All VPS and Dedicated servers on SANGKRIT.net provides you a dedicated IP address which is used for completing various important tasks such as pointing any domain to your server so that you can create a website on it and more.

Continue reading How To Find Your VPS Or Dedicated Server’s IP?

How To Generate CSR (Certificate Signing Request) On cPanel?

A CSR or Certificate Signing request is a block of encrypted text generated on the server that the SSL certificate will be used on. It contains all important information to be included in your SSL certificate, information comprises of your common name (i.e. domain name), locality and country etc.

cPanel provides you a built-in feature to generate CSR code to use for sending certificate signing request and get your SSL configuration settings ready to work on your website’s domain.

Continue reading How To Generate CSR (Certificate Signing Request) On cPanel?