Server Application Software + ISPConfig

Discussion in 'General' started by Ark74, Apr 5, 2016.

  1. Ark74

    Ark74 Member

    Hi again boys and girls!,
    Well, i'd like to ask a little about something that i haven't been able to figure it out.

    ISPConfig has multiple features, and should be enough to handle most websites, but when we talk about server applications, can this be achieved with ISPConfig?

    Let's say, Odoo.
    A python server application, can a site using Odoo be managed with ISPConfig?
    Taking in account that:
    • Runs on port 8069
    • Uses PostgreSQL
    • Requires Reverse Proxy to serve SSL
    Another case could be GitLab, IIRC, Gitlab is written on Ruby, is it possible?
    I've learned how to run ownCloud successfully, but since ownCloud is a purely PHP+MySQL software it's not really that hard.

    So i wonder, are there limitations to what kind of software can be managed by ISPConfig?
    Which would be the preferred way to decide about the hosting approach to use?

    Thanks for the advice and time, i'm still on my learning path.
    Please if i'm out of place asking this here, please let me know.
    GoBo likes this.
  2. GoBo

    GoBo New Member

    This is my small "How to install Odoo in ISPConfig" howto, at least it works for install Odoo in a Debian based ISPConfig install.
    • Install Postgresql in the server
    • Create a website in IspConfig (
    • Configure a Apache reverse proxy in IspConfig Panel by adding the following lines in web domain configutarion in
      Web Domain->Options->Apache Directives
      ProxyPreserveHost On
      ProxyPass /
      ProxyPassReverse /
    • Create a Shell user for de website
    • Login with the shell user of the website using ssh
    • Follow the install from source install instructions in Odoo documentation. Be carefull and notice that several steps must be run as root (as install Python dependencies).
    • Go to (Note that there is no port added to the URL) and finish the deploy.
    If you have any problem following this steeps, let me know. I'm used several Apache reverse proxy for different Apps like Gogs
    nut, Ark74 and till like this.
  3. Ark74

    Ark74 Member

    No need to install the server for every shell user. (I haven't use that approach).
    I'm using one install with databases filtering according to the domain so one site per db, and it works just fine ;)
    I've tried using proxypass before but it didn't work, or maybe i was doing it incorrectly :'(

    Any how, thank you so much \o/!
    nut likes this.
  4. nut

    nut New Member

    Hi Ark74,
    Have installed odoo it is running on

    Now proxy works with configuration, see below.
    How did you link odoo to a subdomain like and/or with ISPConfig?
    Database filtering, one site and db, same proxy configuration?!
    How to configure Database filtering?

    I had to use this Proxy configuration in Web Domain->Options->Apache Directives:
    ProxyPreserveHost On
    ProxyRequests Off
    <Proxy *>
       Order deny,allow
       Allow from all
    ProxyPass /
    ProxyPassReverse /

    Last edited: Oct 18, 2016
  5. GoBo

    GoBo New Member

    I doesn't use multi enterprise support in Odoo because every customer have Its Odoo installation customized in several ways. Every Odoo deployment have It's own subdomain and runs on a custom port for the reverse proxy configuration. Every shell user has It's own Postgres database user and It's owns databases (and only show Its own databases). In Debian I get this using this command:
    $ sudo su - postgres -c "createuser -s $USER"
    I only use database filtering to hide users testing and development databases. I hope It's clear enough.
  6. Ark74

    Ark74 Member

    Yeah, data filtering.
    Just enable it in your odoo-server.conf
    dbfilter = %h

    Use - intead of point on the db names of the domain.
    (database) mysub-domain-com => (domain)

    As GoBo said, for some heavy customization you might wanna use separate installations.
    Thank you guys!
  7. Adrien

    Adrien Member

    I am trying to ssh but I am getting the message
    Server refused our key
    I tried with different key ssh1 or ssh2; without key... with or without jailkit but always having the same answer.
    ISPConfig is installed on OVH Public Cloud.
    Any idea?
  8. Ark74

    Ark74 Member

    Sorry I just can't see how are these topics related.
    Maybe you might wanna open another thread for it.
  9. Adrien

    Adrien Member

    ;) I follow that procedure and answer from it but yeah, will open a new thread.
  10. Ark74

    Ark74 Member

    Ohh sorry, I couldn't relate these too.
    Adding a proxy configuration is a web server configuration, by the error you mention it seems to be an issue with your ssh key or service.

    Let me know the new thread link and I'll try to help :)
  11. Adrien

    Adrien Member

    Hi There, me again.
    I have tried multiple way to install Odoo on the same server than IPSConfig. I managed to get Odoo working but it is stopping my ispconfig... not able to login anymore. I was curious to understand which configuration you followed
  12. Ark74

    Ark74 Member

    Just create a new site and under Apache options paste what the comrades suggested.

    I used a site filter, so odoo would know what db to use according to the domain and db names.
    for the site:
    you'll need to name your db test_domain_com
    (and also enable db filter on odoo.conf)

    Are you using a VPS or VM?
    ISPConfig is enough load for a cheap VPS, adding odoo to the mixture could overwhelm it.

  13. Adrien

    Adrien Member

    Thanks a lot Ark74! but still not working
    I have 7gb ram, 2 cores (2.3Ghz per core) VM (offer B2-7). i think it should be enough to run both application

    But it is not working. could you please help. I am clarifying here what I followed, it might help you to understand where I am wrong...
    With Shell user, I am not able to install, i need to run with root access.
    I am following this tuto
    so where do you place the files? example here below
    1) system user.
    sudo adduser --system --home=/opt/odoo --group odoo
    in opt/odoo or under a folder place in /var/www/clients/client1/web3
    2) Python libraries:
    sudo pip install -r /opt/odoo/doc/requirements.txt
    sudo pip install -r /opt/odoo/requirements.txt
    under /opt/odoo or under a folder place in /var/www/clients/client1/web3
    3) and what about odoo-server.conf...

    I tried both scenario with proper implication for related folder. I got Odoo working but not ISPConfig anymore

    Also, my ISPConfig is install under the domain :
    I created a site for Odoo under the domain:
    so basically, same main website. is that wrong?
    anyhow, even if I install under, both should be accessible from ip with related port. **.***.**.***:8080 and **.***.**.***:8069 but it is not.

    Do you have any suggestion for helping me going in the right direction?
    Sorry but I am not yet very familiar, as you can see, with all these
    Thanks a lot
  14. Ark74

    Ark74 Member

    I use ISPConfig mosthly for html/mysql/php sites, not really for some framework as Odoo or GitLab or other high lever web applications.
    For you to install it on the ISPConfig shell, you need to tweak permissions enable apps and more @GoBo uses that approach (one odoo installation per user), I preferer to use Odoo as a standalone system, so I use /opt/odoo where technically all users share the same installation ony differents databases.

    Your problem I guess is that you closed all ports except 8069 with ufw, that could explain why you don't have access with ssh (port 22), can I say web (80/443), maybe?
    Hope it helps clarifying.

    Let me know if you need further assistance.
  15. Adrien

    Adrien Member

    Hey, Thanks a lot for your quick feedback.
    I understand your point here
    I will try to work on that and revert.
    Might take a while as I am new in these, I need to dig to figure out ... but learning though ;)
  16. Adrien

    Adrien Member

    Sorry for delay in replying but it was as simple as you told ;)
    Thanks a lot
  17. Ark74

    Ark74 Member

    Now don't forget to use the --proxy option in your Odoo or apache won't be able to tell the difference on the various databases.
  18. Adrien

    Adrien Member

    Yeap, i got that. thanks again

Share This Page