Instructions for installing EasyEngine on Linux servers​

Tutorials 0 lượt xem
This is part 2 of 7 in the full EasyEngine series

In the previous post , you already know what EasyEngine is, right?

Today’s article I will guide you to install EasyEngine. You will also learn to install the necessary components to have a WordPress website installed.

Install EasyEngine​

First, you need to prepare the following:

  • A brand new Linux server has been deployed with a copy of the Ubuntu 16.04 operating system. If you still don’t know where to rent VPS, refer to good quality cheap VPS services.
  • Using an SSH client like MobaXTerm connect to the server with the root account.
  • If the server RAM is less than 1GB, remember to create a swap according to this guide

EasyEngine installation is simple and fast. You just need to copy and paste the above command into SSH Client and then Enter: 

wget -qO ee rt.cx/ee && sudo bash ee

When installing it will ask you to enter your name and address. These information will be used when you install WordPress later: 

Install EasyEngine 1

After installing EasyEngine successfully, you will see the following message: 

Install EasyEngine 2

At this point, you have installed the core of EasyEngine. 

Next you install the necessary components to install WordPress.

EasyEngine has a command to install WordPress. When you run this command it will automatically install the necessary components like NGINX, PHP, MySQL and many more. 

But I prefer to choose the manual method of installing each component. This way, you only need to install the necessary components, avoiding the installation of things that you do not use.

​Install NGINX

Install with the following command: ​

ee stack install --nginx

When the installation is successful, you will see the following message: 

Install EasyEngine 3

You see a username/password pair. EasyEngine will provide you with some administrative tools. You can access these tools via ip:22222 in your browser.

When accessing with the above link, it will ask for user name and password. You will use this information for access. Currently we have not installed any administrative tools, so please do not rush to access.

We will cover these admin tools below. ​

Install PHP 7

To install PHP 7 run the following command: 

ee stack install --php7

When the installation is successful, you will see the following message: 

Install EasyEngine 4

Install MySQL

You use the following command to install MySQL​

ee stack install --mysql

Successful installation message: 

Install EasyEngine 5

Install WP CLI

WP CLI makes it easy to administer WordPress via the command line. Very useful you should install with the following command: 

ee stack install --wpcli

Install PhpMyAdmin

You probably know what PhpMyAdmin is, right? A database management tool with a graphical interface. 

Install it via the following command: ​

ee stack install --phpmyadmin

Install Utilities

Use the following command to install many utility tools such as: ​phpMemcachedAdmin, FastCGI cleanup script, OPcache, Webgrind, Anemometer.

Once you install it you will have caching utilities like memcached and opcache which will help speed up the installed WordPress website later. ​

ee stack install --utils

Test memcached. It’s already started: 

ps aux | grep memcached
Install EasyEngine 6

Admin Tools

Up to this point you can access and use the Admin tools at https://ip:22222. Remember to use the information when you install NGINX above.

Note: When accessing this link in the browser, you will get a Certificate error like Connection is not private. It’s okay to just skip it.

If you forgot your login information, run the following command: 

ee secure --auth

Then enter the user name and password you want. 

The interface when you visit https://ip:22222 (5 numbers 2) will look like this: ​

Install EasyEngine 8

If you feel itchy with the port with 5 digits 2, you can change the port with the following command: 

ee secure --port 1234

The number 1234 is an example. You change to the port you want. 

​Access PhpMyAdmin

​You access PhpMyAdmin at the following path: https://ip:22222/db/pma/. 

You may get the following error: ​

Install EasyEngine 7

As of PhpMyAdmin 4.7.0, it used Composer for dependency management. 

You will fix the following:

First you install Composer with the following command: ​

apt-get install composer -y

Access the folder containing PhpMyAdmin 

cd /var/www/22222/htdocs/db/pma

Run the install command 

composer install

Now you can access PhpMyAdmin. 

You can login with user name and password for each database when you install WordPress.

Or you can access with the root account of MySQL. Get this account information with the following command: ​

cat /etc/mysql/conf.d/my.cnf

Tools Adminer

​Adminer is a database administration tool. It is rated better than PhpMyAdmin. 

EasyEngine helps you to install this tool via the following command line: 

ee stack install --adminer

You can access this tool after installation at the path: https://ip:22222/db/adminer/

Conclusion

Thus, in this article you have installed EasyEngine and the necessary components.

You are now ready to install WordPress. ​

If you have any difficulty in installing EasyEngine, please leave a comment below. ​

View articles in the series

Previous Part: EasyEngine Beginner ‘s Guide Next Part: How to Install WordPress on Ubuntu Using EasyEngine

Bài viết liên quan