Articles by "Odoo"

This script is based on the install script from André Schenkels (https://github.com/aschenkels-ictstudio/openerp-install-scripts) but goes a bit further and has been improved. This script will also give you the ability to define an xmlrpc_port in the .conf file that is generated under /etc/ This script can be safely used in a multi-odoo code base server because the default Odoo port is changed BEFORE the Odoo is started.

Installation procedure

1. Download the script:
sudo wget https://raw.githubusercontent.com/Yenthe666/InstallScript/12.0/odoo_install.sh
2. Modify the parameters as you wish.
There are a few things you can configure, this is the most used list:
OE_USER will be the username for the system user.
INSTALL_WKHTMLTOPDF set to False if you do not want to install Wkhtmltopdf, if you want to install it you should set it to True.
OE_PORT is the port where Odoo should run on, for example 8069.
OE_VERSION is the Odoo version to install, for example 12.0 for Odoo V12.
IS_ENTERPRISE will install the Enterprise version on top of 12.0 if you set it to True, set it to False if you want the community version of Odoo 12.
OE_SUPERADMIN is the master password for this Odoo installation.

3. Make the script executable

sudo chmod +x odoo_install.sh
4. Execute the script:
sudo ./odoo_install.sh


Step 1: Update the system
Before installing any packages on your CentOS instance, it is recommended to update the system. Login using the sudo user and run the following commands to update the system.
sudo yum -y update
sudo reboot
Once the system has rebooted, log in again as the sudo user and continue with the next steps.
Step 2: Install and configure PostgreSQL
You need to install and configure PostgreSQL, which is the default database system for Odoo.
sudo yum install -y postgresql-server
Initialize, start, and set PostgreSQL to start automatically when the system boots.
sudo postgresql-setup initdb
sudo systemctl start postgresql
Step 3: Install Odoo
You can now install Odoo.
sudo yum install -y yum-utils
sudo yum-config-manager --add-repo=https://nightly.odoo.com/10.0/nightly/rpm/odoo.repo
sudo yum install -y odoo
--------------------------------------
Trường hợp lỗi thiếu package khi install thì sử dụng lênh sau

yum update && yum install odoo

Start Odoo and set it to start automatically when the system boots.
sudo systemctl enable odoo
sudo systemctl start odoo
Modify the firewall rules to allow users to access Odoo via port 8069.
sudo firewall-cmd --zone=public --permanent --add-service=http
sudo firewall-cmd --zone=public --permanent --add-port=8069/tcp
sudo firewall-cmd --reload
Step 4: Configure Odoo
You can now access Odoo using your web browser at the following address.
http://[your-vultr-instance-IP]:8069
Replace [your-vultr-server-IP] with the IP address of your Vultr instance; and don't forget to add the port number 8069 at the end of the address.
Choose a name for the database that Odoo will create, enter your e-mail address, and choose a password for the admin user. Proceed by clicking the Create database button.
Once the database has been set up, you will be brought into the Odoo user interface where you can customize your Odoo system by installing apps.
Step 5: Install Nginx to facilitate user access
You can redirect traffic on the default HTTP port: 80 and the default HTTPS port: 443 to Odoo (running on port 8069), so that users no longer have to add the port number 8069 every time they access the system. Using Nginx also enables you to secure Odoo using an SSL certificate, the process to install an SSL certificate for Nginx is described here.
Install Nginx.
sudo yum install -y nginx
Edit the /etc/nginx/nginx.conf file using a text editor such as nano.
sudo nano /etc/nginx/nginx.conf
Find the location section.
location / {
}
Add the following segment so that the location section looks like this.
location / {
    proxy_pass http://127.0.0.1:8069;
    proxy_redirect off;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
}
Restart Nginx and set it to start automatically when the system boots.
sudo systemctl restart nginx
sudo systemctl enable nginx
You can now visit the Odoo system from both port 8069 and port 80.
http://[your-vultr-instance-IP]:8069
http://[your-vultr-instance-IP]


=========================
Tham khảo thêm link 
https://www.rosehosting.com/blog/install-odoo-10-on-centos-7-with-apache-as-a-reverse-proxy/

MKRdezign

Contact Form

Name

Email *

Message *

Powered by Blogger.
Javascript DisablePlease Enable Javascript To See All Widget