Skip to main content
Category

Linux

Fixing “Upstream Prematurely Closed Connection” Error in Nginx

By Quản trị Server, Hosting - Domain, Linux No Comments

I. Introduction Nginx is a popular and widely used open-source web server software. It acts as a reverse proxy server for HTTP, HTTPS, SMTP, and other protocols. However, like any software, Nginx is not immune to errors. One of the most common errors that Nginx users encounter is the “upstream prematurely closed connection” error. In this article, we will discuss…

Read More

Upstream prematurely closed connection while reading response header from upstream

By Linux No Comments

This problem happened because your upstream (php, php-fpm) max_execution_time is shorter than proxy_connect_timeout in your nginx proxy. For example: In my php.ini: But in mysite.conf have: Then I got in error.log of nginx: [error] 117#117: *434 upstream prematurely closed connection while sending to client…. To resolve this problem, increase your max_execution_time to 300. That all! Additional info: https://stackoverflow.com/questions/49508218/upstream-prematurely-closed-connection-while-reading-response-header-from-upstre

Read More

Hướng dẫn cài đặt Memcached trên Ubuntu 20.04 LTS

By Linux No Comments

Tổng quan Memcached là một hệ thống lưu trữ bộ nhớ phân tán mã nguồn mở đặc biệt. Những thông tin được lưu trữ trong Memcached là bản sao các đối tượng (objects) và dữ liệu được người dùng truy cập nhiều lần. Hiểu đơn giản, Memcached được sử dụng để tăng tốc các ứng dụng web động bằng cách…

Read More

Cài Sublime Text 3 trên Ubuntu 18.04

By Quản trị Server, Linux No Comments

The popular cross-platform Sublime Text editor finally offers official Linux apt repository to make it easy to install and receive update in Ubuntu. Sublime Text is a proprietary source code editor with a Python API. It supports many programming languages and markup languages, and its functionality can be extended by users with plugins. It’s available to download and use for free, but you’re supposed…

Read More