We keep the blog updated regularly with best practices, how-to guides, tips, and trends on various technologies. Learn more about how we deal with problems, our solutions, and overall services.

Configure OpenERP with NGINX and GUNICORN

NGINX (engine x) is an open source web server and a reverse proxy server for HTTP, SMTP, POP3, and IMAP protocols.

Gunicorn ‘Green Unicorn’ is a Python WSGI HTTP Server for UNIX.

Lets configure OpenERP with NGINX and GUNICORN.

To start with installing NGINX.

sudo apt-get install nginx

It is also running on default port 80.

Now lets install Gunicorn by following command.

sudo apt-get install gunicorn

Now we have to create Certificate and SSL Key.
It will asked user to input passphrase.


You can remove passphrase by performing following actions:


Now generate certificate and signed it.



Create site configuration file for NGINX.

Creating this symbolic link : /etc/nginx/sites-enabled

sudo ln -s /etc/nginx/sites-available/openerp /etc/nginx/sites-enabled/openerp

After that restart nginx:

sudo service nginx restart

Require changes for gunicorn. You can find file on this path : /server/


bind: OpenERP address with port
workers: No. of instance required to create

Now start OpenERP with Gunicorn.


You can see no. of process execution.


Now, you are able to access OpenERP with GUNICORN and NGINX.


  • Max says:

    Nice tutorial. but something not work for me, i always get the error:
    File “”, line 23, in
    import openerp

    have you any idea how i can fix this?

  • Max says:

    ImportError: No module named openerp

    is the rest of this message…

  • Cubic ERP says:

    Update your the PYTHONPATH like to next:



  • Thomas says:

    Failed to read config file: /tmp/openerp/
    Traceback (most recent call last):
    File “/usr/lib/python2.6/site-packages/gunicorn/app/”, line 51, in load _config_from_file
    execfile_(filename, cfg, cfg)
    File “/tmp/openerp/”, line 43, in
    AttributeError: ‘module’ object has no attribute ‘server’

    any ideas?

  • Swapnil says:

    Nice Turorial can you explain how to demonized the gunicorn process in this tutorial you manually run the openerp using gunicorn command

Leave a Reply

Your email address will not be published. Required fields are marked *

Following Acespritech Solutions Pvt Ltd
Facebook Pagelike Widget
Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 145 other subscribers

  • corporateinvestigatordelhi
  • webinarstarterblueprint
  • primeworks
  • envisionfuture
  • webdevelopmentcompanyusa500104195
  • brian2010
  • Mounzer
  • seoexpertdesign
  • sergo75
  • satyamslg34gmailcom
  • derrickkorku
  • Sir. George Githunguri
  • bomihill
  • Randy
  • Charles A. Kush III
  • thuonghieuws
  • setiaji
  • Ms Shubharambh IT Solution Pvt Ltd
  • penelopeburns
  • paynet11
  • Jay Amefia
  • felishia green
  • kusbas
  • Acespritech Solutions Pvt. Ltd.
  • BlookUp
  • Kieran Doswell
  • lilhedr
  • devangpipaliya
  • SMSTS Essex
  • roslionel
  • bea450
  • Jozsef Torsan
  • CrypTee
  • New Affiliate News
  • Tech9logy Creators
  • naturalskincarelove
  • arasty
  • tekNorah
  • affiliatedmindset
  • technoreviewmobileapps
  • Thr Viral Blog
  • Hilar AK
  • Nanoarch Software Solutions
  • homeworkouthabit
  • Vishvesh Suthar
  • Bobby Carsan
  • Bookssorted Payroll Management
  • pityfox
  • Nisarg shukla
  • Myownbosszone
Play Store (Android App)
%d bloggers like this: