SLES 12 SP3 - Webapp - config.php is missing



  • hi,

    i newly installed Kopano 8.5.5. Everything works so far except i can’t reach Webapp. Apache allways give me “config.php is missing”

    It makes no difference if i try to connect via http://localhost/webapp or http://IP-Adress/webapp. The Error is the same.
    I checked, and find the config.php in /etc/kopano/webapp and /usr/share/kopano-webapp



  • The config should be here: /etc/kopano/webapp/config.php
    The webapps : /usr/share/kopano-webapp/ and has a symlink config.php to /etc/kopano/webapp/config.php

    What does the webserver errorlog tel you.



  • yes, the config isn’t missing at all, it resides in the mentioned directory.

    the apache errorlog logs nothing in the moment i try to access webapp.
    Maybe i should raise the loglevel.



  • maybe its because of you configured a hostname and your testing with :
    http://localhost/webapp or http://IP-Adress/webapp.
    run apache2ctl -S to have a look at your apache config.

    and tail -f *.log in the apache webfolder then try again.
    I think you hitting a vhost misconfiguration and you request is ending up in a unconfigured vhost. aka the ip default.

    I made this script (below) on debian but you can adopt it for sles.
    https://github.com/thctlo/debian-scripts/blob/master/setup-apache2-vhost-defaults.sh
    basicly it does the follow, for every ip create a ip vhost. then create a namebase host of the previous ip host.

    You should see something like this in the end, ( localhost as example )
    127.0.0.1:80 is a NameVirtualHost
    default server 127.0.0.1 (/etc/apache2/sites-enabled/000-localhost.conf:2)
    port 80 namevhost 127.0.0.1 (/etc/apache2/sites-enabled/000-localhost.conf:2)
    port 80 namevhost 127.0.0.1 (/etc/apache2/sites-enabled/000-localhost.conf:19)
    alias localhost
    alias [::1]
    alias localhost-ip6
    alias ip6-loopback
    alias localhost.localdomain

    i hope this helps a bit in finding your problem.


Log in to reply