I would like to install OpenERP v8 using mod_wsgi on Apache. It should be accessible on a public domain using port 80. I keep getting 'No handler found'.
I found the instructions on how to install it with Apache/Nginx using proxy, however even openerp:service.wsgi_server.application() indicates that using proxy_mode is a 'fix'.
Has anybody installed OpenERP + Apache + mod_wsgi?
Here are the steps of my installation:
Install the necessary Python libraries for the server:
sudo apt-get install python-dateutil python-docutils python-feedparser python-gdata python-jinja2 python-ldap python-libxslt1 python-lxml python-mako python-mock python-openid python-psycopg2 python-psutil python-pybabel python-pychart python-pydot python-pyparsing python-reportlab python-simplejson python-tz python-unittest2 python-vatnumber python-vobject python-webdav python-werkzeug python-xlwt python-yaml python-zsi
Create the OpenERP user that will own and run the application:
sudo adduser --system --home=/opt/openerp --group openerp
Install and configure the database server, PostgreSQL:
sudo apt-get install postgresql
sudo su - postgres
createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt openerp
Password: openerp
exit
Install the OpenERP server:
wget hppt://nightly.openerp.com/trunk/nightly/src/openerp-8.0dev-latest.tar.gz
cd /opt/openerp
sudo tar xvf ~/openerp-8.0dev-latest.tar.gz
sudo chown -R openerp: *
sudo cp -a openerp-8.0dev-20140214-000101 server
Install Apache:
sudo apt-get install apache2
sudo apt-get install libapache2-mod-wsgi
sudo nano /etc/apache2/apache2.conf
ServerName localhost
Virtual host configuration:
sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/example.com.conf
sudo nano /etc/apache2/sites-available/example.com.conf
ServerName localhost WSGIScriptAlias / /opt/openerp/server/openerp-wsgi.py WSGIDaemonProcess oe user=openerp group=users processes=2 python-path=/opt/openerp/server/ display-name=apache-openerp WSGIProcessGroup oe <Directory /opt/openerp/server> AllowOverride All Require all granted </Directory>
sudo a2dissite 000-default.conf
sudo a2ensite example.com.conf
sudo service apache2 restart
Configuring the OpenERP application:
sudo nano /opt/openerp/server/openerp-wsgi.py
conf['logfile'] = '/var/log/openerp/openerp-server.log' conf['addons_path'] = '/opt/openerp/server/openerp/addons' conf['db_password'] = 'openerp'
sudo mkdir /var/log/openerp
sudo chown openerp:root /var/log/openerp
sudo service apache2 restart
Hello. Did you make it work?
Same question, I still stucked because the wsgy script don't recognise openerp : https://www.odoo.com/forum/Help-1/question/OpenERP-8--mod_wsgi--No-module-named-openerp--addon-path-issue-53079 Any advice on the conf file and directory structure?