Hi All,
Am explaining the Odoo Instance Creation.
Am explaining the Odoo Instance Creation.
Step 1:
ssh admin@192.168.1.148(server address)
Log in to server
Step 2:
sudo adduser --system --home=/opt/odoo --group odoo
Add an User
sudo su - odoo -s /bin/bash
exit
Step3:
sudo apt-get install postgresql
install postgresql
sudo su - postgres
createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt odoo
Enter password for new role: ********(give any password)
Enter it again:********
exit
Step4:
sudo apt-get install python-xlwt python-yaml wkhtmltopdf
(Install all the python Dependencies)
Step5:
sudo apt-get install git
install git
sudo su - odoo -s /bin/bash
git clone --branch 8.0 --depth=1 https://www.github.com/odoo/odoo
clone odoo
exit
Step6:
sudo cp /opt/odoo/odoo/debian/openerp-server.conf /etc/odoo-server.conf
copy conf file
sudo chown odoo: /etc/odoo-server.conf
sudo chmod 640 /etc/odoo-server.conf
give permission to odoo-server.conf
sudo mkdir /var/log/odoo_log
create a log file
sudo chown odoo:root /var/log/odoo_log
Give Permission to odoo user
sudo nano /etc/odoo-server.conf
conf file example is given
sudo cp /opt/odoo/odoo/debian/init /etc/init.d/odoo-server
sudo chmod 755 /etc/init.d/odoo-server
sudo chown root: /etc/init.d/odoo-server
Give permission
sudo nano /etc/init.d/odoo-server
service file example is given
sudo /etc/init.d/odoo-server start
for running instance
less /var/log/odoo_log.log
Refering log file
Take a browser https://IP_or_domain.com:8069
Default port is 8069,you can change it in conf file
No comments:
Post a Comment