Category Archives: Homeschool

Why Protecting Your Domain Name Is Important? How You Can Do It?

Protecting your domain name is an essential part of managing your online presence. Because anyone can obtain your contact information from whois domain records and use it for spamming or attempting illegal domain actions.

But when you protect your domain name, the public view of your information is replaced by proxy addresses so that other people on the internet don’t try to extract information about your domain name. It also offers many more protection options that you will know in this lesson.

What others can see on whois records?

People can see the contact information such as name, email address, and contact number as well as the office or house addresses of the domain registrant, domain owner, technical person, and billing.

And, when you protect your domain name these details are replaced with proxy details so that others won’t be able to misuse your personal information.

Protecting your domain name is not just about keeping your contact information secret but it is also an aid in preventing unauthorized actions on your domain such as making attempts to log in and attempting unauthorized DNS updates. Some domain protection plans at Sangkrit.net also include billing protection, so you don’t lose your domain name in case you forget to renew it or if your credit card expires before auto-renewal.

People would still be able to contact you

Domain protection doesn’t mean that people won’t be able to get in touch with you. The protection plan makes your contact information private and assigns a proxy email address that is used in the whois record so that you can get a private email without revealing your real email address.

How to subscribe to domain name protection?

You are asked to add a domain protection plan at the time you register or transfer any domain name to Sangkrit.net. You can also add domain name protection separately anytime from your Sangkrit.net account product’s page.

There are three types of domain name protection plans you can choose from:

  1. Full Domain Protection: Keeps your personal information private on the internet plus sends you alerts when anyone or you yourself change any domain records such as name servers, etc.
  2. Ultimate Domain Protection: Provides protection of private information as well as protection towards domain expiration which means it holds your domain in case it gets expired and is not renewed on time.
  3. Domain Ownership Protection: This standalone protection works on domain names that are not generally available for privacy. Apart from this, it offers the same protection that is available under the Ultimate Ownership Protection option.

You can anytime change your domain name protection plan which means you can anytime downgrade or upgrade it to avail new features of domain privacy and protection.

Webhosting Options To Power Your Specific Business Purpose

You have already learned how many types of webhosting options are there. Now this lesson clarifies what webhosting services can be used at what specific purpose in your business. Hosting your website on a Dedicated Server is the best thing you can do but if your budget is small, many other options are also available for you.

Webhosting For New & Small Businesses

The shared hosting is cheap and can power new and small websites that just entered the internet. These hostings can be subscribed as simple cPanel Hosting or Plesk Hosting from Sangkrit.net.

Once you register or transfer your domain name at Sangkrit.net, you can subscribe to the hosting and your account will guide you how to set it up to work. The one-click application installer will auto-install WordPress and you can bring your business online yourself very easily.

Apart from this a Website Builder offers you an easier way of doing the same. It can be a choice for businesses looking for quickly building an informative website with a responsive mobile friendly design, want to sell products or receive payments online.

Webhosting For Growing Businesses

When your business grows and you start to receive good traffic, you will at least need a VPS i.e. Virtual Private Server. It offers you more resources than a shared hosting option such as cPanel and Plesk hosting, we have already discussed them above. Now VPS is something that gives you more RAM, multiple CPUs, and greater processing power so that you don’t face downtime due to a lack of resources.

Apart from VPS, WordPress Hosting is an easier option if you want a straightforward interface of preinstalled WordPress with no worries of SSL security setups, malware scanning and backups, etc.

A Managed WordPress plan can be a choice of each individual who wants to bring his business online, startup as a blogger to earn money, or want to start an Ecommerce shop. Managed WordPress is for anyone who wants to startup and grow online.

Dedicated Hosting For High Traffic Websites

A Dedicated Server is the best hosting option because on a shared hosting, the resources are shared between multiple users. A server powers multiple shared hostings that means multiple users host their websites on the same server by susbcribing to a shared hosting option.

On a VPS you get more resources as its hosting packages are more powerful but still the resources are shared.

Whereas on a Dedicated Server, all resources are allowcated only to you and that gives you more proccessing power so that your website don’t go down when a large number of requests are made in a small time.

Apart from this, Webhosting Plus is a fresh option especially created for the users who don’t have a budget of leasing Dedicated Servers or they are not use to it. Webhosting Plus offers you higher resources, with an easier interface than of a Dedicated Server and it is also cheaper than that.

Server Management Made Easy & Affordable At Sangkrit.net

A dedicated server is like your own computing machine. It is easy to use if you know how to. In olden times when people use to host a large website with heavy traffic, they use to spend thousands of dollars in setting up their own server.

Time changed and those bare metal servers came up with lease and subscription options so that anyone can subscribe to them online and host his domains.

That has made things easier, as you get a control panel such as Plesk or cPanel WHM and that can make the server manageable for everyone but not always as there are times when you get stuck in something and you only have the command line to resolve the issue. Here, Fully Managed Dedicated Server and Webhosting Plus save you from facing such issues.

Fully Managed Dedicated Servers

You won’t face such problems in Sangkrit.net because here you can subscribe Fully Managed Dedicated Server option offering you round-the-clock online support from the experts. And to make things even simpler for everyone the Webhosting Plus option is now available with a super easy control panel.

Webhosting Plus

The Webhosting Plus offers you the speed of a server accessible to you with a simple control panel as you get on a shared hosting option. This hosting is an ideal option for users who don’t have good tech skills or cannot afford a fully managed dedicated server.

This is a powerful hosting and all its plans include a one-click install option so that you can simp,y install WordPress on any domain of yours to start a business or eCommerce website. Its simple backup and restore option allows you to upload or transfer your website. Uptime is just like a server, 99.9%. Security monitoring is 24/7, SSL is free and you can easily set it up to work. You also get the benefit of daily backups to keep files and content of your website safe.

Overall Webhosting Plus is for those who don’t have any idea on how to work with servers, whose budget is limited but at the same time need a powerful hosting option.

What Webhosting Do I Need?

Web hosting provides you space for hosting your domain. It stores your website files. Sangkrit.net has hostings for everyone, from low budget offering limited resources to options that can handle very heavy traffic.

What hosting option you need depends on your budget. You are here for achieving success and for that you will certainly need a Dedicated Server at some point in time especially when your success starts. Having it beforehand can save you from issues that you will face while moving to a bigger hosting option everytime you require more RAM, more processing power and more database space because of sudden increase in traffic.

Still, if your budget is less, you may go for other hosting options based on your present time need. There are hosting options for everyone and this lesson will explain you how one differ from the other and what exactly you need as it is going to impact your website’s availability, and performance.

Cheapest Hosting Options

cPanel Starter is the cheapest hosting option that enables you to host one website. Cheapest doesn’t mean its worthless, it is good for hosting one website of any kind, the bandwidth is unmetered and storage is 30GB which is good as your first step online.

You can use it for hosting any dynamic website such as an eCommerce store or WordPress, Joomla or Magento etc.

cPanel Economy, this is second cheapest option. It lets you host one domain but gives you 10 MySQL databases, and 100 email accounts capacity. The core difference between cPanel Starter and cPanel Economy is that cPanel Starter gives you the power to host one website i.e. one domain having one database.

Whereas, cPanel Economy lets you host one domain but 10 MySQL databases which means you can create 10 websites on separate databases using a subdomain (example: sudomain.yourdomain.com) or subdirectory (yourdomain.com/subdirectory) option. You may create more websites using different table prefixes on one database. Well that you can do on cPanel Starter too if you want to host multiple subdomain or subdirectory sites on one database. But see the storage capacity of the database is limited.

cPanel Deluxe, lets you host unlimited websites which means you can add unlimited domains but the database limit is 25. That means you can either run 25 websites on 25 separate databases or host more websites (that’s what is unlimited) by using one database for multiple websites and you have 25 databases so you can run many websites here also. It lets you create 500 email accounts.

cPanel Ultimate enables you to add unlimited domains and lets you create unlimited databases. Gives you 1 year of free SSL subscription, more processing power, and 1000 email accounts that you can create on your own domain.

WordPress Hosting

Also called Managed WordPress, these hosting options lets you start your own website or online store in minutes.

They save you from the hassles of configuring and managing WordPress installations. They give you dashboard access with the power to start your website on your own without the need of hiring a web developer. They offer automatic setup, backups, and software updates paired with 24/7, online support.

The WordPress Hosting options include:

  1. WordPress Basic – Good for hosting one website with a capacity of handling 25,000 visitors a month
  2. WordPress Deluxe – One website with a capacity of handling 100,000 visitors a month
  3. WordPress Ultimate – One website with unlimited visits
  4. WordPress Ecommerce – Ideal for starting your own online shop i.e eCommerce website
  5. WordPress Developer – You can start and manage 5 different WordPress sites
  6. WordPress Pro – Lets you manage up to 25 different WordPress sites

Webhosting Plus

The Webhosting Plus offers you the simplicity of cPanel hosting with resources that you generally get on a server. It includes more dedicated resources than WordPress or cPanel hosting we discussed above.

This is a great option if you are hitting or going to hit massive traffic, you need more power and resources but at the same time, you don’t know how to manage a server and you don’t want to hire a system administrator.

It also includes multiple plans starting from 4GB RAM to 32GB RAM with the power of up to 16 CPUs:

  1. Webhosting Plus Launch – 4GB RAM with 2 CPUs
  2. Webhosting Plus Enhance – 8GB RAM with 4 CPUs
  3. Webhosting Plus Grow – 16GB RAM with 8 CPUs
  4. Webhosting Plus Expand – 32GB RAM with 16 CPUs

This hosting option is easier to manage just like other cPanel hostings.

VPS & Dedicated Servers

These give you complete control and no resources are shared with other users. A common hosting plan you purchase is located on a server running multiple hostings whereas on a dedicated server all resources are only for your use.

You can build multiple cPanel hostings, allocate resources to each hosting plan, you can decide how many domains each webhosting can have and how much server resources a website or hosting can utilize or you can simply allocate all server resources to your main website.

There various type of servers with higher-lower RAM and space options. But the subscription is of only two types: Self Managed and Fully Managed.

Self-Managed Servers: – These give you command line control. To manage this type of server you may either learn system engineering or hire a system administrator or you can simplify things for yourself by adding the cPanel WHM option.

Fully-Managed Servers: These servers come with round-the-clock dedicated online support from experts.

Subscribing a VPS or Dedicated Server is just like purchasing a computer machine. So while subscribing to a server what you should see is its RAM, storage option such as HDD or SSD, and processor.

Scheduling Sales On WordPress Ecommerce Websites

WordPress Ecommerce lets you start your own online store to begin selling your products online. You can start your eCommerce website, add your own products, price them, sell them online and collect payments via different payment gateways or simply use pay on delivery option.

It offers you many advanced features of selling, one useful feature is scheduling sales. In this lesson, you will learn about that and beyond the default scheduling feature that only lets you set the start and end date for any sale. You will see how you can extend the feature to not just schedule the sale date but also a time in hours and minutes.

How to schedule sales in WordPress Ecommerce?

The WordPress Ecommerce users at Sangkrit.net may simply log in to their eCommerce dashboard and follow these steps:

  1. Navigate to the ‘Products’ you would like to schedule sales or create a new product, whatever you need is
  2. Open it for editing if you are scheduling sales in an already listed product on your website
  3. In the ‘General’ section of the ‘Product data’ box click the ‘Schedule’ option
  4. Set your start and end date of product sale
  5. If you want to set a scheduling time too then install-activate a plugin called Precise Sales for WooCommerce
  6. Once the plugin is activated, you can also set sales time in hours and minutes in addition to the sales start and end day
Schedule Sales WordPress

This gives you a more precise way of scheduling sales, the plugin is especially helpful for stores that serve in countries having multiple timezones such as the United States.

Using The Upgraded Hostnames On Your Sangkrit.net Server

The hostnames will upgrade shortly so if you are still using legacy hostnames you will need to update them to the new format i.e. the reversal of the IP octets.

You can update the hostname for your VPS or Dedicated Server. You can do that simply by logging into your Sangkrit.net account and then following these steps:

  1. Visit your ‘My Products’ page
  2. Select ‘Servers’
  3. Next to your server click select ‘Manage’ 
  4. Select the ‘Settings’ option next to the ‘Dashboard’ section, the default page
  5. From the Server section click Change which is next to Hostname
  6. Now type or paste the new hostname in the Server Hostname field,
  7. Select Save

The hostname should meet the requirements, the server tests the hostname, and then only it accepts to save it. After you have successfully saved all the changes, the new hostname will appear in the Settings section.

Generating Access Hash To Exchange DNS Records On Your Dedicated Server

Access Hash also known as Remote Access Key is used while configuring DNS that can exchange records between servers. this key is also used on automatic account creation scripts and running external software etc.

This lesson guides you on how you can generate a remote access key in your VPS or Dedicated Server.

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. Visit WHM and search remote access key on the left-side menu
  5. Click Generate New Key
  6. The key will be generated

Now you can copy and paste the new access key to the applicable file or place it on the remote server(s) that require to transmit with your web server.

The Access Key Signature includes the first 32 characters of the remote access key, separated by colons (:). This signature can be used for quickly checking whether you used the correct access key on interfaces that display the key in a shortened format.

Why Do Real Estate Builders & Agents Must Start A Website?

Maintaining your real estate website is a long-term investment that certainly puts you ahead of your competition.

Many real estate persons invest a lot of money in business promotion and this narrows their return on investment. Having a website and blogging every day about your business is going to bring new prospects and will work as a great marketing tool.

Any real estate person can easily start his website at Sangkrit.net by registering his domain name and subscribing to Managed WordPress, hosting, or server.

Domains For Real Estate

You can start your website on more specific domain names like:

  1. .BUILDERS
  2. .REALESTATE
  3. .APARTMENTS
  4. .CONSTRUCTIONS

These domain names can be registered at Sangkrit.net.

Why Register Your Domain Name At Sangkrit.net?

Sangkrit.net is a globally trusted system that provides you with everything (to startup and grow online) in one place. You can register your domain, start your website, and start managing it yourself or hire a team of experts per hour per terminal basis.

Domains are the newest kind of private property. You are provided with complete control over your domain name. You can lock your domain name which prevents accidental or intentional transfers of domain ownership and stops anyone from redirecting your nameservers.

Domain Name Is Registered What’s Next?

Once the domain name is registered simply subscribe to Managed WordPress or you may also go for a higher level of web hosting such as Business Hosting & Servers.

After you have your domain name and WordPress. Simply log in to it to start your website. Don’t worry, the automated system of Sangkrit will guide you at each step of connecting your domain name to WordPress or any website you like to start.

The WordPress Hosting delivers automatic setup, backups, and software updates paired with 24/7 online support. Anyone can get started in a few clicks.

Growing Your Real Estate Business

As a real estate person, you don’t just need buyers and sellers. If you are a builder you will also need financial support from other investors. Here, your website will become a very good medium for attracting not only customers but investors. It depends on how your blog and whom you target with your posts. The rest is done by search engines.

Building Unbreakable Relationships With Your Clients

Your website will always be available to your customers. You can place testimonials of happy customers and encourage your clients to subscribe to your website, this you can do by making your website the first and only platform for doing business with you. You can create conditional forms allowing your customers to let you know what sort of properties they are looking for etc.

Your Prospects Are Searching For You Online

Today, every person looking up for anything is going to search for his requirements online. Even before sealing a deal with you chances are your client is going to search for your business online.

Hence, it is mandatory for you to bring your business online. And now it has become very easy and secure with Sangkrit.net because you are not only offered the cloud infrastructure but the programming support from the masters of code.

By having a website you can build an active online presence of your real estate services on the internet. You can not only showcase your past deals, future projects, and happy clients but also start networking through your blog.

Your posts will help your clients see what you are offering and how you want to connect with them and of course whenever you will plan online advertising, your website will work as a destination for your prospects otherwise where people will reach you after clicking your promotional emails or links. Do you want them to land on some other website or do you want to keep them always in your connection?

Building Your Online Store On .SHOP Domain Name

.Shop is a generaic top level domain name that anyone can register to build his store online, it is well suitable for shop owners and people who want to sell online.

You can easily register it at Sangkrit.net with WordPress Ecommerce to build your online store yourself. With these two products you don’t need anybody or anything else except some time to setup your ecommerce store.

The WordPress Ecommerce at Sangkrit.net saves you from all hassles of installation and setup, you can directly login to dashboard and start managing your website.

How To Register .SHOP Domain Name With WordPress Ecommerce?

  1. Visit http://system.sangkrit.net
  2. Type the name you wish to register with .shop extension
  3. Click the select button next to the domain you wish to register
  4. Visit WordPress Ecommerce page
  5. Select WordPress Ecommerce plan
  6. Click Proceed to Cart button
  7. Checkout

Upon successful checkout, your products will be visible on your Sangkrit.net account’s products page. There you click the ‘Manage’ button next to Managed WordPress and it will let you connect your domain name with WordPress and login to your ecommerce website.

Register Your Business As Unique Domain Name

Sangkrit.net lets you find a domain name that suits best to your business. Having your own unique domain name makes you appear more legitimate to your prospects and Sangkrit.net not only helps you in registering a perfect domain name but also enables you to build your business website, and set up a business email over it.

You must keep your domain name unique, short, and memorable. If you already own a business and it has a long name then don’t try putting the full name in your domain, instead, go for something that can be easily recalled and typed by people.

Sangkrit.net enables you to opt for many-many new TLDs than just .com and .net, etc. There has been a lot of new bringing in the number of new domain extensions such as:

There are many more profession and industry-specific domain names now available for you to register and with hundreds of new domain extensions to pick from, you can easily register the one that better describes your business to its core audience.

Sangkrit.net offers you total control over the DNS i.e you can manage your domain nameserver (DNS) records and set your email, FTP, sub-domains, wild card, and website location all from a control panel.

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.

When Multiple HTTPS Servers Listen On A Single IP Address

In SSL protocol conduct, a typical problem occurs when two or more configured HTTPS servers listen on a single IP address.

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

server {
    listen          443 ssl;
    server_name     www.yoursite.org;
    ssl_certificate www.yoursite.org.crt;
    ...
}

As shown above, what exactly happens here is that the client browser starts to receive the default server’s certificate (www.yoursite.com) regardless of the name of the server requested.

This is pushed by SSL protocol conduct. Here, the connection via SSL is made before the browser sends another HTTP request and Nginx does not know the server name requested. Hence, it may only offer the default server’s certificate.

Here’s the solution:

server {
    listen          192.168.1.1:443 ssl;
    server_name     www.yoursite.com;
    ssl_certificate www.yoursite.com.crt;
    ...
}

server {
    listen          192.168.1.2:443 ssl;
    server_name     www.yoursite.org;
    ssl_certificate www.yoursite.org.crt;
    ...
}

Above given is the ancientest and most powerful way used for resolving this issue. Here a separate IP address is assigned for each HTTPS server.

Updating Nginx Server Configuration To Use The SSL You Have Purchased

You need to update the config file on your server to use the SSL certificate you are subscribed to. This can be done by accessing the command line SSH and opening the Nginx config file for the domain you are installing the SSL certificate.

Simply run the following command:

sudo vim /etc/nginx/sites-available/yourwebsite.com

Now update the config file to use the SSL certificate:

server {
        listen 80;
        server_name yourwebsite.com;
        return 301 https://$host$request_uri;
}

server {
    listen 443 ssl;

    server_name yourwebsite.com;
    ssl_certificate     /etc/nginx/ssl/yourwebsite.crt;
    ssl_certificate_key /etc/nginx/ssl/yourwebsite.key;

    root /usr/share/nginx/yourwebsite.com/;
    index index.php  index.html index.htm;

}

The next step is to save the file using this command:

wq!

And then restart your Nginx server with this command:

sudo service nginx restart

That’s it.

Configuring SSL & Intermediate Certificates On Nginx Server

In the previous lesson, you learned about installing and configuring Nginx on your dedicated server. Now this lesson is on installing SSL and other standard certificates.

The first thing you need to do is get an SSL certificate from Sangkrit.net, once you subscribe to it and your certificate request is approved just download it to install those files on your dedicated server.

To download and install your certificate files follow these steps:

  1. Visit your Sangkrit.net product page
  2. Select SSL Certificates
  3. Select Manage next to the certificate you need to download
  4. Select a Server type
  5. Click the Download Zip File option
  6. Your certificate would start downloading now.
  7. Copy the SSL certificate file and the certificate bundle file to the Nginx server
  8. You already have a key file on the server which you got when you generated your certificate request.
  9. Now edit your Nginx configuration to reference these files

Your certificate is installed now. Remember, the actual configuration file you edit depends on your version of Nginx, your OS platform, or the method you are using to install Nginx.

Installing & Configuring Nginx On Your Dedicated Server

Nginx is a web server that is also used as a reverse proxy option. It also balances the load on your dedicated server and acts as a mail proxy as well as an HTTP cache. It is software used for high performance on your server.

This lesson will guide you in installing and configuring Nginx and for that, you are going to need the root privileges. You will also require to set up your CentOS server to use the EPEL Repository which stands for Extra Packages for Enterprise Linux.

To install EPEL simply run this command:

sudo yum install epel-release

You can read more about its configuration steps here. Earlier we installed yum as a package manager but it does not include any new version of Nginx in its default repository so installing EPEL will make sure that Nginx on CentOS remains up to date.

You are ready to install Nginx

Now you are ready to install Nginx on your server, simply run the following command:

sudo yum install nginx

Next, start Nginx:

Nginx doesn’t start on its own, so you will need to run a command for starting Nginx on your server:

sudo /etc/init.d/nginx start

To make sure Nginx is properly installed on your server, just direct your browser to your server’s IP address. If you see the words, “Welcome to Nginx”, it means you have Nginx installed and working.

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.

Installing & Configuring Apache On Your Dedicated Server

Before installing PHP or MySQL, the first thing you need to do is install Apache on your dedicated server. In order to do that you simply need to access the command line of your server and log in as the root user:

  1. Connect your server via SSH
  2. Run this command: sudo su –
  3. Enter your server password

You now have root access.

Once you have that, you can install Apache using the ‘Yum‘ command:

[root@admin]# yum install httpd
Loaded plugins: fastestmirror, langpacks
base
| 3.6 kB 00:00:00
extras
| 3.4 kB 00:00:00
updates
| 3.4 kB 00:00:00
extras/7/x86_64/primary_d
| 121 kB 00:00:00
Loading mirror speeds from cached hostfile
* base: mirror.sigmanet.com
* extras: linux.mirrors.es.net
* updates: mirror.eboundhost.com
Resolving Dependencies
--> Running transaction check
---> Package httpd.x86_64 0:2.4.6-45.el7.centos will be installed
--> Processing Dependency: httpd-tools = 2.4.6-45.el7.centos for package:
httpd-2.4.6-45.el7.centos.x86_64
--> Processing Dependency: /etc/mime.types for package: httpd-2.4.645.el7.centos.x86_64
--> Running transaction check
---> Package httpd-tools.x86_64 0:2.4.6-45.el7.centos will be installed
---> Package mailcap.noarch 0:2.1.41-2.el7 will be installed
--> Finished Dependency Resolution
Installed:
httpd.x86_64 0:2.4.6-45.el7.centos

Dependency Installed:
httpd-tools.x86_64 0:2.4.6-45.el7.centos
mailcap.noarch 0:2.1.41-2.el7

Complete!
[root@admin]#

Once Apache is installed, the next thing you need to do is configure it and then make sure it works on your server, use the following command:

[root@admin]# systemctl start httpd && systemctl enable httpd

To make sure the Apache services are running on your server:

[root@admin] sudo systemctl status httpd

This will show you an active status if the service is running on your dedicated server.

Verifying The Presence Of Required PHP Libraries On Your Dedicated Server

In the previous lesson, you have learned about getting yourself to know whether the Memcached service on your server is installed and listening to Port 11211.

Now this lesson is on checking the presence of the required PHP libraries needed to make Memcached work for you.

You can verify the installation from SSH. Another important thing is to make sure to use the same version of PHP as the website you want to use Memcached on.

On a dedicated server having WHM/cPanel with PHP version 7.3, the following command is used with the output as shown:

[root@server[~]: ea-php73 -i | grep "memcached" /opt/cpanel/ea-php73/root/etc/php.d/memcached.ini,
memcached
memcached support => enabled

Verifying Memcached service & PHP libraries are working

From the command line, telnet to the Memcached service.

[root@server ~]# telnet localhost 11211

This output will be returned, and you will be connected to the Memcached service.

Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

Enter the command stats. A full page of output will appear, but towards the middle, look for the lines STAT bytes_read and STAT bytes_written.

stats
STAT pid 6374
STAT uptime 37567
...
...
STAT bytes_read 3733268975
STAT bytes_written 6526192728
STAT limit_maxbytes 1073741824
...
...
END

When you see a big amount of data is read and written, that means Memcached is working.

Entering the command stats again is going to show changes to these values.

And when you are seeing a very tiny amount of data read and written, or the values of 0, that means Memcached is not functioning good.

stats
STAT pid 30601
STAT uptime 603941
...
...
STAT bytes_read 7
STAT bytes_written 0
STAT limit_maxbytes 1073741824
...
...
END

Use quit to return to a standard prompt.

quit
Connection closed by foreign host.
[root@server ~]#

So that is how you can know that the caching is working as expected.

Know Whether Your Server’s Memcached Service Is Listening On Port 11211

If you’re not sure whether your dedicated server‘s Memcached service is listening on port 11211 i.e. it is installed and running properly, there are some easy tests you can do to make sure everything is operating fine.

Before you start, enable the administrator access on your server (in case you have not), connect via SSH then switch to the root user.

Next, in the command line, type the following command and PRESS ENTER:

telnet localhost 11211

This will report to you back that it was able to connect to the service.

[root@server[~]: telnet localhost 11211
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

In case, if it’s not installed properly, you will see something like this:

[root@transfer[~]: telnet localhost 11211
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused

And you will not be able to connect to the service.

In the next lesson, you will learn about testing the presence of the needed PHP libraries to make Memcached work for you.

Configured Memcached PHP Libraries On Your Server, Next What?

In the previous lessons, you have learned about installing Memcached PHP Libraries and configuring Memcached Daemon on your dedicated server. Now next steps are to configure your apps and websites to use them so that you can get their real benefit.

So once you get the Memcached Daemon and PHP libraries installed on your CentOS-based dedicated server, you are required to configure your PHP application to use Memcached. In case you don’t it, Memcached is going to use your server resources without providing you any of the advantages.

Before starting, the system recommends you take a backup of your websites and then follow the changes outlined below.

WordPress users can take its benefit simply by using a plugin called W3 Total Cache Plugin. Yes, there are many other plugins as well but the system finds it best for most of its users. If in case this plugin doesn’t suit you or it is in conflict with some other plugin you are using, it that’s your case then you can choose some other plugin such as Batcache, Cachify, Memcached-Redux, etc.

In this lesson, you will learn about configuring the first and the best one i.e. W3 Total Cache. Simply start by installing-activating the plugin and then to configure, navigate to the Performance -> General Settings page.

Next, make sure the Enable tickbox is checked and Memcached is selected with the cache method for:

  • Page Cache
  • Object Cache
  • Database Cache
  • Fragment Cache

Once you do this, your website starts to use the Memcached services for imporving the performace of your website at the same time reducing the load on your dedicated server.

How Memcached Daemon Works On Your Dedicated Server?

The loading of files and code on your dedicated server take lots of its resources, this resource usage can be reduced by using an object caching system and when you do that, the performance of your server automatically increases. This happens because then your server needs fewer resources to run web applications.

Memcached is a free high-performance, distributed memory object caching system which is generic in nature. It is planned for speeding up dynamic web applications simply by alleviating your database load.

Earlier you learned about configuring the Memcached PHP Libraries on your dedicated server. Now this lesson will let you know what is Memcached and how you can easily install it on your CentOS-based dedicated server at Sangkrit.net.

On CentOS servers, installation of the Memcached daemon is performed via command line and it is freed of any control panel you may be using such as WHM or cPanel, etc.

How this all works for you?

The cache data is simply stored in the hardware units such as RAM and that can also be used in correlation with a software segment.

As we have explained before, the primary purpose of cache is to increase the retrival of information stored in the form of data by minimizing the requirment to access the lower layers of storage every time a new request is made by the client.

Yes, this data is not the actual data stored on your server but it is a subset of data copied from the databases having the real data fed by your application.

This is like when you keep actual notes in your diary or anywhere else but you remember those notes anyway in your mind. So when the time comes when you need those notes; Instead of opening your diary again and finding them you directly make use of them because you already remember them anyway.

Hence, the main advantage of caching is to speed up loading and minimize the system resource usage that is generally needed to load any request such as a web page of your website or application.