Disabling or remove warnings in PhpMyAdmin

Hi!

I have switch to ESM on Ubuntu pro program, and a new version with a security patch has been installed.
But some warnings occurs:

Warning in ./libraries/classes/Config.php#1112
file_exists(): open_basedir restriction in effect. File(/etc/phpmyadmin/config.inc.php) is not within the allowed path(s):

Warning in ./libraries/classes/Config.php#1153
file_exists(): open_basedir restriction in effect. File(/etc/phpmyadmin/config.inc.php) is not within the allowed path(s)

Warning in ./libraries/classes/Config.php#1760
is_dir(): open_basedir restriction in effect. File(/var/lib/phpmyadmin/tmp//twig) is not within the allowed path(s):

Warning in ./libraries/classes/Config.php#1761
mkdir(): open_basedir restriction in effect. File(/var/lib/phpmyadmin/tmp/twig) is not within the allowed path(s):

Warning in ./libraries/classes/Config.php#1763
is_dir(): open_basedir restriction in effect. File(/var/lib/phpmyadmin/tmp//twig) is not within the allowed path(s):

Warning in ./libraries/classes/Config.php#1112
file_exists(): open_basedir restriction in effect. File(/etc/phpmyadmin/config.inc.php) is not within the allowed path(s)

Warning in ./libraries/classes/Config.php#1153
file_exists(): open_basedir restriction in effect. File(/etc/phpmyadmin/config.inc.php) is not within the allowed path(s)

I have found somethings old that speak about a similar problem: phpMyAdmin warning - open_basedir restriction in effect - Vesta Control Panel - Forum

What can I do, please, in HestiaCP?

Thanks.

I don’t now what is changed but we are supposed to not load phpmyadmin from the repo.

Here is a extract from /etc/phpmyadmin/apache.conf

    <IfModule mod_php5.c>
            AddType application/x-httpd-php .php
            php_flag magic_quotes_gpc Off
            php_flag track_vars On
            php_flag register_globals Off
            php_admin_flag allow_url_fopen Off
            php_value include_path .
            php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
            php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext:/usr/share/javascript/:/usr/share/doc/phpmyadmin/:/var/lib/phpmyadmin/tmp/twig
    </IfModule>

I have add : :/usr/share/doc/phpmyadmin/:/var/lib/phpmyadmin/tmp/twig with no success.

This is modphp and php version 5.

It shouldn’t been used.

If the install is recent it should use:

        <FilesMatch \.php$>
            SetHandler "proxy:fcgi://127.0.0.1:9000"
        </FilesMatch>

Hi. I ask to Ubuntu channel why I have these warnings, someone ask me: “do you have a configuration file that sets or changes things related to open_basedir?”.

I didn’t know how to answer him. Is this the case?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.