This question has been flagged
4 Replies
5064 Views

Hello Everybody

Sorry for my question, I guess it is more about apache2 config but maybe there a charitative soul for the newbies :-)    please forgive me if I mix some technical language, my poor server knowledge and english as my second language could do a real mess.

 I want to add a full nextcloud server like "https://mysite/nextcloud" where I have my Odoo installation. 

Environment: on my own machine: Ubuntu 18.4, Odoo 11 installed with  Yenthe666 script.

So far so good I followed a script out there  where said how to proxypass and redirect my server to change http://mysite:8069 to https://mysite    then my "/etc/apache2/sites-available/*.conf"  apache files are as this tutorial: https://antiun.github.io/odoo-reverse-proxy-howto/   to have a reference on where I am till now.

I tried several apache tutorials, virtual host configs but I give up, I couldn`t get the result, if someone could help me with what I should change on will be appreciated! :-) 

Avatar
Discard
Best Answer

It's not a good idea. The characteristics of a high-performance nextcloud server and a high-performance odoo server are not the same. I advise you to make two servers in a virtualized environment for example.

Regard,

Avatar
Discard
Best Answer

When you want to do things like that you need to have indepth knowledge of hostnames, request URLs and reverse proxy servers. This is not about Odoo and not about Nextcloud. In the first place I personally do not recommend to run Nextcloud on the same server as Odoo, because maintaining 2 different stacks on 1 server make things unnecessarily complicated.

The second issue is about using Odoo and Nextcloud with the same hostname. I recommend to use different domains for each applications, but at least different subdomains, this makes things much easier. Otherwise you have to analyze and separate all different URL paths of both applications and define the proper redirection rules in your vhost file.

Avatar
Discard
Author Best Answer

Dear Piotr

Oddo is a webserver "per se" and of course you can install many "Odoo´s" just pointing to different ports (8069, 8169 and so for example) but nextcloud is a php app then you should put nextcloud and Odoo behind an Apache (or nginx) proxy.

Pointly my question is how to configure things to have access to Oddo on "https://mysite.com" and nextcloud in "https://mysite/nextcloud"  when I try to do that, modifying the .conf example files of https://antiun.github.io/odoo-reverse-proxy-howto/    I just get Oddo saying "404 page not found"



Avatar
Discard

1) You can install many Odoo but different versions have different requirement(for example different PG version) and that is why many people are complaining that "Odoo 8 and Odoo 10 doesn't work on the same server")

2) SO it is an Apache error. What is your config file like? I am running Wordpress along with Odoo and html pages on one machine without any issue - I just keep the configs for Apache in separate files(for every domain/service)

Best Answer

Could you clarify what is the problem exactly? Apache configuration or conflict between nextcloud and Odoo?

If you used Yenthe's script Odoo is accessible by default on 8069 port. If you are new to the things I would recommend to use Nginx for both Nextcloud as well as for Odoo. As you already installed Odoo you can follow this steps:

1) Set the nginx uwith Odoo using official template (https://www.odoo.com/documentation/11.0/setup/deploy.html#https)

2) Install NextCloud and configure it with nginx using official documentation(https://docs.nextcloud.com/server/12/admin_manual/installation/nginx.html)

3) Restart the server and check if everything works.

As I never heard about nextcloud I don't know if they won't conflict with each other. For example if you want to install Odoo 9 and Odoo 12 on one server there are likely to be some errors. In that case you can use Docker which creates ecosystems for every application(containers) on the server. Both Odoo and NextCloud have installation packages for Docker.

Good luck

Avatar
Discard