Posts for CentOS Category
Deny executing a script in Nginx

Deny executing a script in Nginx

If you have a web server running on Nginx and have a directory which accepts uploading files either from user OR cms. It is always good to have a bit of protection from the server side to deny executing scripts like PHP in that directory. Its quite easy to do that. Just add the following line to the server block of the configuration file(nginx.conf or conf.d/default.conf etc). In the example below i want to deny script execution in contents directory, which will have sub directories etc.

location ^~ /contents/ { }

...
How to install PHP-fpm and MariaDB in CentOS 7
CentOS & Database & Linux & PHP

How to install PHP-fpm and MariaDB in CentOS 7

In the last article we installed Nginx in CentOS 7. In this article we will extend our previous how-to and add how to install...

How to install Nginx in CentOS 7

How to install Nginx in CentOS 7

Nginx is a web server like Apache. I will not go to which is better and why one should use it. Google is your...

Create swap in Linux VPS

Create swap in Linux VPS

Some time your VPS provider wont create swap by default when they launch a new VPS for you. Swap play important role in cache...

WordPress HTTP Error on Nginx
CentOS & Linux & PHP

WordPress HTTP Error on Nginx

It happened to me few days back when i try to upload an image via WordPress media library over 1MB of size. WordPress would...

Mount CentOS Server via SSH in File Manager

Mount CentOS Server via SSH in File Manager

There are ways to mount the server via SSH, the one which is common is via FTP application by SFTP protocol. Which is ok...

Page 1 of 212
×