Skip to main content

Posts

Showing posts from June, 2019

How to setup Nginx ( LEMP Stack ) and fix Errors

Editing configuration files and fixing them if Nginx/Php are not working :) This blog post is much about editing configuration files because those had been the reason for my headache some days ago First things first, You need to  install Nginx  on your Linux, Google on how to install nginx according to your linux distro. For example I am writing this for Centos 7. Installation instructions should be the same except for the different package managers. Nginx installation $ sudo yum install epel-release $ sudo yum install nginx $ sudo systemctl start nginx $ sudo systemctl enable nginx Mariadb installation $ sudo yum install mariadb-server mariadb $ sudo systemctl start mariadb $ sudo systemctl enable mariadb Php installation ( story begins ) $ sudo yum install php php-mysql php-fpm We have to edit some files now to connect Php server and nginx so that nginx can forward files to php to process them and send the resulting static webpage to clie...