[PYTHON] OpenERP 7.0 setup

【OS】 This time I used CentOS 6.6_x86_64 version. See below for details. http://centos.server-manual.com/ Advance preparation It is necessary to set the packages required for setup in advance. Set all of the following. Administrator privileges are required as system changes will occur. Su to root.

[YUM package management] yum -y install yum-plugin-fastestmirror yum -y update yum -y groupinstall "Base" "Development tools" "Japanese Support"

[Add RPMforge repository] rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt rpm -ivh http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

[Add EPEL repository] rpm --import http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6 rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

[Add ELRepo repository] rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm

[Add Remi repository] rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

[Disable SELinux] getenforce Enforcing ← SELinux enabled setenforce 0 getenforce Permissive ← SELinux disabled vi /etc/sysconfig/selinux SELINUX=enforcing SELINUX = disabled ← Change (disable at startup)

[Allow HTTP with iptables] vi /etc/sysconfig/iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT ← Added -A INPUT -m state --state NEW -m tcp -p tcp --dport 8069 -j ACCEPT ← Added -A INPUT -j REJECT --reject-with icmp-host-prohibited -A FORWARD -j REJECT --reject-with icmp-host-prohibited COMMIT Iptables restart service iptables restart

[Additional package] yum -y install python-psycopg2 python-lxml PyXML python-setuptools libxslt-python pytz
pychart pydot python-reportlab python-devel python-vobject
hippo-canvas-python mx python-ldap python-openid
python-werkzeug python-vatnumber pygtk2 glade3 python-ZSI
python python-psutil python-docutils make
automake gcc gcc-c++ kernel-devel byacc python-babel python-mako
poppler-utils python-psycopg2 pywebdav python-gdata python-matplotlib
python-feedparser python-jinja2 python-lxml python-pip
python-mock python-simplejson python-unittest2 python-yaml \

【PostgreSQL】 http://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/repoview/postgresqldbserver94.group.html Copy the following files to a local folder with Wget postgresql94-9.4rc1-1PGDG.rhel6.x86_64.rpm // PostgreSQL Client postgresql94-server-9.4rc1-1PGDG.rhel6.x86_64.rpm // PostgreSQL Server postgresql94-libs-9.4rc1-1PGDG.rhel6.x86_64.rpm // Libralies

rpm -ivh postgresql94-* Delete the file after the installation is complete (because it is confusing) rm postgresql94-*

DB initial configuration su - postgres /usr/pgsql-9.4/bin/initdb --no-locale -E UTF8 exit chkconfig postgresql-9.4 on chkconfig --list postgresql-9.4 postgresql-9.4 0:off 1:off 2:on 3:on 4:on 5:on 6:off service postgresql-9.4 start Starting postgresql-9.4 service: [OK]

Create group user groupadd openerp useradd -m -r -d /opt/openerp/ -g openerp openerp Create a PostgreSQL user su -l postgres createuser openerp --superuser PostgreSQL confirmation psql -l psql template1 alter role openerp with password 'postgres';

OpenERP setup OpenERP 7.0 has already been transferred to odo and the DL site has been closed. Please find the file by yourself. tar xvf ~/openerp-7.0-latest.tar.gz rm -rf openerp-7.0-latest.tar.gz mv openerp* /opt/openerp/server chown -R openerp: * cp /opt/openerp/server/install/openerp-server.conf /etc chown openerp: /etc/openerp-server.conf chmod 640 /etc/openerp-server.conf

vi /etc/openerp-server.conf db_user = openerp db_password = password you set (you may not need to set it here) logfile = /var/log/openerp/openerp-server.log ← added

Operation test su - openerp -s /bin/bash /opt/openerp/server/openerp-server Since it comes out sloppy, it ends with Control-C. exit cp /opt/openerp/server/install/openerp-server.init /etc/init.d mv /etc/init.d/openerp-server.init /etc/init.d/openerp-server

vi /etc/init.d/openerp-server check the existence of the openerp-server script 48 [ -z "opt/openerp/server/openerp-server" ] && exit 0 … 63 "/usr/bin/setsid /opt/openerp/server/openerp-server \

Change permissions chmod 755 /etc/init.d/openerp-server chown root: /etc/init.d/openerp-server Creating a directory for log files mkdir /var/log/openerp chown openerp:root /var/log/openerp Creating a directory for PIDFILE mkdir /var/run/openerp chown openerp:root /var/run/openerp Auto start settings chkconfig --add openerp-server chkconfig openerp-server on OpenERP start /etc/init.d/openerp-server start Done!

When setting to VH of Apache vi /etc/httpd/conf.d/vhost.conf <VirtualHost *:80> ServerName openerp.example.com ProxyPass / http://localhost:8069/ ProxyPassReverse / http://localhost:8069/

Access with a browser http://localhost:8069/ Change the master password used for setup. The initial value is admin image Master password: The one you set earlier. Database name: optional image Click Create Database and it will automatically jump to the first screen, so leave it alone. After a while, it will move to the screen below image The warning mark on the upper right is displayed because the time zone of OpenERP and the one set in the browser are different. Click to change settings. Additional email addresses Other language settings image

Recommended Posts

OpenERP 7.0 setup
onnxruntime-gpu setup
Sphinx setup summary
ROS environment setup ①
nvidia cuda setup
jetson nano setup