Install LEMP on Ubuntu

Before we can install LEMP on Ubuntu we need to have access to the root user on the Ubuntu machine. Login to the host and make sure you are logged in or change to the “root” user. Update the OS packages. Run the below commands as the “root” user. 2. Install PHP, PHP-FPM and supporting… Read More »

How to enable gzip compression in nginx server ?

Create a file in the path (/etc/nginx/default.d) and name it as “gzip.conf” with the following contents. CentOS Now restart the nginx webserver as below sudo systemctl restart nginx Once the nginx webserver is restarted, the above configuration should take effect.

How to secure an Apache HTTP Server ?

Create a file in the below unix paths and name it as “security.conf” with the following contents. Ubuntu In /etc/apache2/conf-available CentOS In /etc/httpd/conf.d Now restart your nginx webserver. Ubuntu systemctl restart apache2 CentOS systemctl restart httpd Once the apache http server is restarted, the above configuration should take effect.