Linux Troubleshooting Make Easy.

Linux Learning & Troubleshooting Make Easy.

Installation Of OpenERP Server on Ubuntu

Installation and configuration openerp-server:

Upgrade of Ubuntu packages and installation of openerp and pgadmin:
$  sudo apt-get update
$  sudo apt-get upgrade
$  sudo apt-get install openerp-server openerp-client pgadmin3

Postgres Database configuration:
$  sudo vi /etc/postgresql/8.3/main/pg_hba.conf

Replace the following line:
#  "local" is for Unix domain socket connection local all all ident sameuser
#  "local" is for Unix domain socket connection local all all md5

Restart Postgres:
$  sudo /etc/init.d/postgresql-8.3 restart

The following two commands will avoid problems with /etc/init.d/openerp-web INIT script:
$  sudo mkdir /home/openerp
$  sudo chown openerp.nogroup /home/openerp

Create a user account called openerp with password “openerp” and with privileges to create Postgres databases:
$  sudo su postgres
$  createuser openerp -P
Enter password for new role: (openerp)
Enter it again:
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases? (y/n) y
Shall the new role be allowed to create more new roles? (y/n) n
Quit from user postgres:
$  exit

Edit OpenERP configuration file:
$  sudo vi /etc/openerp-server.conf

Replace the following two lines (we don’t force to use a specific database and we add the required password to gain access to postgres):
db_name =
db_user = openerp
db_password = openerp

Troubles with Python releases: Python 2.6 is not yet supported by OpenERP 5.0, but it is the default Python release on Ubuntu 9.0.4. We need to launch OpenERP 5.0 with Python 2.5 or earlier. There’s also a problem with python-xml package in Ubuntu so we will reinstall it.

To Install Python 2.5:
$  sudo apt-get install python2.5 python2.5-dev python-profiler

Reinstall python-xml:
$  wget
$  tar xvzf PyXML-0.8.4.tar.gz
$  cd PyXML-0.8.4/
$ sudo python2.5 install

Make the following symbolic link:
$  sudo ln -s /usr/lib/python2.6/dist-packages/oldxml/_xmlplus/utils/ /usr/lib/python2.5/site-packages/oldxml/_xmlplus/utils/

Force openerp-server to be launched with Python2.5:
$  cd /usr/bin/
$  sudo cp openerp-server openerp-server.ORIG
$  sudo vi openerp-server

Replace the following line:
exec /usr/bin/python ./ $@
exec /usr/bin/python2.5 ./ $@

Now We can restart openerp-server:
$  sudo /etc/init.d/openerp-server restart

Check out the logs:
$  sudo cat /var/log/openerp.log

you will find few lines which shows:
OpenERP is now up and running, connected to Postgres database on port 5432 and listening on ports 8069 and 8070.

Fixing OpenERP Server INIT script bug:

$  sudo vi /etc/openerp-server.conf

Comment out or remove the following line:
# The file where the server pid will be stored (default False).
#pidfile = /var/run/

Edit the init script:
$  sudo vi /etc/init.d/openerp-server
Add the following line to the beginning of the init script:

Setting up OpenERP Web client:

Use easy_install for python2.5:
$  sudo apt-get install python2.5-setuptools

You must remove the default soft link to easy_install2.6
$  sudo rm /usr/bin/easy_install

Then create the new soft link to easy_install2.5:
$  sudo ln -s /usr/bin/easy_install-2.5 /usr/bin/easy_install

Install TurboGears 1.0.8:
$  sudo easy_install TurboGears==1.0.8

Check whether TurboGears is properly installed or not.
$  tg-admin info

Install openerp-web:
$  sudo easy_install -U openerp-web

Locate the config/default.cfg in the installed EGG, and make appropriate changes, especially:
$  cd /usr/lib/python2.5/site-packages/openerp_web-5.0.1_0-py2.5.egg
$  sudo vi config/default.cfg


Restart postgres and opener-server:
$  sudo /etc/init.d/postgresql-8.3 restart
$  sudo /etc/init.d/openerp-server restart

Openerp-web run as service :
$  sudo cp /usr/lib/python2.5/site-packages/openerp_web-5.0.1_0-py2.5.egg/scripts/openerp-web /etc/init.d/
$  sudo cp /usr/lib/python2.5/site-packages/openerp_web-5.0.1_0-py2.5.egg/config/default.cfg /etc/openerp-web.cfg
$  sudo chmod +x /etc/init.d/openerp-web
$  sudo vi /etc/init.d/openerp-web

# Specify the user name (Default: terp).

Create /var/log/openerp-web.log with proper ownership:
$  sudo touch /var/log/openerp-web.log
$  sudo chown openerp /var/log/openerp-web.log

Now run following command to start the OpenERP Web automatically on system startup (Debian/Ubuntu):
$  sudo update-rc.d openerp-web start 70 2 3 4 5 . stop 20 0 1 6 .

Now start the web server with start-openerp-web command:
$  sudo -u openerp start-openerp-web

If everything is fine, open your web browser and type http://localhost:8080 (or http://server_ip_adress:8080), and you can see welcome page with login screen.
Please make sure cookies are enabled in your browser.


Guo Guo said...

oakley sunglasses
oakley sunglasses
hollister pas cher
true religion jeans
ray ban sunglasses
mont blanc
coach outlet
louis vuitton outlet
louis vuitton outlet
michael kors outlet online
cheap snapbacks
burberry handbags
kate spade handbags
burberry outlet
coach factory outlet
gucci outlet
herve leger dresses
ferragamo shoes
marc jacobs
coach outlet store online
oakley sunglasses
adidas shoes
kobe 9
timberland boots
herve leger
cheap nfl jerseys
cheap oakley sunglasses
converse shoes
mcm bags
tods outlet
pandora jewelry 
cheap nba jerseys
coach outlet store
louis vuitton handbags
coach outlet
instyler ionic styler
air jordan shoes

ninest123 Ninest said...

ninest123 11.26
michael kors handbags, burberry factory outlet, longchamp bags, replica watches, louboutin uk, michael kors outlet, uggs outlet, prada handbags, louis vuitton outlet online, cheap oakley sunglasses, ralph lauren outlet, louis vuitton outlet, cheap jordans, louboutin shoes, louis vuitton, gucci handbags, ralph lauren polo, oakley sunglasses, oakley sunglasses, oakley sunglasses, longchamp outlet, ray ban sunglasses, longchamp outlet, nike outlet, ray ban sunglasses, christian louboutin, uggs outlet, prada outlet, nike free, michael kors outlet online, nike air max, ray ban sunglasses, uggs on sale, christian louboutin, nike air max, replica watches, michael kors outlet online, burberry outlet, uggs on sale, tiffany jewelry, louis vuitton handbags, oakley sunglasses, tiffany jewelry, uggs on sale, tory burch outlet, michael kors, louis vuitton outlet, michael kors outlet online

ninest123 Ninest said...

longchamp pas cher, timberland pas cher, polo ralph lauren uk, nike trainers uk, true religion outlet, hermes pas cher, nike roshe run pas cher, nike tn pas cher, michael kors, nike air max pas cher, michael kors uk, abercrombie and fitch UK, north face uk, north face pas cher, mulberry uk, vanessa bruno pas cher, michael kors, lunette ray ban pas cher, sac guess pas cher, longchamp soldes, nike air max uk, coach purses, louboutin pas cher, coach outlet store online, abercrombie and fitch, ralph lauren pas cher, true religion outlet, vans pas cher, hollister uk, nike free pas cher, true religion outlet, nike free, nike air max uk, ray ban uk, jordan pas cher, polo lacoste pas cher, nike blazer pas cher, hogan sito ufficiale, true religion jeans, lunette oakley pas cher, lululemon outlet, nike roshe uk, nike air max, new balance, converse, burberry pas cher, coach outlet, michael kors outlet online, nike air force

ninest123 Ninest said...

iphone 6s cases, mac cosmetics, north face outlet, oakley, vans scarpe, nike air max, hermes handbags, softball bats, ipad cases, s6 cases, louboutin, nike roshe run, gucci, vans outlet, abercrombie and fitch, celine handbags, mont blanc, valentino shoes, iphone 5s cases, ray ban, giuseppe zanotti, lululemon outlet, beats by dre, nfl jerseys, mcm handbags, bottega veneta, nike air max, iphone 6 cases, chi flat iron, insanity workout, iphone cases, converse, asics running shoes, instyler ionic styler, reebok outlet, babyliss pro, hollister clothing, north face outlet, polo ralph lauren, soccer shoes, wedding dresses, salvatore ferragamo, iphone 6 plus cases, new balance shoes, herve leger, iphone 6s plus cases, p90x workout, ghd hair, hollister, timberland boots, jimmy choo outlet, soccer jerseys

ninest123 Ninest said...

louis vuitton, pandora jewelry, moncler, pandora uk, canada goose, canada goose pas cher, barbour jackets uk, moncler, canada goose outlet, hollister, louis vuitton, moncler jackets, replica watches, toms shoes, uggs outlet, moncler, canada goose outlet, ugg pas cher, canada goose uk, lancel, ugg uk, juicy couture outlet, bottes ugg pas cher, converse shoes outlet, thomas sabo uk, karen millen uk, wedding dresses uk, sac louis vuitton, pandora charms, supra shoes, pandora jewelry, barbour, moncler pas cher, coach outlet, moncler outlet, marc jacobs, louis vuitton uk, ugg,uggs,uggs canada, swarovski jewelry, canada goose jackets, canada goose, sac louis vuitton, doke & gabbana, moncler, ugg,ugg australia,ugg italia, montre pas cher, canada goose jackets, swarovski uk, juicy couture outlet, links of london uk, moncler uk
ninest123 11.26