How To Setting NGINX For Codeigniter

Опубликовано: 17 Октябрь 2024
на канале: Ryudith Tutorial
6,957
27

How To Setting NGINX For Codeigniter :

This video show you how to setting NGINX for codeigniter, and the setting is per directory based project so you can use this configuration for another Codeigniter project. I hope this video can help you to setting NGINX for Codeigniter. :)


If you have some problems or difficulties or have some other questions then you can ask me in the comment bellow. I will try answer your questions. :)


Please consider supporting me on Patreon :
  / ryudith  


How to install NGINX on Windows :
   • How To Install Nginx 1.14 On Windows  


How to install PHP 7 with NGINX Windows :    • How To Install PHP 7 Manually On Wind...  


NGINX configuration for Codeigniter :

codeigniter project directory location : H:\work\web\codeigniter_playground\codeigniter_nginx
location /codeigniter_playground/codeigniter_nginx {
root "H:/work/web";
alias "H:/work/web/codeigniter_playground/codeigniter_nginx";
index index.php;

try_files $uri $uri/ /codeigniter_playground/codeigniter_nginx/index.php;

location ~ \.php$ {
root "H:/work/web/codeigniter_playground/codeigniter_nginx";
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
}


NGINX Beginners Book :
https://amzn.to/2HAWVDr


DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission.


#RYUDITHTUTORIAL