{"id":63,"date":"2013-09-01T18:53:00","date_gmt":"2013-09-01T18:53:00","guid":{"rendered":"https:\/\/www.tech-and-dev.com\/blog\/2013\/09\/01\/installing-openerp-on-centos-6\/"},"modified":"2021-02-22T01:26:13","modified_gmt":"2021-02-22T01:26:13","slug":"openerp-centos-6","status":"publish","type":"post","link":"https:\/\/www.tech-and-dev.com\/blog\/2013\/09\/openerp-centos-6.html","title":{"rendered":"Installing OpenERP on CentOS 6"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">\n<p>&nbsp;<\/p>\n<div style=\"clear: both; text-align: center;\"><img decoding=\"async\" title=\"OpenERP\" src=\"https:\/\/www.tech-and-dev.com\/blog\/wp-content\/uploads\/2021\/02\/openerp-logo.png\" alt=\"openerp logo\" border=\"0\" \/><\/div>\n<h2 style=\"text-align: left;\">What is OpenERP?<\/h2>\n<div style=\"text-align: justify;\">OpenERP is an open source full suite of Business software, and is published under the AGPL license.<\/div>\n<div style=\"text-align: justify;\">OpenERP contains over 700 modules such as sales management, Customer Relationship Management (CRM), warehouse management, association, project management, human resources management, point of sales and around<\/div>\n<p>&nbsp;<\/p>\n<h2 style=\"text-align: left;\">Installing OpenERP on CentOS 6<\/h2>\n<p>Installing OpenERP on CentOS can be tricky due to the lack of documentations. Most of the documentations are for Ubuntu\/Debian distro.<\/p>\n<p>OpenERP requires Python and PostgreSQL to run.<\/p>\n<p><span style=\"color: blue;\">First step is to update the OS System &amp; Packages<\/span><\/p>\n<blockquote>\n<div style=\"background-color: #cccccc; padding: 5px;\"><span style=\"font-family: 'Courier New',Courier,monospace; font-size: small;\">yum -y update<\/span><\/div>\n<\/blockquote>\n<div style=\"text-align: justify;\"><span style=\"color: blue;\">Installing wget in case it&#8217;s not installed<\/span><\/div>\n<p>&nbsp;<\/p>\n<blockquote>\n<div style=\"background-color: #cccccc; padding: 5px;\"><span style=\"font-family: 'Courier New',Courier,monospace; font-size: small;\">yum -y install wget<\/span><\/div>\n<\/blockquote>\n<p><span style=\"color: blue;\">Downloading the epel-release (Extra Packages for Enterprise Linux) and installing the packages<\/span><\/p>\n<blockquote>\n<div style=\"background-color: #cccccc; padding: 5px;\"><span style=\"font-family: 'Courier New',Courier,monospace; font-size: small;\">rpm -ivh http:\/\/dl.fedoraproject.org\/pub\/epel\/6\/x86_64\/epel-release-6-8.noarch.rpm<\/span><\/div>\n<\/blockquote>\n<p><span style=\"color: blue;\">Downloading the PostgreSQL and installing the packages<\/span><\/p>\n<blockquote>\n<div style=\"background-color: #cccccc; padding: 5px;\"><span style=\"font-family: 'Courier New',Courier,monospace; font-size: small;\">rpm -ivh http:\/\/yum.pgrpms.org\/9.1\/redhat\/rhel-6Server-x86_64\/pgdg-redhat91-9.1-5.noarch.rpm<\/span><\/div>\n<\/blockquote>\n<p><span style=\"color: blue;\">Installing Packages &amp; Dependencies<\/span><\/p>\n<blockquote>\n<div style=\"background-color: #cccccc; padding: 5px;\"><span style=\"font-family: 'Courier New',Courier,monospace; font-size: small;\">yum -y install python-psycopg2 python-lxml PyXML python-setuptools libxslt-python pytz python-matplotlib python-babel python-mako python-dateutil python-psycopg2 pychart pydot python-reportlab python-devel python-imaging python-vobject hippo-canvas-python mx python-gdata python-ldap python-openid python-werkzeug python-vatnumber pygtk2 glade3 pydot python-dateutil python-matplotlib pygtk2 glade3 pydot python-dateutil python-matplotlib python python-devel python-psutil python-docutils make automake gcc gcc-c++ kernel-devel byacc flashplugin-nonfree postgresql91-libs postgresql91-server postgresql91 libxslt-devel<\/span><\/div>\n<\/blockquote>\n<p><span style=\"color: blue;\">Initializing PostgreSQL<\/span><\/p>\n<blockquote>\n<div style=\"background-color: #cccccc; padding: 5px;\"><span style=\"font-family: 'Courier New',Courier,monospace; font-size: small;\">service postgresql-9.1 initdb<\/span><\/div>\n<\/blockquote>\n<p><span style=\"color: blue;\">Allowing remote access to PostgreSQL<\/span><\/p>\n<blockquote>\n<div style=\"background-color: #cccccc; padding: 5px;\"><span style=\"font-family: 'Courier New',Courier,monospace; font-size: small;\">echo &#8220;listen_addresses = &#8216;*'&#8221; &gt;&gt; \/var\/lib\/pgsql\/9.1\/data\/postgresql.conf<\/span><\/div>\n<\/blockquote>\n<p><span style=\"color: blue;\">By Default, PostgreSQL refuses all connections, so we have to add the IP addresses and subnet.<\/span><br \/>\n<span style=\"color: blue;\">You can replace 0.0.0.0\/0 by your IP address and subnet mask to allow access from a certain IP address.<\/span><\/p>\n<blockquote>\n<div style=\"background-color: #cccccc; padding: 5px;\"><span style=\"font-size: small;\"><span style=\"font-family: 'Courier New',Courier,monospace;\">echo &#8220;host all all 0.0.0.0\/0 md5&#8221; &gt;&gt; \/var\/lib\/pgsql\/9.1\/data\/pg_hba.conf<\/span><\/span><\/div>\n<\/blockquote>\n<p><span style=\"color: blue;\">Starting PostgreSQL<\/span><\/p>\n<blockquote>\n<div style=\"background-color: #cccccc; padding: 5px;\"><span style=\"font-size: small;\"><span style=\"font-family: 'Courier New',Courier,monospace;\">service postgresql-9.1 start<\/span><\/span><\/div>\n<\/blockquote>\n<p><span style=\"color: blue;\">Starting PostgreSQL after every reboot<\/span><\/p>\n<blockquote>\n<div style=\"background-color: #cccccc; padding: 5px;\"><span style=\"font-size: small;\"><span style=\"font-family: 'Courier New',Courier,monospace;\">chkconfig postgresql-9.1 on<\/span><\/span><\/div>\n<\/blockquote>\n<p><span style=\"color: blue;\">Creating PostgreSQL user and database<\/span><\/p>\n<blockquote>\n<div style=\"background-color: #cccccc; padding: 5px;\"><span style=\"font-size: small;\"><span style=\"font-family: 'Courier New',Courier,monospace;\">su &#8211; postgres -c &#8220;createuser &#8211;pwprompt &#8211;createdb &#8211;no-createrole &#8211;no-superuser openerp&#8221;<\/span><\/span><\/div>\n<\/blockquote>\n<p><span style=\"color: blue;\">Downloading the Python client library for Google data APIs<\/span><\/p>\n<blockquote>\n<div style=\"background-color: #cccccc; padding: 5px;\"><span style=\"font-size: small;\"><span style=\"font-family: 'Courier New',Courier,monospace;\">cd \/tmp<br \/>\nwget http:\/\/gdata-python-client.googlecode.com\/files\/gdata-2.0.17.zip<\/span><\/span><\/div>\n<\/blockquote>\n<p><span style=\"color: blue;\">Unziping and Installing it<\/span><\/p>\n<blockquote>\n<div style=\"background-color: #cccccc; padding: 5px;\"><span style=\"font-size: small;\"><span style=\"font-family: 'Courier New',Courier,monospace;\">unzip gdata-2.0.17.zip<br \/>\nrm -rf gdata-2.0.17.zip<br \/>\ncd gdata*<br \/>\npython setup.py install<\/span><\/span><\/div>\n<\/blockquote>\n<p><span style=\"color: blue;\">\u00a0Adding OpenERP user to work with OpenERP. Never use root!<\/span><\/p>\n<blockquote>\n<div style=\"background-color: #cccccc; padding: 5px;\"><span style=\"font-size: small;\"><span style=\"font-family: 'Courier New',Courier,monospace;\">adduser openerp<\/span><\/span><\/div>\n<\/blockquote>\n<p><span style=\"color: blue;\">Creating runtime directory and log directory and changing the owner to the previous created user<\/span><\/p>\n<blockquote>\n<div style=\"background-color: #cccccc; padding: 5px;\"><span style=\"font-size: small;\"><span style=\"font-family: 'Courier New',Courier,monospace;\">mkdir \/var\/run\/openerp<br \/>\nmkdir \/var\/log\/openerp<br \/>\nchown openerp.openerp \/var\/run\/openerp<\/span><\/span><\/div>\n<\/blockquote>\n<p><span style=\"color: blue;\">If a previous version of openerp exists, remove it<\/span><\/p>\n<blockquote>\n<div style=\"background-color: #cccccc; padding: 5px;\"><span style=\"font-size: small;\"><span style=\"font-family: 'Courier New',Courier,monospace;\">rm -rf openerp*<\/span><\/span><\/div>\n<\/blockquote>\n<p><span style=\"color: blue;\">Downloading OpenERP, extracting it to a directory called &#8220;openerp&#8221;, and installing it<\/span><\/p>\n<blockquote>\n<div style=\"background-color: #cccccc; padding: 5px;\"><span style=\"font-size: small;\"><span style=\"font-family: 'Courier New',Courier,monospace;\">wget http:\/\/nightly.openerp.com\/7.0\/nightly\/src\/openerp-7.0-latest.tar.gz<br \/>\ntar -zxvf openerp-7.0-latest.tar.gz\u00a0 &#8211;transform &#8216;s!^[^\/]+($|\/)!openerp1!&#8217;<br \/>\ncd openerp<br \/>\npython setup.py install<\/span><\/span><\/div>\n<\/blockquote>\n<p><span style=\"color: blue;\">If OpenERP was previously installed, remove it<\/span><\/p>\n<blockquote>\n<div style=\"background-color: #cccccc; padding: 5px;\"><span style=\"font-size: small;\"><span style=\"font-family: 'Courier New',Courier,monospace;\">rm -rf \/usr\/local\/bin\/openerp-server<\/span><\/span><\/div>\n<\/blockquote>\n<p><span style=\"color: blue;\">Copy configuration files from OpenERP directory to their correct destination<\/span><\/p>\n<blockquote>\n<div style=\"background-color: #cccccc; padding: 5px;\"><span style=\"font-size: small;\"><span style=\"font-family: 'Courier New',Courier,monospace;\">cp openerp-server \/usr\/local\/bin<br \/>\ncp install\/openerp-server.init \/etc\/init.d\/openerp<br \/>\ncp install\/openerp-server.conf \/etc<br \/>\nchmod u+x \/etc\/init.d\/openerp<\/span><\/span><\/div>\n<\/blockquote>\n<p><span style=\"color: blue;\">Start OpenERP after every reboot<\/span><\/p>\n<blockquote>\n<div style=\"background-color: #cccccc; padding: 5px;\"><span style=\"font-size: small;\"><span style=\"font-family: 'Courier New',Courier,monospace;\">chkconfig openerp on<\/span><\/span><\/div>\n<\/blockquote>\n<p><span style=\"color: blue;\">Start OpenERP<\/span><\/p>\n<blockquote>\n<div style=\"background-color: #cccccc; padding: 5px;\"><span style=\"font-size: small;\"><span style=\"font-family: 'Courier New',Courier,monospace;\">service openerp start<\/span><\/span><\/div>\n<\/blockquote>\n<p>That&#8217;s it!<br \/>\nYou should be able to access OpenERP on your server&#8217;s IP, port 8069<br \/>\nxxx.xxx.xxx.xxx:8069<\/p>\n<p>And you should see a screen like this:<\/p>\n<div style=\"clear: both; text-align: center;\"><img loading=\"lazy\" decoding=\"async\" title=\"OpenERP\" src=\"https:\/\/www.tech-and-dev.com\/blog\/wp-content\/uploads\/2021\/02\/OpenERP-CentOS.jpg\" alt=\"OpenERP on CentOS 6\" width=\"400\" height=\"205\" border=\"0\" \/><\/div>\n<p><b>Have some questions? Leave us a comment below!<\/b><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; What is OpenERP? OpenERP is an open source full suite of Business software, and is published under the AGPL license. OpenERP contains over 700 modules such as sales management, Customer Relationship Management (CRM), warehouse management, association, project management, human resources management, point of sales and around &nbsp; Installing OpenERP on CentOS 6 Installing OpenERP [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[17,76,6,77,78],"tags":[],"class_list":["post-63","post","type-post","status-publish","format-standard","hentry","category-centos","category-database","category-linux","category-openerp","category-postgresql"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/posts\/63","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/comments?post=63"}],"version-history":[{"count":3,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/posts\/63\/revisions"}],"predecessor-version":[{"id":402,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/posts\/63\/revisions\/402"}],"wp:attachment":[{"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/media?parent=63"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/categories?post=63"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/tags?post=63"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}