I'm trying to set up Nginx to serve CodeIgniter as per the official docs: https://www.nginx.com/resources/wiki/start/topics/recipes/codeigniter. The problem is, I have no clue what the directive fastcgi_pass 127.0.0.1:9000
is supposed to do. I mean, there's nothing running on port 9000 on my machine (or is there? How can I be sure?). How do I set this up?
Asked
Active
Viewed 330 times
0

ankush981
- 257
- 2
- 4
- 11
1 Answers
2
The fastcgi_pass 127.0.0.1:9000
is a directive that lets NGINX know that it has to pass the requests to the PHP Fast CGI processor. For this directive to work you will have to install the PHP-FPM module and configure it.

sridhar pandurangiah
- 763
- 2
- 11
- 29
-
Thank you. Can you point me to a tutorial or something that shows how to configure PHP-FPM for this case? – ankush981 Aug 11 '17 at 05:39
-
What is your Operating System? – sridhar pandurangiah Aug 11 '17 at 06:53
-
I'm on Ubuntu 16.04 – ankush981 Aug 11 '17 at 06:54
-
https://www.howtoforge.com/installing-nginx-with-php5-fpm-and-mysql-on-ubuntu-14.04-lts-lemp – sridhar pandurangiah Aug 11 '17 at 06:59