Category Archives: Nginx

How to Disable Nginx logs on your server

Nginx Web Server is one of the two most broadly utilized web servers on the planet. It has been rigid to his position from the past fifteen years as a perfect web server application. Nginx is a web server that focuses on performance and low memory usage. It is as of now one of the […]

Redirect all HTTP requests to HTTPS for Nginx

To add redirect for all HTTP requests to HTTPS, we need to add Nginx Redirect rules to the nginx config file. The server block for http requests should look like : ## our http server at port 80 server { listen default; server_name; ## redirect http to https ## rewrite ^ https://$server_name$request_uri? […]

How to increase PHP file upload limit with PHP FPM and Nginx

If while uploading a file you get an error with the following text in it : “client intended to send too large body:” You can fix this error by increasing the PHP File-Upload Limit as following : Step 1: Open php.ini file nano /etc/php5/fpm/php.ini And update ‘upload_max_filesize’ and ‘post_max_size’ values upload_max_filesize = 150M post_max_size = […]

WordPress Multisite with Nginx

If you are setting up a WordPress multisite, you might notice that the WordPress install displays the Apache settings for the .htaccess file, but does not provide any settings for Nginx. How to setup WordPress Multisite Open the wp-config.php file and add the following line /* Multisite */ define(‘WP_ALLOW_MULTISITE’, true); Select the type of Multisite […]

How To Install (LEMP), Linux, nginx, MySQL, PHP stack on Ubuntu 12.04 L – Linux E – Nginx (Pronounced Engine-X) M – MySQL P – PHP Step 1 Log in to your Linux server with the root user. This has taken care of the ‘L’ of LEMP. Step 2 Next we will update all the softwares to the latest versions sudo apt-get update Step 3 Install […]