Ask Your Question
1

How to deploy on nginx webserver using uwsgi?

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

rornvi gravatar image rornvi flag of India
135 7 3 14
http://naviarora.com/

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 (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.

delete close flag offensive retag edit

Comments

can you please comment your errors here ?

Pramvir ( 2012-05-09 12:49:21 -0500 )edit

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 ( 2012-05-10 15:28:44 -0500 )edit

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

rornvi ( 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?

rornvi ( 2012-05-11 07:52:13 -0500 )edit

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

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

1 Answer

Sort by ยป oldest newest most voted
1

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

Fitoria gravatar image Fitoria flag of Nicaragua
841 4 19
http://fitoria.net/

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

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.

link publish delete flag offensive edit

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.

rornvi ( 2012-05-11 23:22:50 -0500 )edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow

subscribe to rss feed

Stats

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

Seen: 513 times

Last updated: May 11 '12