Documents Product Categories Odoo 16 Community Edition on CentOS Stream 8

Odoo 16 Community Edition on CentOS Stream 8

Jun 28, 2024
CentOS Stream 8 – Odoo 16 Community Edition Version: 1.0.0 Created by: cloudimg Table of Contents 1.) Overview......................................................................................................................1 2.) Access & Security..........................................................................................................2 3.) System Requirements....................................................................................................2 4.) Connecting to the Instance...........................................................................................2 5.) On Startup....................................................................................................................2 6.) Filesystem Configuration..............................................................................................3 7.) Server Components......................................................................................................3 8.) Scripts and Log Files.....................................................................................................4 9.) Using System Components...........................................................................................4 1.) Overview This document is provided as a user guide for the CentOS Stream 8 – Odoo 16 Community Edition product offering on the Alibaba Cloud Marketplace. Please reach out to support@cloudimg.co.uk if any issues are encountered following this user guide for the chosen product offering.2.)Access & Security Please update the security group of the target instance to allow the below ports and protocols for access and connectivity. Protocol Type Port Description SSH TCP 22 SSH connectivity HTTP HTTP 80 PGAdmin4 Console Custom TCP TCP 5432 Postgres Database listener port for remote access Custom TCP TCP 8069 Odoo Application Front End 3.)System Requirements The minimum system requirements for the chosen product offering can be found below Minimum CPU Minimum RAM Required Disk Space 1 1 GB 20 GB 4.) Connecting to the Instance Once launched in the ECS Console, please connect to the instance via an SSH client using the root user with the key pair associated at launch. 5.) On Startup An OS package update script has been configured to run on boot to ensure the image is fully up to date at first use. You can disable this feature by removing the script from /stage/scripts/ and deleting the entry in crontab for the root user. Disable the OS update script from running on reboot rm -f /stage/scripts/initial_boot_update.sh crontab -e #DELETE THE BELOW LINE. SAVE AND EXIT THE FILE. @reboot /stage/scripts/initial_boot_update.sh6.) Filesystem Configuration Please see below for a screenshot of the server disk configuration and specific mount point mappings for software locations. Filesystem Size Used Avail Use% Mounted on devtmpfs 1.9G 0 1.9G 0% /dev tmpfs 1.9G 28K 1.9G 1% /dev/shm tmpfs 1.9G 8.5M 1.9G 1% /run tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup /dev/nvme0n1p2 38G 4.6G 31G 13% / /dev/nvme1n1 9.8G 42M 9.2G 1% /var/lib/pgsql /dev/nvme0n1p1 2.0G 220M 1.6G 12% /boot tmpfs 387M 0 387M 0% /run/user/0 tmpfs 387M 0 387M 0% /run/user/1002 /dev/nvme2n1 9.8G 1.2G 8.1G 13% /opt/odoo Mount Point Description /boot Operating System Kernel files /var/lib/postgres Postgres installation directory /opt/odoo Odoo installation directory 7.) Server Components Please see below for a list of installed server components and their respective installation paths. The below versions are subject to change on initial boot based on the initial_boot_update.sh script finding new versions of the software in the systems package repositories. Component Version Software Home Aliyun CLI 3 /usr/local/bin/aliyun Apache HTTP Sever 2.4.6 /etc/httpd Postgres Database Engine 14.4 /var/lib/pgsql PGAdmin4 4 /usr/pgadmin4 Python 3.9.13 /bin/python3 Odoo 16 /opt/odoo wkhtmltopdf 0.12.5 /usr/local/bin/wkhtmltopdf8.) Scripts and Log Files The below table provides a breakdown of any scripts & log files created to enhance the useability of the chosen offering. Script/Log Path Description Initial_boot_update.sh /stage/scripts Update the Operating System with the latest updates available. Initial_boot_update.log /stage/scripts Provides output for initial_boot_update.sh postgresql_root_database_password.log /stage/scripts/ Postgres database user password 9.) Using System Components Instructions can be found below for using each component of the server build mentioned in section 7 of this user guide document. Aliyun CLI Run – Once logged into the server, you may check the options available for the use of Aliyun CLI via the below command. aliyun –-help Apache HTTP Server The Apache HTTP Server has been configured to start on boot, please use the below commands to start, stop and check the status of the service. #Check the HTTP Server is running systemctl status httpd#Stop the HTTP Server systemctl stop httpd #Start the HTTP Server systemctl start httpd Once the HTTP Server status has started, you will be able to access the Apache front end via the below URL exchanging the values between <> to match that of your own instance. :80 PGAdmin4 pgAdmin is designed to monitor and manage multiple PostgreSQL and EDB Advanced Server database servers, both local and remote, through a single graphical interface that allows the easy creation and management of database objects, as well as a number of other tools for managing your databases. Upon initial use of the image, run the below script as the root user to configure the credentials required to access the PGAdmin4 Console running locally on the target server. /usr/pgadmin4/bin/setup-web.sh OUTPUT & RESPOND [root@ip-172-31-93-13 ~]# /usr/pgadmin4/bin/setup-web.sh Setting up pgAdmin 4 in web mode on a Redhat based platform... Creating configuration database...NOTE: Configuring authentication for SERVER mode. Enter the email address and password to use for the initial pgAdmin user account: Email address: example@cloudimg.co.uk (This is an example, enter an email address of choice) Password: (Enter a password of choice) Retype password: (Enter a password of choice) pgAdmin 4 - Application Initialisation ====================================== Creating storage and log directories... Configuring SELinux... setsebool: SELinux is disabled. setsebool: SELinux is disabled. The Apache web server is running and must be restarted for the pgAdmin 4 installation to complete. Continue (y/n)? y (Enter y to restart Apache) Apache successfully restarted. You can now start using pgAdmin 4 in web mode at http://127.0.0.1/pgadmin4 [root@ip-172-31-93-13 ~]# You will now be able to access the PGAdmin4 Front End via the below URL exchanging the values between the <> to match that of your instance. /pgadmin4 Enter the credentials created in the above usr/pgadmin4/bin/setup-web.sh script.Click Login Select Add New Server to connect to the Postgres Database.Enter a name for the connection, this example will use ‘EXAMPLE CONNECTION’ Select Connection Enter in the Host field the IP address of your instance. Enter Username: postgresFor Password enter the value found in the /stage/scripts/postgresql_database_password.log file located on the instance. Click Save You will now have a remote connection to the Postgres database running on the instance. Postgres Database Engine For local administration and access to the postgres database, follow the below commands for checking the service, stopping the service & starting the service along with how to log into the database from the instance command line interface. As the root user, run the below commands to check, stop or start the postgres database service. By default, the service is configured to start on boot. #Check the postgres server status systemctl status postgresql-14 #Stop the postgres database engine systemctl stop postgresql-14 #Start the postgres database engine systemctl start postgresql-14Run the below commands as the root user to switch to the postgres OS user for accessing the postgres database engine command line interface from the instance locally. sudo su – postgres psql Odoo The Odoo service has been configured to start on server boot. You can issue the below commands to start, stop and check the status of the Odoo service. #Check the status of the odoo service systemctl status odoo16.service #Stop the odoo service systemctl stop odoo16.service #Start the odoo service systemctl start odoo16.service Once the server has booted, navigate to the below URL exchanging the values between <> to match that of your instance to access the initial Odoo configuration screen. :8069 A screen like below should now be visible.As you can see from the above, Odoo will automatically generate a master password value for you. If you wish to change this value, enter a new password in the Master Password field. Database Name = odoo Email = Enter an email of your choice, for this guide we have chosen example@cloudimg.co.ukPassword = Enter the password you would like to use for the new user created with the email address above, this user will act as the Odoo Administrator Phone Number = Enter a phone number of your choice Country = Enter a country of your choice Click Create Database Please wait a few moments for the database creation to happen in the background Once created, you will be redirected to the Odoo Dashboard screen above allowing you to install applications of your choosing to get started with Odoo.
To view the full page, please visit: Odoo 16 Community Edition on CentOS Stream 8 Product Userguide

Odoo 16 Community Edition on CentOS Stream 8

This product has charges associated with it for the build, maintenance and support of the image.
Buy now