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/site.com 
 cd /etc/nginx/ssl/site.com 

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/site.com 
 cd /usr/share/nginx/html/site.com 
 git clone https://github.com/kalcaddle/KODExplorer.git 
 chmod -Rf 777 ./KODExplorer/* 

My file is located at /etc/nginx/sites-enabled/site.com

nano /etc/nginx/sites-enables/site.com

Paste this into the file

server {
  listen 443 ssl http2;
  root /usr/share/nginx/html/site.com/KODExplorer;
  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;
  server_name site.com;
  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