Easy Way to Install Faster and Secure WordPress on Ubuntu

To install WordPress on an Ubuntu server many steps must be done. Starting from installing the web server, PHP engine, database, and WordPress itself. To be more secure we need to install SSL for example SSL from Let’s Encrypt. Meanwhile, to speed up WordPress access speed we add a cache like Redis cache. Finally install a monitoring system to monitor server performance.

All the steps to install and configure WordPress certainly takes quite a long time. Not to mention if something goes wrong in the configuration. To simplify and speed up the installation and deployment of WordPress we can use the DevOps tool for WordPress called WordOps.

*0.About WordOps*

WordOps is an essential tool set that eases WordPress site and server administration. WordOps provide the ability to deploy a blazing fast and secured WordPress with Nginx by using simple and easy to remember commands. Forked from EasyEngine v3, it”€™s already much more than an up-to-date version of EEv3 with several new features including Let”€™s Encrypt wildcard SSL certificates with DNS API validation support, Linux kernel optimizations or a new custom Nginx package with TLS v1.3 and Cloudflare HTTP/2 HPACK support.

-Key Features-

· Easy to install: One step automated installer with migration from EasyEngine v3 support · Fast deployment: Fast and automated WordPress, Nginx, PHP, MySQL & Redis installation · Custom Nginx build: Nginx 1.16.1 “€“ TLS v1.3 Cloudflare HTTP/2 HPACK & Brotli support · Secured: Hardened WordPress security with strict Nginx location directives · Powerful: Optimized Nginx configurations with multiple cache backends support · SSL/TLS: Domain, Subdomain & Wildcard Let”€™s Encrypt SSL certificates handled by acme.sh · Monitoring: Live Nginx vhost traffic with ngx_vts and server monitoring with Netdata · Modern: Strong ciphers_suite, modern TLS protocols and HSTS support (Grade A+ on ssllabs)

-Stacks-

· Nginx: Nginx v1.16.1 with TLS v1.3, Cloudflare HTTP/2 HPACK and Brotli support · PHP: PHP-FPM 7.2 & 7.3 · MariaDB: MariaDB Server 10.3 with mariadb-backup for non-blocking database dump · Redis: Redis-server 5.0 for WordPress full-page cache and object-cache · WP-CLI: WP-CLI for WordPress setup and plugins pre-configuration · Netdata: Netdata for real-time Nginx, PHP-FPM, MySQL & Redis monitoring · Git: Git for configuration versioning with rollback if needed · phpMyAdmin: phpMyAdmin for MySQL databases management, Adminer also available

*1.Requirements*

-Hardware-

· Minimum: 100MB Storage 512MB RAM · Recommended: Multi-core CPU, 20GB SSD Storage, 2GB RAM

-Software-

The following operating systems are supported:

· Ubuntu: 16.04 LTS x86_64, 18.04 LTS x86_64, 19.04 x86_64 · Debian: 9 x86_64, 10 x86_64 · Raspbian: 9 armv7, 10 armv7

*2.Install WordOps*

Download installer script and run it.

[INPUT]

1 wget -qO wo wops.cc && sudo bash wo

Install WordOps

Enable bash-completion.

[INPUT]

1 source /etc/bash_completion.d/wo_auto.rc

Install main stack.

[INPUT]

1 wo stack install

Install WordOps Stack

Save your username and password to login to the WordOps dashboard.

*3.Install WordPress site*

Install WordPress for the laradev.web.id domain.

[INPUT]

1 wo site create laradev.web.id –wp

WordOps Create Site

Save your username and password to login to the WordPress dashboard.

Test the results of the install by browsing the domain.

WordPress with HTTP

*4.Update WordPress site*

-Install SSL certificate (HTTPS)-

Because it’s still HTTP, secure the website by adding SSL (HTTPS).

[INPUT]

1 wo site update laradev.web.id –le

WordOps Site Update SSL

Browse the domain to test the HTTPS protocol. The website must redirect automatically from HTTP to HTTPS.

WordPress with HTTPS

-Install Redis cache-

To speed up website access install Redis cache.

[INPUT]

1 wo site update laradev.web.id –wpredis

WordOps Site Update Redis

Redis service verification.

[INPUT]

1 netstat -tulpn | grep redis

Redis service

Check the Redis configuration in the WordPress dashboard, Settings-> Nginx helper.

Redis configuration

*5.WordOps Dashboard*

Login to WordOps dashboard for system monitoring.

WordOps dashboard

Netdata dashboard

*6.Useful links*

· Project site: https://wordops.net · Github repository: https://github.com/WordOps/WordOps · Forum: https://community.wordops.net/ · Documentation: https://docs.wordops.net/ · Twitter: https://twitter.com/WordOps_ · Mastodon: https://mastodon.top/@WordOps

Leave a Reply

Your email address will not be published.