<\/span><\/h2>\n\n\n\nFirst, you will need to log in to your CentOS 8 VPS by using SSH as the root user:<\/p>\n\n\n\n
ssh root@IP_ADDRESS -p PORT_NUMBER<\/pre>\n\n\n\nReplace IP_ADRRESS <\/strong>and PORT_NUMBER<\/strong> with the correct server IP address and SSH port number. The default port number is 22, but your server may have a unique one set.<\/p>\n\n\n\nNext, run the following commands to upgrade all installed packages on your VPS:<\/p>\n\n\n\n
dnf update -y<\/pre>\n\n\n\nOnce all of the packages are updated, restart your system to apply any changes that require a reboot. This ensures a clean slate on which we’ll be installing our Odoo 14 instance.<\/p>\n\n\n\n
<\/span>Install the Required Dependencies<\/span><\/h2>\n\n\n\nBefore you begin with the Odoo installation, you will need to install Python 3 and some other Odoo dependencies onto your system. You can install all of them using the following command:<\/p>\n\n\n\n
dnf install python3 python3-devel git gcc redhat-rpm-config libxslt-devel bzip2-devel openldap-devel libjpeg-devel freetype-devel curl unzip -y<\/pre>\n\n\n\nOnce all the packages are installed, you will also need to install the wkhtmltopdf <\/code>package in your system. Wkhtmltopdf is an open-source tool that can be used to convert the HTML format to a PDF, that way Odoo can export PDF reports.<\/p>\n\n\n\nYou can install it by running the following command:<\/p>\n\n\n\n
dnf install https:\/\/github.com\/wkhtmltopdf\/wkhtmltopdf\/releases\/download\/0.12.5\/wkhtmltox-0.12.5-1.centos8.x86_64.rpm<\/pre>\n\n\n\nVerify that wkhtmltopdf<\/code> is installed on your server:<\/p>\n\n\n\n# wkhtmltopdf --version\nwkhtmltopdf 0.12.5 (with patched qt)<\/pre>\n\n\n\nOnce this is done, you can proceed to the next step.<\/p>\n\n\n\n
<\/span>Install and Configure PostgreSQL<\/span><\/h2>\n\n\n\nOdoo uses PostgreSQL to store its data. You can install the PostgreSQL server with the following command:<\/p>\n\n\n\n
dnf install postgresql postgresql-server postgresql-contrib -y<\/pre>\n\n\n\nOnce the installation is completed, initialize the database with the following command:<\/p>\n\n\n\n
postgresql-setup initdb<\/pre>\n\n\n\nTo start the PostgreSQL service and enable it to automatically start after every server reboot, run the following commands:<\/p>\n\n\n\n
systemctl start postgresql
systemctl enable postgresql<\/pre>\n\n\n\nNext, log in to the PostgreSQL shell and create a new PostgreSQL user for your Odoo database, with the following command. The name we used is odoo14<\/code>, but you can use any name you like. KEEP IN MIND<\/strong> that the username you set here has to be identical<\/strong> to the system user that you’re going to create in the next step:<\/p>\n\n\n\nsu - postgres -c \"createuser -s odoo14\"<\/pre>\n\n\n\n