Tips / Nginx

Archive for posts tagged Nginx Tutorial

How to Install Core Development Tools on CentOS / RHEL

Sometimes you need to use c/c++ compilers and other developers tools and you find that those binaries are not present on your CentOS box. The best way to solve almost all your developer needs is to install a group of packages that covers most popular development tools. Luckily, CentOS and RHEL Linux include a quick way […] Read more

php5-fpm.sock failed (13: Permission denied) error

I recently upgraded some PHP packages on an Cloud VPS server and since that I noticed some errors on the hosted websites. The first thing I noticed was a 502 Gateway timeout error. And after reviewing the logs I found this: [crit] 2963#0: *138 connect() to unix:/tmp/php5-fpm.sock failed (13: Permission denied) while connecting to upstream […] Read more

Nginx Location Directive

Nginx location directive is widely used in Nginx configurations, so in order to avoid website issues, first you need to understand how nginx location directive works. Syntax of Nginx location directive Syntax: location [ = | ~ | ~* | ^~ ] uri { ... } location { } @ name { ... } Context: […] Read more

How to Fix 502 Bad Gateway Error Using Nginx

Many times we can browse the web and find a 502 bad gateway error at Nginx.   There are a few reasons why you will find this message in  your webserver log, and here we will teach you how to fix it. How you might see the 502 Bad Gateway error Different websites may customize […] Read more