<\/span><\/h2>\r\n\r\n\r\n\r\nFirst, log in to your AlmaLinux 8 server via SSH as the root user:<\/p>\r\n\r\n\r\n\r\n
ssh root@IP_Address -p Port_number<\/pre>\r\n\r\n\r\n\r\nYou will need to replace ‘IP_Address’ and ‘Port_number’ with your server\u2019s respective IP address and SSH port number. Additionally, replace ‘root’ with the username of the admin account if necessary.<\/p>\r\n\r\n\r\n\r\n
Before starting, you have to make sure that all AlmaLinux OS packages installed on the server are up to date. You can do this by running the following commands:<\/p>\r\n\r\n\r\n\r\n
dnf update -y<\/pre>\r\n\r\n\r\n\r\n<\/span>Install Required Dependencies<\/span><\/h2>\r\n\r\n\r\n\r\nFirst, you will need to install Python and other required dependencies on your server. You can install all of them with the following command:<\/p>\r\n\r\n\r\n\r\n
dnf install python3 python3-devel git gcc git redhat-rpm-config libxslt-devel bzip2-devel openldap-devel libjpeg-devel freetype-devel -y<\/pre>\r\n\r\n\r\n\r\nNext, install wkhtmltopdf package with the following command:<\/p>\r\n\r\n\r\n\r\n
dnf install https:\/\/github.com\/wkhtmltopdf\/wkhtmltopdf\/releases\/download\/0.12.5\/wkhtmltox-0.12.5-1.centos8.x86_64.rpm<\/pre>\r\n\r\n\r\n\r\nOnce all the packages are installed, you can proceed to the next step.<\/p>\r\n\r\n\r\n\r\n
<\/span>Install PostgreSQL<\/span><\/h2>\r\n\r\n\r\n\r\nNext, you will need to install the PostgreSQL package on your server. You can install it with the following command:<\/p>\r\n\r\n\r\n\r\n
dnf install @postgresql:12 -y<\/pre>\r\n\r\n\r\n\r\nOnce installed, initialized to PostgreSQL database with the following command:<\/p>\r\n\r\n\r\n\r\n
\/usr\/bin\/postgresql-setup initdb<\/pre>\r\n\r\n\r\n\r\nNext, start the PostgreSQL service and enable them to start at system reboot:<\/p>\r\n\r\n\r\n\r\n
systemctl start postgresql\r\nsystemctl enable postgresql<\/pre>\r\n\r\n\r\n\r\nNext, create a new PostgreSQL user for Odoo with the following command:<\/p>\r\n\r\n\r\n\r\n
su - postgres -c \"createuser -s odoo\"<\/pre>\r\n\r\n\r\n\r\n