First time here? Check out the FAQ!
1

How to deploy on nginx webserver using uwsgi?

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 (http://projects.unbit.it/downloads/uwsgi-latest.tar.gz) but received some errors.

I'm also eyeing on this feature, http://bugs.askbot.org/issues/105

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

naavi's avatar
185
naavi
asked 2012-05-09 08:39:31 -0600, updated 2012-05-11 04:46:21 -0600
edit flag offensive 0 remove flag close merge delete

Comments

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 -0600) edit

@Fitoria @Pramvir Here's the error log while installing uwsgi, http://dl.dropbox.com/u/14319084/pip.log

naavi's avatar naavi (2012-05-11 04:45:20 -0600) 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 -0600) edit

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

Fitoria's avatar Fitoria (2012-05-11 10:52:30 -0600) edit
add a comment see more comments

1 Answer

2

Steps for Nginx + Wsgi setup.

  1. rename the django.wsgi to askbot_wsgi.py

  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.

Fitoria's avatar
1.1k
Fitoria
answered 2012-05-11 11:56:41 -0600, updated 2012-05-11 12:00:48 -0600
edit flag offensive 0 remove flag delete link

Comments

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 -0600) edit
add a comment see more comments