As this has cropped up a couple of times with little in the way of concrete information I figured I'd share my roller coaster ride with this. We have Cloudlinux on our Cpanel server but that shouldn't detract from the process too much.
Intentions:
- Install Odoo 14.0 community edition on Cpanel/Cloudlinux Centos 6
First up.. RPM/Yum installation of odoo showed a myriad of dependencies that aren't supported by the repos I have setup and (showing my ignorance here) I'm not convinced I want to use a different repos if it may compromise my setup so I abandoned this.
So we move to install using WSGI which has so far gone as follows:
Updated: And this is where we hit a brick wall.. Odoo version 14.x requires postgreSQL version 10 or above and Cpanel doesn't support anything higher than that supported by the OS which for my Centos 6 is 8.4.20 so we're hitting a new issue.
It's likely that installing the newer version will need to be unsupported and difficult but this thread seems to offer hope:
forums.cpanel.net
Until another day...
The main headaches/hurdles are getting the required libs and functionality in place before Odoo can be installed but once we've resolved that this guide:
... should provide the final touches.
I'll update once I have more.
Intentions:
- Install Odoo 14.0 community edition on Cpanel/Cloudlinux Centos 6
First up.. RPM/Yum installation of odoo showed a myriad of dependencies that aren't supported by the repos I have setup and (showing my ignorance here) I'm not convinced I want to use a different repos if it may compromise my setup so I abandoned this.
So we move to install using WSGI which has so far gone as follows:
- Cloudlinux doesn't have Python selector enabled by default (or at least mine didn't) so:
- WHM > LVE Manager
- Enable Python and install the 3.8.1 (alt) version of Python
.
- Make sure the Cpanel feature manager has Python selector enabled
. - Create your postgresql database and user that you intend to use with odoo and assign the user to that database.
. - Odoo requires access to a number of executables (which CageFS will block)so you will need to:
- cat /etc/cagefs/custom.proxy.commands
- Add the following lines:
-
Code:
PG_CONFIG=/opt/alt/postgresql11/usr/bin/pg_config DEVTOOLS7_GCC=/opt/rh/devtoolset-7/root/usr/bin/gcc DEVTOOLS7_GPP=/opt/rh/devtoolset-7/root/usr/bin/g++
- Save the edited file
Ref: Enable cpapi2 in CageFS
.
- Enable compiler access:
- WHM > Compiler access
- Enable compiler access
.
- In shell:
- yum install devtoolset-7-gcc*
- cagefsctl --force-update
- cagefsctl -M
- sudo -su foo (into your account shell)
- copy the source link for your python app virtual environment
- paste the source link into shell and run
- git clone odoo/odoo --depth 1 --branch 14.0 ./odoo
- pip3 install -r [path/]requirements.txt
.
At this point you should have managed to install the various prerequisites to get odoo to install...
- So, on to installing odoo itself... In shell:
- cd [path/]
- pip3 install ./
.
- With the db and user login for your postgresql db you now initialise the odoo database
- python odoo-bin --init --addons-path=addons --db_host=localhost --db_user=DBUSER --db_password="DBPASS" -d DBNAME --stop-after-init
Updated: And this is where we hit a brick wall.. Odoo version 14.x requires postgreSQL version 10 or above and Cpanel doesn't support anything higher than that supported by the OS which for my Centos 6 is 8.4.20 so we're hitting a new issue.
It's likely that installing the newer version will need to be unsupported and difficult but this thread seems to offer hope:
How to upgrade PostgreSql 9.2 to PostgreSql 9.6
Just upgraded from PostgreSQL 9.6 to 10.3 on CloudLinux 6.9 but cPanel seems to only partially work with it. In cPanel, all of the PostgreSQL links have gone. But in WHM, its still visible such as the Configure PostgreSQL page and its listed in the Service Manager. However, if I run Install...
Until another day...
The main headaches/hurdles are getting the required libs and functionality in place before Odoo can be installed but once we've resolved that this guide:
... should provide the final touches.
I'll update once I have more.
Last edited: