Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

[HowTo] Install WordPress and Let's Encrypt with EasyEngine on VestaCP Ubuntu Server

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
1 post • Page 1 of 1
xorro
Posts: 87
Joined: Sun Nov 13, 2016 3:11 pm
Contact:
Contact xorro
Website Skype

Os: CentOS 6x
Web: apache + nginx
[HowTo] Install WordPress and Let's Encrypt with EasyEngine on VestaCP Ubuntu Server
  • Quote

Post by xorro » Fri Sep 07, 2018 2:00 am

EasyEngine (ee) is a command-line tool for the Nginx web servers to manage WordPress sites that are running on the LEMP Stack (Linux, Nginx, MySQL/MariaDB, and PHP-FPM). EasyEngine created with python and can be installed on Ubuntu and Linux Debian distributions.

In this tutorial, I will show you step-by-step how to install and manage WordPress site using EasyEngine. We will install EasyEngine on Ubuntu 18.04 or Debian Jessie 8 server, install WordPress and enable the SSL Letsencrypt using EasyEngine command-line tool.

EasyEngine currently offers support for Ubuntu and Debian based Linux systems. In this section, we will install the EasyEngine tool on Ubuntu 18.04 and Debian 8 server using the installer script.

Install EasyEngine
Log in to the server and update all repositories.

Code: Select all

sudo apt update
Download the EasyEngine installer script and run it.

Code: Select all

wget -qO ee rt.cx/ee && sudo bash ee
The installer script will install all packages and dependencies needed.

Image

Now we will be asked about the name and an email.

Type the name and the email address.

Image

After the installation has been completed, you will get the result as below.

Image

After the installation, we need to apply the bash auto-completion for EasyEngine ee command.

Run the following command.

Code: Select all

source /etc/bash_completion.d/ee_auto.rc
And check the version of EasyEngine that has been installed.

Code: Select all

sudo ee --version
Image

The EasyEngine command-line tool has been installed on Ubuntu 18.04.

Install WordPress with EasyEngine

EasyEngine comes with some features that make WordPress easy to deploy.

EasyEngine features:

Supports for MultiSite WordPress site (through a domain-name or sub-directory).
Easy to enable cache settings for WordPress including, Memcached Nginx cache, Redis, W3 Total Cache, and WP Super Cache.
Easy to manage the server stack including basic LEMP stack, install additional packages such as phpMyAdmin, adminer, nginx pagespeed etc.

In this section, we will learn basic WordPress installation using the EasyEngine ee command. And then installing WordPress using the PHP-FPM 7.0 and enable the SSL Letsencrypt for our installation.

Install WordPress with Basic Configuration

Run the ee command below.

Code: Select all

sudo ee site create wp.hakase-labs.io --wp
When it's complete, you will get detailed info about the site, including WordPress login admin and password.

Image

And you will get the WordPress installed on '/var/www/yourdomain.com' directory and using the PHP-FPM 5.6.

Check using ee command below.

Code: Select all

sudo ee site info yourdomain.com
Image

Install WordPress with Cache Settings

EasyEngine provides automatic WordPress cache settings for the following software:

--wpfc: Nginx Cache
--w3tc: W3 Total Cache
--wpsc: WP Super Cache
--wpredis: WP Redis Cache

Install WordPress with basic Nginx cache and W3 Total Cache using the ee command below.

Code: Select all

sudo ee site create wp.hakase-labs.io --wpfc
And the following is the result.

Image

Install WordPress with PHP 7.0

By default, the ee command will force to install PHP-FPM 5.6 for our WordPress installation. And if you want to install the site with the newest version PHP-FPM 7.0, use the '--php7' option.

Run the ee command below.

Code: Select all

sudo ee site create yourdomain.com --wpfc --php7
Now check the stack details info.

Code: Select all

sudo ee site info yourdomain.com
Image

Install Wordpress with PHP-FPM 7.0, WordPress Cache, and SSL Letsencrypt

To install the WordPress using the PHP-FPM 7.0 with the WordPress Cache and SSL Letsencrypt, run the ee command below.

Code: Select all

sudo ee site create yourdomain.com --wpfc --php7 --letsencrypt
Image

And you will be asked about the SSL Letsencrypt configuration for the domain name.

Type 'y' for yes and then press Enter.

Following is the result.

Image

The WordPress installation with the PHP-FPM 7.0, SSL Letsencrypt, and Nginx Cache enabled has been completed successfully.

Additional SSL Configuration (on Ubuntu 18.04)

In this step, we will add the SSL configuration for the Nginx web server.

By default, EasyEngine stores the SSL configuration at the '/var/www/domain.com/conf' directory.

Go to the '/var/www/domain.com/conf' directory.

Code: Select all

cd /var/www/domain.com/
Now edit the Nginx configuration 'nginx/ssl.conf'

Code: Select all

vim nginx/ssl.conf
Add the 'ssl_ciphers' configuration below.

Code: Select all

ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:AES256+EECDH:AES256+EDH';
Save and exit.

Image

Now restart the EasyEngine stack using the ee command below.

Code: Select all

sudo ee stack restart
SSL configuration for WordPress site under the EasyEngine has been completed.

Image

Fix Common Errors
SSL SPDY Error on Ubuntu 18.04

Error page on google chrome.

Image

"ERR_SPDY_INADEQUATE_TRANSPORT_SECURITY".

Answer: Back to the 'Additional SSL Configuration'

Generate SSL Letsencrypt Error

Error messages:

"Unable to setup, Let's Encrypt"

Answer: By default, EasyEngine creates the nginx virtual host that contains domain name 'domain.com' and 'www.domain.com'. So make sure you've added the 'www' CNAME on your DNS configuration.
Top


Post Reply
  • Print view
1 post • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password