Take the 2-minute tour ×
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;
 uwsgi_pass 127.0.0.1:8889;
 }
}

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.

Thanks

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 http://packages.dotdeb.org squeeze all
deb-src http://packages.dotdeb.org squeeze all

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

deb http://packages.dotdeb.org squeeze-php54 all
deb-src http://packages.dotdeb.org squeeze-php54 all

Then fetch the appropriate GnuPG key

wget http://www.dotdeb.org/dotdeb.gpg
cat dotdeb.gpg | sudo apt-key add -

Run apt-get update

Then;

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
2  
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

 
discard

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.