How I installed KodExplorer.

This is running on Debian 8.1. Things might be different on whatever OS/Version you’re running. I am by no means a pro. This is pieced together from everything I’ve learned.

You first have to install nginx and php

 apt install ngnix php5-fpm git

if it’s a newer version of debian or ubuntu you might have to run apt install php7-fpm

 mkdir -p /etc/nginx/ssl/ 
 cd /etc/nginx/ssl/ 

Fill out the info the next step asks. This will create a self signed cert. I’d recommend using cloudflare and use their full ssl option that way your site would have a valid ssl cert.

 openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout key -out crt 

You then have to configure the nginx site file

 mkdir /usr/share/nginx/html/ 
 cd /usr/share/nginx/html/ 
 git clone 
 chmod -Rf 777 ./KODExplorer/* 

My file is located at /etc/nginx/sites-enabled/

nano /etc/nginx/sites-enables/

Paste this into the file

server {
  listen 443 ssl http2;
  root /usr/share/nginx/html/;
  ssl_certificate /etc/nginx/ssl/site/crt;
  ssl_certificate_key /etc/nginx/ssl/site/key;
  # Add index.php to the list if you are using PHP
  index index.php index.html index.htm index.nginx-debian.html;
  location / {
    try_files $uri $uri/ /index.php?$query_string;
  # PHP FPM configuration.
  location ~* \.php$ {
    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_index index.php;
    fastcgi_split_path_info ^(.+\.php)(.*)$;
    include /etc/nginx/fastcgi_params;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

 nginx -t 

If that says test successful then your good to restart nginx.

 service nginx restart