TECH / ARCHIVE

Servers & Websites

TECH / Servers & Websites 3 min

Nginx Error Log: upstream response is buffered to a temporary file – Causes and Fix

When checking Nginx logs, you may occasionally come across a long warning: an upstream response is buffered to a temporary file. The site still loads normally, yet that line in error.log makes you wonder whether something is wrong with your configuration.

Diagram showing Nginx reverse proxy buffering between backend and client

In short: this is not an error, but a standard notice saying that the backend response did not fit into Nginx’s RAM buffers, so the server temporarily spilled the remainder to a file on disk.

Read full article →

TECH / Servers & Websites 2 min

PHP Fatal Error: Call to Undefined Function gzinflate() – How to Fix

The error Fatal error: Call to undefined function gzinflate() (along with gzdecode() or gzuncompress()) means PHP was built or installed without the zlib extension. It most often shows up when moving a site onto a minimal VPS, FreeBSD server, or custom Docker image.

PHP logo

Checking whether the module is loaded takes one command, and enabling it usually takes just a couple of minutes.

Read full article →

TECH / Servers & Websites 4 min

PHP Warning: date(): It is not safe to rely on the system’s timezone settings — How to Fix

I set up a new server with PHP 5.3.2 and its newly laid-out php.ini, and warnings immediately started showing up on the sites:

Warning: getdate(): It is not safe to rely on the system's
timezone settings. You are *required* to use the date.timezone
setting or the date_default_timezone_set() function. In case you
used any of those methods and you are still getting this warning,
you most likely misspelled the timezone identifier. We selected
'Europe/Helsinki' for 'EEST/3.0/DST' instead in ...

PHP 5.3 Warning: date() — fixing date.timezone in php.ini

The same warning comes from date(), mktime() and strtotime(): in its older form it looks like Warning: date() [function.date]: It is not safe to rely on the system’s timezone settings. The cause is the same every time: starting with PHP 5.3 you have to set the timezone explicitly. It takes a minute to fix — here are three ways.
Read full article →

TECH / Servers & Websites 3 min

Google Sidewiki: How Google Tried to Build a Universal Comment Layer for the Web — and Why It Failed

Back in March 2010, a new button called Sidewiki appeared under “Experimental features” in my Google Webmaster Tools dashboard (now Google Search Console). Curious about what Google was up to, I decided to test how it worked — and why the search giant wanted to overlay its own comment section on top of every website on the internet.

Google Sidewiki section inside Google Webmaster Tools dashboard (March 2010 screenshot)Archive screenshot (March 2010): the Sidewiki (“WikiComments”) tab inside Google Webmaster Tools.

Read full article →