Nginx

How To Update to PHP 7.4 Ubuntu 16.04 Drupal 7 Nginx

I was facing problems with some Drupal modules not being supported, before upgrading to PHP 7.4 version.   As I had running Ubuntu 16.04 server with Nginx and PHP 7.0 FPM on in I felt a bit afraid performing a live update and decided to…

How To HTTPS Secure Drupal 8 Running Nginx with Let's Encrypt on Ubuntu 18.04

Let's Encrypt have done some very good job, providing SSL certificates that everyone can use absolutely for free. Encrypted HTTPS websites should be default in 2020. I have been implementing HTTPS secure websites for years. Until now I…

How To Enable Google Adsense ads.txt file for Drupal on Nginx

Around early September 2019, in my Google AdSense dashboard, I noticed a warning informing me to create a separate ads.txt file.  I followed the on-screen instruction and did what was asked. After two months (at the start of November) I…

How to block visitors from country NGINX + GeoIP Module

There are a couple of reasons why website administrators consider blocking visitors from particular countries or regions accessing websites, the most common reason probably is hacking/hacking attempts.  One really nasty way how website…

How To Fix "gzip is failing for js files" Nginx

From Drupal Reports status page I noticed gzip is failing for js files error The web servers configuration will need to be adjusted. In most cases make sure that the webroots .htaccess file still contains this section "Rules to correctly…

How To Redirect in Nginx all Domain Name Versions to https://www

As you might already know search engines (Google) sees www.domain.com and domain.com as two separate domain names. If you are not using 301 redirects (www to non-www or vice verse)you might get penalized for duplicate content.  In Ngnix,…

How To Fix: Error: Call to undefined function curl_init()

After upgrading from Ubuntu 12 to Ubuntu 16 I discovered an error for Drupal website sending e-mails using Mailsystem + Postmark here is the error code: Error: Call to undefined function curl_init() in Mail_Postmark->send() (line 322…

Postfix Send Only SMPT Mail for Drupal 8 on Ubuntu 16.04, Nginx

If you have recently installed a fresh Drupal 8 site on Ubuntu 16.04 with Nginx running on it and you are getting Unable to send e-mail. Contact the site administrator if the problem persists notice after submitting contact form, you are…

How To Password Protect Your site with Nginx on Ubuntu 14.04

I was working on a new customers website, and I was looking for ways to showcase current development stage to the client, meanwhile hiding contents from others. Sounds familiar? In this server series guide I will provide info how to set up…

How to Upgrade from Ubuntu 12.04 to 14.04 LTS

In this article I will provide simple instructions on how to upgrade Ubuntu 12.04 to 14.04.  In fact I didn't wanted to push for a server upgrade for a while, but decided to do it now, and not to wait when things will break completely. In…