How to Install Odoo
OpenERP Installation Manual:
---------------------------
Step 1:
Copy the openerp folder in a location.
Ex: /opt/odoo-8
Step 2:
Python Installation Files:(dependancy files)
From Terminal
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
Step 3:
Postgresql Install:
sudo apt-get install postgresql
Note: (sudo apt-get install postgresql 9.3)
Create user in postgesql database:
sudo su postgres
createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt user_name
CREATE ROLE selvakd LOGIN ENCRYPTED PASSWORD 'password' SUPERUSER INHERIT CREATEDB CREATEROLE NOREPLICATION;
Enter password for new role: new_password
Enter it again: new_password
Shall the new role be a superuser? (y/n) y
Step 4:
In Terminal:
sudo apt-get install vim
Step 5:
Postgresql configuation in OpenERP
Path to change the configuration file:
Through Terminal:
cd openerp-version/openerp/tools
nano config.py (or) vim
-- db-user = 'postgresql user_name' // user_name -> openerp
db-password = 'postgresql password' // password -> openerp
db-host = 'localhost'
db-port = 5432
By Path:
openerp-version/openerp/tools
Open config.py and directly edit
-- db-user = 'postgresql user_name' // user_name -> openerp
db-password = 'postgresql password' // password -> openerp
db-host = 'localhost'
db-port = 5432
Step 6:
Postgres Configuration file changes inorder to access:
In Terminal:
1) cd /etc/postgresql/8.4/main/ ----> give enter
Type:
sudo vim pg_hba.conf
i-----------------> insert
:q!----------------> without editing and quit
:wq (or) :wq! ---------------------> edit the file save and quit
(Under the line # "IPV4 local connctions:" add "host all all 0.0.0.0/0 md5"
#This line allows the access of all IPs, not considering the subnetmask. MD5 allows the user to access database with password)
(save and exit )
2) cd /etc/postgresql/8.4/main/ ----> give enter
Type:
sudo vim postgresql.conf
Under the line # "# - Connection Settings -" add "listen_addresses = '*'"
#This allows client connections from any ips to the database
(save and exit)
3) Restart the postgres
root@itara# /etc/init.d/postgresql restart
Note: Restart based on version like postgresql-8.4 (or) postgesql-9.1
Step 7:
Pg admin Install:
sudo apt-get install pgadmin3
Comments
Post a Comment