WordPress in CentOS 7 (CyberPanel, LiteSpeed)

Last revision: 26 of April of 2020

Table of contents

Here we left a small manual you of installation from an installation of basic operating system of CentOS 7 with the panel of CyberPanel management.

Present Ten that in this installation we are going to use the version of CyberPanel Enterprise that allows the use of LiteSpeed its potential yet, but with certain limitations.

Why it is valid?

  • a domain
  • limitless subdomains
  • LiteSpeed I broke

Prerequisites

Resources

  • CentOS 7
  • 1 CPU
  • 2 GB RAM
  • 20 GB SSD

The approximated price of an installation of this type can go up to around 10,00‚¬/mes.

Previous configuration

First it is to make one first update and configuration of the base of the operating system.

yum && clean all yum - and upgrade yum - and install yum-utils curl vim unzip wget yum-config-manager --inable rhui-REGION-RHEL-server-optional rhui-REGION-RHEL-SERVER-extras

Once the operating system is installed, first that we will form will be the hour of the servant. In this case we will form the hour zone of Madrid.

timedatectl set-timezone €˜Europe/Madrid€™ yum - and install NTP systemctl start ntpd systemctl inable ntpd systemctl status ntpd ntpq - p

Installation of CyberPanel

Once we have everything updated and with the hour to the day, we will form the CyberPanel.

sh < (curl https://cyberpanel.net/install.sh || wget - Or - https://cyberpanel.net/install.sh)
Initializing€¦ Valid IP detected€¦ Checking server€¦ Checking OS€¦ Detecting CentOS 7.X€¦ Checking virtualization type€¦ Checking root privileges€¦ You plows runing ace root€¦ CyberPanel Installer v1.91 1. Install CyberPanel. 2. Addons and Miscellaneous 3. Exit. Please to enter to number [1-3]:

We will choose option €œ1€.

CyberPanel Installer v1.91 RAM check: 85/2001MEGABYTE (4,25%) Disk check: 2/20GB (13%) (Minimal 10GB free space) 1. Install CyberPanel with OpenLiteSpeed. 2. Install Cyberpanel with LiteSpeed Enterprise. 3. Exit. 

In this case, we will choose option €œ2€.

Please notices that your server there are 2001 RAM If you plows using Free Start license, It will not start due to 2GB RAM limit. If you do not have any license, you dog also uses trial license (if server there are not used trial license before), type TRIAL serial Please input your number for LiteSpeed WebServer Enterprise:

At this moment we will write the license that they have given us from CyberPanel. It has a format similar to.

Serial The to number you input is: xxxx-xxxx-xxxx-xxxx Please verify it is correct. [y/N]

And we will write €œand€.

License key set€¦ Press Enter to continues with stable version of CyberPanel, or Please to enter beta and then press Enter to install CyberPanel with Python 3. CentOS 8 will autoamtically proceed with Python 3 branch.

And we will beat €œto enter€.

Does Please choose to use default admin password 1234567, randomly generates one to you (recommended) or specify the admin password? Choose [d] fault, [r] andom or [s] ET password: [d/r/s]

The best thing will be to execute a key random and to point it or to give the one him that we want. In this case we will press the €œr€ and we will point the password that it generates to us (it will give it to us at the end of the installation), since it will be necessary for more ahead.

Admin password will sees provided eleven installation is completed€¦ Do you wish to install Memcached extension and backend? Please select [Y/n]:

We will tell him that we will not install Memcached. Therefore we will put €œn€.

Do you wish to install Redis extension and backend? Please select [Y/n]:

In this case yes that we want to install Redis for our WordPress. For that reason we will beat €œand€.

Would you like to set up to WatchDog (beta) for Web service and Database service? The watchdog script will sees automatically started up after installation and server reboot If you want to kill the watchdog, run watchdog kill Please type YES or not (with captical Y):

This system serves so that it warns to us of possible falls of the servant. In principle he is interesting to have him. For that reason we will write €œYES€.

Installing necessary components€¦

After a few minutes (approximately about 10 minutes) we will completely have the installed system.

CyberPanel Successfully Installed Current Disk usage: 6/20GB (33%) Current RAM usage: 154/1829MEGABYTE (8,42%) Installation tricks out of: 0 48 6 hours min ESA Visit: https://10.0.0.1:8090 Panel username: admin Panel password: xxxxxxxxxxxxxxxx WebAdmin console username: admin WebAdmin console password: xxxxxxxxxxxxxxxx Please change your default admin password If you need to reset your panel password, please run: adminPass YOUR_NEW_PASSWORD If you change mysql password, please modify cases out in /etc/cyberpanel/mysqlPassword with new password ace well Website: https://www.cyberpanel.net Forums: https://forums.cyberpanel.net Wikipage: https://docs.cyberpanel.net Enjoy your accelerated Internet by CyberPanel & LiteSpeed Enterprise

If your supplier of hosting has firewall, while it settles, remembers to open port 8090 for TCP/UDP, since it will be the port by defect of the CyberPanel.

If your to provider there are to network-level firewall for Please make sure you have opened following port both in/out: TCP: 8090 for CyberPanel TCP: 80, TCP: 443 and UDP: 443 for to webserver TCP: 21 and TCP: 40110-40210 for FTP TCP: 25, TCP: 587, TCP: 465, TCP: 110, TCP: 143 and TCP: 993 for mail service TCP: 53 and UDP: 53 for DNS service Would you like to restart your server now? [y/N]:

Once it is installed, we can reinitiate everything so that it remains active. For that reason we will write €œand€. This will do reboot of the machine (if you are connected by SSH disconnects to you).

After some seconds you can try to accede from your navigator of Internet to followed direction IP of port 8090. He will be something like thus:

https://10.0.0.1:8090/

You will be able to accede with the user €œadmin€ and the password that it has given you.

What you will be in the panel?

Then practically all the services that can give a complete hosting you. Data base, DNS, FTP, Backup copies, E-mail, SSL, PHP, Security€¦

WordPress in CentOS 7 (CyberPanel, LiteSpeed)

The first that we will do will be to go to the section of Users and To modify user there, selecting user €œadmin€. we will fill up the data and our account of mail, having also changed the password.

WordPress in CentOS 7 (CyberPanel, LiteSpeed)

The following thing will be that the own servant does of servant DNS. This step can be complex according to your domain name register. First that we will do will be to accede to section DNS and there To create Nameserver.

The objective is to create an entrance ns1.example.com and ns2.example.com (with your domain) that aims at the IP that has given the servant you (in the example it will be 10.0.0.1).

WordPress in CentOS 7 (CyberPanel, LiteSpeed)

The following thing will be to go to your recorder of domain and to create the corresponding Glue Record. The idea is that there also you create the NS1 and NS2 aiming at the same IP.

WordPress in CentOS 7 (CyberPanel, LiteSpeed)

Once you have it, you can go to your domain, and put the DNS to him that we finished creating: ns1.example.com and ns2.example.com.

WordPress in CentOS 7 (CyberPanel, LiteSpeed)

The following thing that we will do will be to create a website. for it we will need a valid domain and that the DNS aim at the IP of your machine (in the example, 10.0.0.1). If your hosting offers gratuitous DNS to you, you can use them, although he is better to use the own system of the servant.

Now that already we have it, we will go to section DNS and we formed the same DNS as entrances by defect.

WordPress in CentOS 7 (CyberPanel, LiteSpeed)

Before creating a site, first that we will do it is To modify the Package by defect so that he is rather limitless than it is. For it we will go to Packages and To modify package, selecting the only one that appears.

WordPress in CentOS 7 (CyberPanel, LiteSpeed)

In order to continue creating all the elements, the following thing will be to create the website with the chosen domain. For it we will go to Website and in Creating Website. There we will fill up the data of the domain and an account of main mail where to receive messages (not yet it can be of the own domain).

WordPress in CentOS 7 (CyberPanel, LiteSpeed)

The following thing that we can do is to create a mail account. For it we will go away to the section of Email and To create Email.

WordPress in CentOS 7 (CyberPanel, LiteSpeed)

Once created, we can accede there from Email and in Webmail. it remembers that to accede you have to indicate the comleta direction of the mail and its password.

WordPress in CentOS 7 (CyberPanel, LiteSpeed)

Now that we have an account of mail and the created site, we can accede to install our WordPress. If we entered the direction of our https://example.com/ site, so far, we will see a screen that says that the site is active, but is nothing no installed.

WordPress in CentOS 7 (CyberPanel, LiteSpeed)

Once we have the created site, we can go to the listing of websites, where we will find our domain and a connection To manage.

WordPress in CentOS 7 (CyberPanel, LiteSpeed)

When acceding to the panel of the site, we will have a pile of quite intuitive options to understand what means.

WordPress in CentOS 7 (CyberPanel, LiteSpeed)

The fastest and simple option is to use the one-click to installer that there is at the end of the page. This will allow us to create all the necessary one without needing doing it manually (the basic configuration and data base).

It will request some data to us for the creation of the site (Name of the Site, user, password, mail€¦)

WordPress in CentOS 7 (CyberPanel, LiteSpeed)

And already it is! Now we have the site installed in that domain with the data that we have put.

WordPress in CentOS 7 (CyberPanel, LiteSpeed)

It remembers that there are to form plugin of the LiteSpeed Cache as well as possible to obtain some perfect results. In addition, also the Backup copies and other elements so that your WordPress is safe.

In order to make a performance test with certain sense (similarity to which it could really be a site) we will use the system of Visual Test in which several examples of contents are included (texts, images, tweets, videos of Youtube€¦).

Test of load and yield

Testing of load (you can see the results in WebPageTest), you will see that the TTFB is among 0,05s and 0,10s and the renderizado time of 0,04s to 0,06s. Why finally it takes more in loading (near 2,5s in the first visit)? In the majority of cases all the errors (to call it somehow) must to external elements.

WordPress in CentOS 7 (CyberPanel, LiteSpeed)

If we took a URL in which there is image but external nonelements, we will see that the thing changes enough€¦ In this case, seeing the results of WebPageTest, you can see that the load of the page becomes in 0,8s, having a TTFB of 0,08s; even, it depends on conexi³na Internet, is possible to be loaded much less in time, like 0,6s, as they are possible to be seen in these results of WebPagetest.

If we make a test with LoadImpact, we have of average the response time is of 300ms-350ms. This analysis is quite brief and with a maximum of 25 concurrent users.

WordPress in CentOS 7 (CyberPanel, LiteSpeed)

Although we can remove some data more with the analysis from BlazeMeter. In this case it is an analysis that lasts 4 minutes with 50 concurrent users. The average times, as they also are possible to be seen, also make the rounds between 300ms-350ms without the consumption raises in excess.

WordPress in CentOS 7 (CyberPanel, LiteSpeed)
WordPress in CentOS 7 (CyberPanel, LiteSpeed)

Without a doubt this system, with so few resources, gives to mount a very powerful site, with many possibilities and very cheap.