i'm using debian sid (sid is like bleeding edge for debian) and have followed so many guides, but i wonder if there's something that works out of the box.
Currently doing the compile routine, which is a bit tedious for me. I just want to get up and running, i've done compiling of nginx and installing php5-fpm. I got the welcome screen of nginx.
I was able to configure it to install in /usr/local/sbin and have run the process, then i can't figure out where the www root directory is located.
Has anyone done this before?
asked Sep 19 '11 at 08:18
I finally got nginx running:
My OS currently is the ubuntu-based linuxmint 12.
Instead of compiling the server advised by some nginx tutorials, I got the dotdeb.org and installed nginx using
Additional notes for ubuntu/ubuntu based (i.e. linuxmint) users
For the howtoforge nginx+php5-fpm on ubuntu/debian - (http://www.howtoforge.com/installing-php-5.3-nginx-and-php-fpm-on-ubuntu-debian) some things are out of date like the dotdeb libkrb5 package (which is needed for solving some dependencies)
If you're following how to forge, in the part where you wget libkrb in the howtoforge tutorial is outdated as right now the current version is 1.9.1 for ubuntu systems. It is no longer the correct version for the latest versions of ubuntu based distributions (linuxmint 12 in my case).
my sample nginx.conf found in /etc/nginx/nginx.conf
This answer is marked "community wiki".
In Nginx, you define a server block in your config file like:
This means that you php files should be in the directory /var/www/www.example1.com and assumes that php-fpm runs on port 9000 (which is the default?).
Here's the wiki page for configuration with some full examples that you can play with: http://wiki.nginx.org/Configuration