<\/span><\/h2>\r\n\r\n\r\n\r\nLog in to your Ubuntu 20.04 VPS via SSH as user root (You can use a superuser account if the root is not available. Our VPSes come with root access included):<\/p>\r\n\r\n\r\n\r\n
ssh root@IP_Address -p Port_number<\/pre>\r\n\r\n\r\n\r\nDon\u2019t forget to replace \u2018IP_Address\u2019 and \u2018Port_number\u2019 with the actual IP address of your server and the SSH service port. The default SSH port is 22.<\/p>\r\n\r\n\r\n\r\n
Run the following commands to make sure that all installed packages on your Ubuntu 20.04 VPS are updated to their latest available versions:<\/p>\r\n\r\n\r\n\r\n
apt-get update -y && apt-get upgrade -y<\/pre>\r\n\r\n\r\n\r\n<\/span>Install Necessary Dependencies<\/span><\/h2>\r\n\r\n\r\n\r\nNext, you will need to install all necessary dependencies including, Node,js and Python in your server. Run the following command to install all the dependencies:<\/p>\r\n\r\n\r\n\r\n
apt-get install python3-pip python-dev python3-dev libxml2-dev libpq-dev libjpeg8-dev liblcms2-dev libxslt1-dev zlib1g-dev libsasl2-dev libldap2-dev build-essential git libssl-dev libffi-dev libmysqlclient-dev libjpeg-dev libblas-dev libatlas-base-dev -y<\/pre>\r\n\r\n\r\n\r\nNext, install the Node.js and NPM using the following command:<\/p>\r\n\r\n\r\n\r\n
apt-get install npm\r\nnpm install -g less less-plugin-clean-css\r\napt-get install node-less<\/pre>\r\n\r\n\r\n\r\nNext, download and install the wkhtmltopdf package by running the following command:<\/p>\r\n\r\n\r\n\r\n
wget https:\/\/github.com\/wkhtmltopdf\/packaging\/releases\/download\/0.12.6-1\/wkhtmltox_0.12.6-1.bionic_amd64.deb\r\ndpkg -i wkhtmltox_0.12.6-1.bionic_amd64.deb\r\napt-get install -f<\/pre>\r\n\r\n\r\n\r\n<\/span>Install PostgreSQL<\/span><\/h2>\r\n\r\n\r\n\r\nOdoo uses PostgreSQL as a database backend. So you will need to install the PostgreSQL to your server. Run the following command to install the PostgreSQL server.<\/p>\r\n\r\n\r\n\r\n
apt-get install postgresql -y<\/pre>\r\n\r\n\r\n\r\nOnce the PostgreSQL is installed, log in to PostgreSQL and create an Odoo user with the following command:<\/p>\r\n\r\n\r\n\r\n
su - postgres\r\ncreateuser --createdb --username postgres --no-createrole --no-superuser --pwprompt odoo15\r\npsql\r\nALTER USER odoo15 WITH SUPERUSER;<\/pre>\r\n\r\n\r\n\r\nNext, exit from the PostgreSQL with the following command:<\/p>\r\n\r\n\r\n\r\n
\\q\r\nexit<\/pre>\r\n\r\n\r\n\r\n