Ask Your Question

How to deploy on nginx webserver using uwsgi?

asked 2012-05-09 08:39:31 -0500

naavi's avatar

updated 2012-05-11 04:46:21 -0500

I'm trying from quite a few days installing askbot on my nginx powered server (no apache backend) and still unsuccessful. I'm also not really sure if uwsgi is working correctly or not. I tried "make" on uwsgi ( but received some errors.

I'm also eyeing on this feature,

Edit: I want to install askbot as a standalone application.

edit retag flag offensive close merge delete


The easiest way to install uwsgi without worrying too much is by pypi: pip install uwsgi it will compile and everything but it might throw errors if you don't have the correct libraries installed. Could you provide details on your target scenario?

Fitoria's avatar Fitoria  ( 2012-05-10 15:28:44 -0500 )edit

@Fitoria@Pramvir Here's the error log while installing uwsgi,

naavi's avatar naavi  ( 2012-05-11 04:45:20 -0500 )edit

I needed to install python-dev package, and now uwsgi installs perfectly. Where can I find the production.ini file of uwsgi of askbot? Isn't there any index.html file in python? What else do I need to configure in nginx to deploy the askbot?

naavi's avatar naavi  ( 2012-05-11 07:52:13 -0500 )edit

@rornvi I'll answer this shorly, give me a sec.

Fitoria's avatar Fitoria  ( 2012-05-11 10:52:30 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2012-05-11 11:56:41 -0500

updated 2012-05-11 12:00:48 -0500

Steps for Nginx + Wsgi setup.

  1. rename the django.wsgi to

  2. Use this nginx config. modified with your values.

  3. For uwsgi I preffer running it with supervisor with this conf

  4. Restart all the services and see if it works if don't check the logs.

I'll prepare a more detailed guide for the oficial documentation but with this three steps and configuration files and futher reading here for more in depth information. If you have troubles with this just add a comment to the answer.

edit flag offensive delete link more


Thanks for the prompt answer, I'll try using that conf soon. And please do update this question in case you publish the detailed guide.

naavi's avatar naavi  ( 2012-05-11 23:22:50 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-05-09 08:39:31 -0500

Seen: 4,284 times

Last updated: May 11 '12