Hogyan kell telepíteni az Odoo 11 az Ubuntu 16.04 az Apache, mint egy fordított proxy

 

 

Hogyan kell telepíteni az Odoo 11 a egy Ubuntu 16.04 VPS and how to configure Apache as a reverse proxy for your Odoo 11 így érheti el Odoo alkalmazás révén a domain gépelés nélkül Odoo port az URL. Odoo is one of the most popular and most powerful Open Source ERP business software based on the Python programming language. For this version, much of the focus is given on the intuitiveness, usefulness and better accessibility to the end-users & development team. With Version 11, we can see new website dashboard incorporated with various keyboard shortcuts which makes navigating through Odoo quicker and easier than ever. Ezen kívül, there is a new global search option in the homepage itself.

If you follow these instructions properly it should take no longer than 20 minutes to install Odoo 11 az Ubuntu 16.04 VPS.

Odoo Installation

Mielőtt elkezdené, sírnod kell connect to your server SSH-n keresztül. Is, if this is your first time logging to your VPS make sure you check out our Első lépések után kapok egy Ubuntu VPS a bemutató.

After you have successfully logged in, we need to make sure that all our packages are friss a következő parancsok futtatásával:

apt-get update
apt-get upgrade

You can also enable Automatikus frissítések on your VPS.

To install Odoo 11 on our system we will use a script made by Yenthe Van Ginneken.

Navigate to a directory wherever you would like to download the script. Például, to go into the ‘home’ directory you need to type:

cd /home

Then use the following command to download the script:

wget https://raw.githubusercontent.com/Yenthe666/InstallScript/11.0/odoo_install.sh

You can also modify the script if you would like with:

Nano odoo_install.sh

Például, you can change the version you would like to install, the location of where it will installed, whether you install the enterprise version or not and most important you can change the master admin password you would like to use.

After you make the desired changes, make sure you save them.

In order to run the script we need to make the file executable with the following command:

chmod + x odoo_install.sh

Now we can run the script and wait until Odoo 11 gets installed.

./odoo_install.sh

Congratulations! Odoo 11 has now been installed on your Ubuntu 16.04 VPS.

If you haven’t set the master admin password before the installation you can do it now by editing the Odoo 11 konfigurációs fájl. You can open it with the following command:

Nano /etc/odoo-server.conf

and change the admin_password field with a strong password. You can also generate one from the command line.

admin_passwd = StrongPassword

Odoo a módosítások érvénybe léptetéséhez indítsa újra:

/etc/init.d/Odoo-Server újra

To access your Odoo, open your browser and navigate to http://your-server-IP:8069. Kezdetben, you would be asked to create a new database.

Once the database is created, you will get redirected to the admin panel from where you can log in as the admin user.

After successfully logging in you can start using your Odoo 11 and configure it to your needs, install additional modules etc.

Kap egy VPS from us and we’ll install, configure and optimize Odoo for you, ingyen!

 

Setting up a Reverse Proxy

In order to access your Odoo application only by using your domain name, without the port number in the URL, we need to set up Apache as a reverse proxy.

Első, we will need to enable some additional proxy modules for Apache. You can do this with the following commands:

a2enmod proxy
a2enmod proxy_http

Ha ez megtörtént, open a new configuration file for your domain with the following command:

nano /etc/apache2/sites-available/your_domain.conf

And enter the following:

<VirtualHost *: 80>
ServerName your_domain.com
ServerAlias www.your_domain.com

ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyPass / http://your_domain.com:8069/
ProxyPassReverse / http://your_domain.com:8069/
<Helyszín />
Order allow,deny
Allow from all
</Hely>
</VirtualHost>

Enable “your_domain.conf” configuration in Apache using:

ln -s /etc/apache2/sites-available/your_domain.conf /etc/apache2/sites-enabled/your_domain.conf

Remember to replace your ‘your_domain.com’ with your actual domain name. Mentse a fájlt, close it and restart Apache for the changes to take effect:

szolgáltatás apache2 újraindítása

Ez az. If you followed all of the instructions properly you can now access your Odoo 11 using your domain name.

Emellett, if you would like to improve the performance of your Odoo, you can also check out our tutorial on How to speed up Odoo.

 

Forrás