PhpMyAdmin not working (gettext)

Discussion in 'ISPConfig 3 Priority Support' started by faberchr, Sep 18, 2018.

  1. faberchr

    faberchr Member HowtoForge Supporter

    Hello, today I ran
    Code:
    apt-get update
    at-get upgrade
    
    I noticed that PHP was updated.
    Code:
    php --version
    PHP 7.2.10-0ubuntu0.18.04.1 (cli) (built: Sep 13 2018 13:45:02) ( NTS )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
        with Zend OPcache v7.2.10-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies
    
    Unfortuntaley, I noticed that PhpMyAdmin (https://IPADDRESS:8080/phpmyadmin) is not working.

    So I tried:
    Code:
    /tail /var/log/apache2/error.log
    PHP Warning:  is_dir(): open_basedir restriction in effect. File(/usr/share/php/php-php-gettext/) is not within the allowed path(s): (/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/:/usr/share/doc/phpmyadmin/:/usr/share/php/phpseclib/) in /usr/share/phpmyadmin/libraries/vendor_config.php on line 64
    
    Please, help me to solve this problem.
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    First try
    Code:
    apt-get dist-upgrade
    in case some part of upgrade is missing.
    That error.log line is a Warning, it should not prevent stuff from working. Check if you have error messages in some log.
    Also: in what way is phpmyadmin not working? What happens when you try to use it?
     
  3. faberchr

    faberchr Member HowtoForge Supporter

    Hello Taleman, and thanks for your reply. Here we go:
    apt-get dist-upgrade
    Code:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Calculating upgrade... Done
    The following packages have been kept back:
      icu-devtools libicu-dev
    0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
    
     
  4. faberchr

    faberchr Member HowtoForge Supporter

    Hello again and: yes, that is true. So the next line looks like a clarification:
    Code:
    PHP Fatal error:  require_once(): Failed opening required '/usr/share/php/php-gettext/gettext.inc' (include_path='.') in /usr/share/phpmyadmin/libraries/common.inc.php on line 77
    
    I'm simply trying to reach PhpMyAdmin as usual (See #1 post).

    Thanks again
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Install the php-gettext package.
     
  6. faberchr

    faberchr Member HowtoForge Supporter

    I think it's already installed.
    Code:
    apt-get install php-gettext
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    php-gettext is already the newest version (1.0.12-0.1).
    0 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.
    
    My guess is: are opendir restrictions (See my #1 post) the cause of this error?
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Hmm. Maybe some file of it got removed, try to reinstall it with:

    apt-get install --reinstall php-gettextif this does not help, post the output of:

    ls -la /usr/share/php/php-gettext/
     
  8. faberchr

    faberchr Member HowtoForge Supporter

    Still not working.
    Code:
    ls -la /usr/share/php/php-gettext/
    total 8
    drwxr-xr-x  2 root root 4096 Sep 20 12:22 .
    drwxr-xr-x 22 root root 4096 Sep 11 23:30 ..
    lrwxrwxrwx  1 root root   30 Jan 29  2017 gettext.inc -> ../php-php-gettext/gettext.inc
    lrwxrwxrwx  1 root root   30 Jan 29  2017 gettext.php -> ../php-php-gettext/gettext.php
    lrwxrwxrwx  1 root root   30 Jan 29  2017 streams.php -> ../php-php-gettext/streams.php
    
     
  9. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    You still have upgrade that is not complete:
    Run the command
    Code:
    apt-get dist-upgrade
    Do you have multiple PHP versions installed?
     
  10. faberchr

    faberchr Member HowtoForge Supporter

    @Taleman, thanks for your reply. Please see #3.
    Yes, I've multiple PHP version installed.
     
  11. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    In #3 you had 2 packages kept back. In #6 you had 23. Do you know what you are doing and these partially done updates are what you need?
     

Share This Page