设为首页 收藏本站
查看: 911|回复: 0

[经验分享] How to Install WordPress with EasyEngine on Ubuntu-Arnold

[复制链接]

尚未签到

发表于 2019-2-19 06:03:35 | 显示全部楼层 |阅读模式
  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.
Prerequisites

  •   Ubuntu 18.04 or Debian Jessie 8 Server
  •   Root privileges
  •   A domain name
What we will do?

  •   Install EasyEngine on Ubuntu 18.04
  •   Install WordPress and Letsencrypt with EasyEngine
  •   Additional SSL Configuration (Ubuntu 18.04)
  •   Testing
  •   Common Error
Step 1 - Install EasyEngine
  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.
  Log in to the server and update all repositories.
  sudo apt update
  Download the EasyEngine installer script and run it.
  wget -qO ee rt.cx/ee && sudo bash ee
  The installer script will install all packages and dependencies needed.
DSC0000.png

  Now we will be asked about the name and an email.
  Type the name and the email address.
DSC0001.png

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

  After the installation, we need to apply the bash auto-completion for EasyEngine ee command.
  Run the following command.
  source /etc/bash_completion.d/ee_auto.rc
  And check the version of EasyEngine that has been installed.
  sudo ee --version
DSC0003.png

  The EasyEngine command-line tool has been installed on Ubuntu 18.04.
Step 2 - 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.
  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.
DSC0004.png

  And you will get the WordPress installed on '/var/www/wp.hakase-labs.io' directory and using the PHP-FPM 5.6.
  Check using ee command below.
  sudo ee site info wp.hakase-labs.io
DSC0005.png

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.
  sudo ee site create wp.hakase-labs.io --wpfc
  And the following is the result.
DSC0006.png

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.
  sudo ee site create wp.hakase-labs.io --wpfc --php7
  Now check the stack details info.
  sudo ee site info wp.hakase-labs.io
DSC0007.png

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.
  sudo ee site create wp.hakase-labs.io --wpfc --php7 --letsencrypt
DSC0008.png

  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.
DSC0009.png

  The WordPress installation with the PHP-FPM 7.0, SSL Letsencrypt, and Nginx Cache enabled has been completed successfully.
Step 3 - 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.
  cd /var/www/domain.com/
  Now edit the Nginx configuration 'nginx/ssl.conf'
  vim nginx/ssl.conf
  Add the 'ssl_ciphers' configuration below.
ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:AES256+EECDH:AES256+EDH';  Save and exit.
DSC00010.png

  Now restart the EasyEngine stack using the ee command below.
  sudo ee stack restart
  SSL configuration for WordPress site under the EasyEngine has been completed.
DSC00011.png

Step 4 - Testing
  Open the web browser and type the WordPress URL installation, mine is: http://hakase-labs.io/
  And you will be redirected to the https connection and shown the default WordPress home page with the 'twentyseventeen' theme as below.
DSC00012.png

  Now open the WordPress login page, mine is: http://hakase-labs.io/wp-login.php
  Type the username and password given during the installation.
DSC00013.png

  And you will get the WordPress dashboard.
DSC00014.png

  Installation and configuration of the WordPress site with Cache Configuration and SSL Letsencrypt using EasyEngine on Ubuntu 18.04 or Debian Jessie 8 have been completed successfully.
Step 5 - Common Errors
SSL SPDY Error on Ubuntu 18.04
  Error page on google chrome.
DSC00015.png

  "ERR_SPDY_INADEQUATE_TRANSPORT_SECURITY".
  Answer:
  Back to the 'Step 3 - 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.
Reference

  •   https://easygngine.io/



运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-674026-1-1.html 上篇帖子: How to Install Nextcloud with Nginx on Ubuntu 18.0-Arnold 下篇帖子: How to install MediaWiki on Ubuntu 18.04 LTS-Arnold
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表