Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Firstly I setup nginx and uwsgi via apt-get.

And,I add the line to nginx conf file(/etc/nginx/conf.d/default.conf) like below line;

server {

 listen 80;
 server_name <replace with your hostname>;

 #Replace paths for real deployments...
 access_log /tmp/access.log;
 error_log /tmp/error.log;

 location / {
 include uwsgi_params;

I had a error;

Starting nginx: [emerg]: open() "/etc/nginx/uwsgi_params" failed (2: No such file or directory) in /etc/nginx/conf.d/default.conf:11
configuration file /etc/nginx/nginx.conf test failed

If I add uwsgi_params file from uwsgi's source;I had a simple error.


share|improve this question
If I add uwsgi_params file from uwsgi's source;I had a simple error. --> what is it? –  quanta Sep 22 '12 at 9:58
Restarting nginx: [emerg]: unknown directive "uwsgi_param" in /etc/nginx/uwsgi_params:2 –  Halit Alptekin Sep 22 '12 at 10:01
Append the output of apt-cache search uwsgi? dpkg -l | grep uwsgi to your question. –  quanta Sep 22 '12 at 10:14
post it as an answer and accept when possible. –  quanta Sep 22 '12 at 10:43

1 Answer 1

Add these two lines to your /etc/apt/sources.list file (you can also choose a mirror near you) :

deb squeeze all
deb-src squeeze all

(Optional) if you want to install PHP 5.4 on Debian 6.0 “Squeeze”, add these two lines too :

deb squeeze-php54 all
deb-src squeeze-php54 all

Then fetch the appropriate GnuPG key

cat dotdeb.gpg | sudo apt-key add -

Run apt-get update


apt-get install nginx-full

share|improve this answer
but why? What is the difference b/w nginx and nginx-full? –  zengr Oct 28 '12 at 19:46
Okay, so got the problem. I was running a old version of nginx. Getting a newer version got me uwsgi module preinstalled for nginx. –  zengr Oct 28 '12 at 20:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.