MariaDB-FileRun-Docker Installation shows PHP7-Error

  • Hi there,
    I installed MariaDB and FileRun Docker according to the excellent guide of @macnb (Thanks a lot for this) Migrating MariaDB MySQL Server Plugin to MariaDB Docker Container and PART 3: Install FileRun Docker Cloud service to MariaDB .


    However, trying to connect to FileRun I receive a blank page and the log files of FileRun show:

    Code
    + id -u www-data
    + '[' '!' -e /var/www/html/index.php ']'
    + exec apache2-foreground
    AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.3. Set the 'ServerName' directive globally to suppress this message
    AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.3. Set the 'ServerName' directive globally to suppress this message
    [Mon Jun 24 16:24:40.598828 2019] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.25 (Debian) configured -- resuming normal operations
    [Mon Jun 24 16:24:40.599235 2019] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
    [Mon Jun 24 16:25:09.509794 2019] [php7:error] [pid 18] [client 172.18.0.1:38302] PHP Fatal error:  Uncaught  --> Smarty: unable to write file /var/www/html/system/data/temp/smarty/wrt5d10dd457bc922_30974301 <-- \n  thrown in /var/www/html/system/classes/smarty/libs/sysplugins/smarty_internal_runtime_writefile.php on line 49
    172.18.0.1 - - [24/Jun/2019:16:25:09 +0200] "GET / HTTP/1.1" 500 185 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0"

    Could someone offer a hint on how to fix this error?


    Thanks in advance,
    topi

    OpenMediaVault 6.x (most recent stable version) -- 64 bit -- OMV-Extras 6.x (most recent stable version) -- Default Kernel

  • ... so I found the reason for the error just now:
    The html and the my-data directories did not belong to user www-data but to root.
    So I did "chown -R www-data:www-data html" and "chown -R www-data:www-data my-data" and restared the MariaDB and the Filerun docker and everything works now as intended.

    OpenMediaVault 6.x (most recent stable version) -- 64 bit -- OMV-Extras 6.x (most recent stable version) -- Default Kernel

    • Offizieller Beitrag

    ... so I found the reason for the error just now:
    The html and the my-data directories did not belong to user www-data but to root.
    So I did "chown -R www-data:www-data html" and "chown -R www-data:www-data my-data" and restared the MariaDB and the Filerun docker and everything works now as intended.

    That's why you don't create directories as root.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!