Categories
How-To

Enable HTTP/2 on Nginx

Have you enable HTTP/2 on your Nginx server? If you have not, you should.

In this article, I will show you how to enable HTTP/2 in less than 5 minutes.

Before we begin, let’s verify that it is not enabled on our website with this tool provided by KeyCDN.

HTTP/2 not enabled

If you have yet to setup SSL on your server, check out this tutorial on how you can install free SSL certificates on your servers before continuing below.

Let’s Enable HTTP/2

Edit your Nginx configuration (eg. /etc/nginx/conf.d/default.conf) with any text editor.

server {
    listen 443 ssl http2;
    ...
}

In the server block, as shown above, simply add http2 and you are done!

Now let’s verify that HTTP/2 has been enabled.

Voila!

Enable HTTP/2 on Nginx

Hope this short article helped you learned how to enabled HTTP/2 on Nginx.

If you liked this article, don’t forget to share this article with your friends and family.

Categories
How-To

Optimize PHP-FPM on Low Memory Nginx Servers

Are you running PHP-FPM on low memory Nginx servers and your services are crashing frequently?

The simplest way to resolve this problem is to upgrade your server, but not when you have a tight budget.

Databases usually take up a large portion of your memory but limiting memory usage may cause problems. However, if your website has low traffic, you will be able to limit your server’s memory usage without affecting performance.

In this article, I will show you how you can optimize PHP-FPM to reduce its memory usage without affecting performance.

Categories
How-To

Update WordPress with SELinux Enabled

We are moving to Medium! You can read continue reading this article here or at Medium.

Are you getting permission errors when you update WordPress with SELinux enabled? And facing similar errors you when you install plugins like W3 Total Cache?

You are not alone!

I had just experienced this problem and it took me several hours to realize that it is due to SELinux. But don’t be tempted to disable SELinux completely.

In this article, I will show you how you can update WordPress with SELinux enabled.

Categories
How-To

Free SSL Certificates with Let’s Encrypt for Nginx on CentOS 7

Are you paying too much for SSL certificates? Are you looking for free SSL certificates?

You can get free SSL certificates with Let’s Encrypt and deploy it with Certbot in less than 10 minutes!

In this article, I will show you how you can install and deploy SSL certificates for Nginx servers running on CentOS 7.

What is Let’s Encrypt

Let’s Encrypt is a CA (Certificate Authority) that provides free SSL DV (Domain Validation) certificates. These free SSL certificates allow websites to