Web Hosting Forum Login
Not a member yet? Sign up

How to Install WordPress With Nginx and Redis cache on a VPS

  • HOME
  • FORUMS
  • WEB DESIGN
  • WEB HOSTING OFFERS
  • ADVERTISING
  • FIND A HOST
  • WEB HOSTING
  • QUICK MENU
  • REGISTER HERE - Join us for FREE
Results 1 to 23 of 23

Threaded View

  1. #1
    Join Date
    May 2016
    Location
    France
    Posts
    748
    Thanks
    65
    Thanked 221 Times in 166 Posts
    Thumbs Up/Down
    Received: 472/1
    Given: 201/0

    How to Install WordPress With Nginx and Redis cache on a VPS


    You have buy a VPS to speed up WordPress, but you are using a control panel and it’s not faster than before ? In this tutorial, you will learn how to setup a Blazing fast WordPress with Nginx php7 and redis cache.
    This will require to use the the command linux via SSH. Yes I know, it’s less user friendly than a control panel.
    But it will not require any resources after the install and we have an amazing tools to help us : EasyEngine

    So, first we will talk about what we are going to install and why it will make WordPress faster.

    Nginx : To pronounce “Engine X”, it’s the web server created in 2002, created to handle high traffic with a low memory footprint. And this is the reason which explain why Nginx is so popular at the moment. It can also be used as a reverse proxy or as a load-balancer, which means if you have few small VPS, you will be able to create a stable and reliable platform to host your website.

    php7 : I will not explain what is the php but more about the difference between the 5.6 and the 7. It’s the performance and there is nothing better than a small graphic to compare them. And WordPress is fully compatible with the latest version of php.

    Name:  How-to-Install-WordPress-With-Nginx-and-Redis-cache-on-a-VPS.png
Views: 701
Size:  90.9 KB


    MariaDB
    : If you haven’t already used it, MariaDB is a fork of Mysql from his creator, and it’s an open-source solution which is currently faster than Mysql with a lower memory and processor footprint. So no need to hesitate, if you are still using msql, even in 5.7, it’s time to move !

    Redis : What is Redis ? It’s a remote dictionary server, which will manage your database and store the values in the memory. It’s a “NoSQL” solution as Redis can be used as a database by writing data on your hard drive SSD. For WordPress there is no faster solution as it will eliminate the queries to your database, and even if you are using Mariadb, it will be faster and using less resources.

    But you are maybe thinking it will be very hard to configure all that stuff properly. No, you will be able to do it in less than 10 minutes ! Because we are going to use EasyEngine, the most powerful tools to create an optimized WordPress website.It’s a command line tool to create install and configure a complete web server with Nginx, PHP, MariaDB and Postfix in a single command.
    It also provide you the ability to manage properly your virtualhosts with Nginx and make it easy with simple command to use.

    So to start you need a VPS with Ubuntu 16.04. EasyEngine is also compatible with debian 7/8 and Ubuntu 14.04.
    But as EE has been build at first for ubuntu, it’s the most stable solution.At first we need to install EasyEngine.
    Code:
    wget -qO ee rt.cx/ee && sudo bash ee

    Done, EasyEngine is now ready to install what we need. So we are looking for WordPress with nginx, php7, redis and as it will not be harder, a SSL with let’s encrypt. But you have the choice with EE :A simple website for html :
    Code:
    ee site create example.com --html

    A website with php :
    Code:
    ee site create example.com --php
    A website with mysql :
    Code:
    ee site create example.com --mysql

    A website with SSL by let’s encrypt
    Code:
    ee site create example.com --letsencrypt

    And for WordPress ? You just have to choose :
    Code:
    ee site create example.com --wp # install wordpress without any page caching ee site create example.com --w3tc # install wordpress with w3-total-cache plugin ee site create example.com --wpsc # install wordpress with whisp-super-cache plugin ee site create example.com --wpfc # install wordpress + nginx fastcgi_cache ee site create example.com --wpredis # install wordpress + nginx redis_cache

    So for my example, I will use :
    Code:
    ee site create yourwebsite.com --wpredis --letsencrypt --php7


    You will have to enter Yes to the EE questions, and yes your wordpress with redis php7 and SSL is already installed and configured. You also have two plugins in WordPress :

    • Nginx Helper to clear the cache
    • Redis Cache : To connect WordPress with Redis and to clear the cache

    But you will maybe ask how you can connect to the database, what is the user of mysql and wordpress ?
    You can use a custom user during the install process by using–user=admin and -pass=password to set WordPress login details.
    But you can also look at the install log to find them as EE display it in the console :
    Code:
    nano /var/log/ee/install.log

    To see all the commands available with the websites :
    Code:
    ee site

    If you want to edit some default configuration (database, user etc) :
    Code:
    nano /etc/ee/ee.conf
    By default EasyEngine create a backend access with all tools you can install with it (phpmyadmin, cache, php infos) at the address : http://yourserverIP:22222To secure it properly just use :
    Code:
    ee secure --auth
    It will ask you for a user and a password. You can edit it at anytime.To edit the default port :
    Code:
    ee secure --port
    And to get the mysql user of a website :
    Code:
    ee site info yoursite.com
    So I recommend you to change the port of admin tools, and to install what you need in the following :Adminer (phpmyadmin alternative )
    Code:
    ee stack install --adminer
    phpMyAdmin :
    Code:
    ee stack install --phpmyadmin
    phpAdminRedis (to manage data in cache) :
    Code:
    ee stack install --phpredisadmin
    All the Admin tools (Adminer, phpMyAdmin, phpMemcachedAdmin, FastCGI cleanup script, OPcache, Webgrind, Anemometer) :
    Code:
    ee stack install --admin
    You have to agree this tool is really awesome. And if you look to your memory usage using htop, you will see the difference with a control panel. Your website will be faster and you have the ability to edit your configuration or to add module when you want.So to conclude this tutorial here the links you will need to understand perfectly EasyEngine and to use it for all your setup :


    You have a question ? Post a reply

  2. The Following 6 Users Say Thank You to VirtuBox For This Useful Post:
    Alex Thompson (06-26-2016),bknights (06-27-2016),Dopani (06-26-2016),Maxoq (06-26-2016),Tommy (06-26-2016),WPCycle (01-11-2017)

Newer Threads

  1. Luxin Host
    StartVM
    Replies: 25 | Views: 2202
    Last post by StartVM, Yesterday, 11:56 PM
  2. Luxin Host
    Luxin Host
    Replies: 6 | Views: 563
    Last post by Luxin Host, 06-29-2016, 11:36 AM
  3. Luxin Host
    Luxin Host
    Replies: 2 | Views: 527
    Last post by Luxin Host, 06-26-2016, 11:50 PM
  4. Luxin Host
    Luxin Host
    Replies: 8 | Views: 177
    Last post by Luxin Host, 06-27-2016, 02:49 AM
  5. bknights
    kurokood
    Replies: 15 | Views: 704
    Last post by kurokood, 08-01-2016, 12:24 PM

Older Threads

  1. wpspeedster
    Gecko
    Replies: 6 | Views: 327
    Last post by Gecko, 08-27-2016, 07:59 AM
  2. Aaron Lavers
    Luxin Host
    Replies: 6 | Views: 911
    Last post by Luxin Host, 06-26-2016, 03:59 PM
  3. Dopani
    Mujkanovic
    Replies: 4 | Views: 351
    Last post by Mujkanovic, 06-26-2016, 04:02 AM
  4. Dopani
    UWH-David
    Replies: 16 | Views: 1072
    Last post by UWH-David, 10-05-2016, 05:11 AM
  5. wpspeedster
    Gecko
    Replies: 19 | Views: 2315
    Last post by Gecko, 01-18-2017, 03:01 AM

Latest Threads

  1. Prometheus
    Prometheus
    Replies: 0 | Views: 6
    Last post by Prometheus, Today, 05:07 AM
  2. mtlmtlmtl
    RDO Servers
    Replies: 1 | Views: 19
    Last post by RDO Servers, Yesterday, 08:22 PM
  3. NuWebHosting
    NuWebHosting
    Replies: 4 | Views: 36
    Last post by NuWebHosting, Yesterday, 08:54 PM
  4. jadoinc
    austenite
    Replies: 7 | Views: 110
    Last post by austenite, Today, 12:28 AM
  5. liveinhost
    liveinhost
    Replies: 0 | Views: 35
    Last post by liveinhost, 02-25-2017, 06:01 PM

Similar Threads

  1. JerryJo
    cloudean
    Replies: 15 | Views: 1303
    Last post by cloudean, 02-02-2017, 01:19 AM
  2. roggy
    Apache vs Nginx?
    By roggy in forum Cloud Hosting
    RDO Servers
    Replies: 4 | Views: 1287
    Last post by RDO Servers, 11-19-2015, 12:23 PM
  3. pabitra
    ElixantTechnology
    Replies: 4 | Views: 927
    Last post by ElixantTechnology, 05-03-2015, 07:18 PM
  4. Ethernet Servers
    Ethernet Servers
    Replies: 2 | Views: 1115
    Last post by Ethernet Servers, 03-12-2015, 08:54 AM
  5. jdunhin
    CharlesByrd
    Replies: 1 | Views: 1494
    Last post by CharlesByrd, 03-14-2014, 12:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Web Hosting Forum

ForumWeb.Hosting is a web hosting forum where you’ll find in-depth discussions and resources to help you find the best hosting providers for your websites or how to manage your hosting whether you are new or experienced. You’ll find it all here. With topics ranging from web hosting, internet marketing, search engine optimization, social networking, make money online, affiliate marketing as well as hands-on technical support for web design, programming and more. We are a growing community of like-minded people that is keen to help and support each other with ambitions and online endeavors. Learn and grow, make friends and contacts for life.

Community

The world's smartest hosting providers come here to discuss & share what's trending in the web hosting world!
Copyright ©2017, ForumWeb.Hosting. All rights reserved. Web Hosting Forum for webmasters, web hosting providers, designers and web developers.

Welcome to Forum Web Hosting

The World's Number 1 Web Hosting Community, Reviews & Services

Log in!

Continue with Facebook
Continue With Email. By signing up you indicate that you have read and agree to the Terms of Service and Privacy Policy.

Sign in Manually

Need an account? Sign up now!