Bug#839923: [phpmyadmin] Failed opening required '/usr/share/php/php-gettext/gettext.inc

2016-10-30 Thread Marcos Mobley
i had the same issue. the problem seems to be that
php_admin_value_open_basedir in /etc/phpmyadmin/apache.conf does not
include /usr/share/php/php-php-gettext
On Wed, 19 Oct 2016 15:50:49 -0400 James Stricherz  wrote:
> Package: phpmyadmin
> Version: 4:4.6.4+dfsg1-1
> Followup-For: Bug #839923
> 
> Dear Maintainer,
> 
> *** Reporter, please consider answering these questions, where
appropriate ***
> 
> Hi, this is what I did to "fix" the problem locally.
> 
> cd /usr/share/php
> mv php-gettext php-gettext.orig
> ln -s php-php-gettext php-gettext
> 
> symbolic linking within the original php-gettext/gettext.inc doesn't
> work and generates the error, but linking directory to directory does
> work. Of course, it will break things once the problem is fixed
> formally, so before updating you may want to reverse those changes.
> 
> Additionally this was also in my /var/log/apache2/error.log:
> 
>  open_basedir restriction in
>  effect. File(/usr/share/php/php-php-gettext/gettext.inc) is not
>  within the allowed path(s):
>  (/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/s
hare/php/php-
gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/:/usr/share/doc/ph
pmyadmin/:/usr/share/php/phpseclib/)
>  in /usr/share/phpmyadmin/libraries/common.inc.php on line 77
> 
> Hope that helps.
> 
> *** End of the template - remove these template lines ***
> 
> 
> -- System Information:
> Debian Release: stretch/sid
>   APT prefers testing
>   APT policy: (990, 'testing')
> Architecture: i386 (i686)
> 
> Kernel: Linux 4.6.0-1-686-pae (SMP w/8 CPU cores)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
(ignored: LC_ALL set to en_US.UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
> 
> Versions of packages phpmyadmin depends on:
> ii  dbconfig-common 2.0.6
> ii  dbconfig-mysql  2.0.6
> ii  debconf [debconf-2.0]   1.5.59
> ii  libjs-sphinxdoc 1.4.6-1
> ii  perl5.24.1~rc3-3
> ii  php 1:7.0+45
> ii  php-cli 1:7.0+45
> pn  php-gettext 
> ii  php-mbstring1:7.0+45
> ii  php-mysql   1:7.0+45
> ii  php-phpseclib   2.0.3-1
> ii  php-xml 1:7.0+45
> ii  php7.0 [php]7.0.11-1
> ii  php7.0-cli [php-cli]7.0.11-1
> ii  php7.0-json [php-json]  7.0.11-1
> ii  php7.0-mbstring [php-mbstring]  7.0.11-1

signature.asc
Description: This is a digitally signed message part


Bug#839923: [phpmyadmin] Failed opening required '/usr/share/php/php-gettext/gettext.inc

2016-10-19 Thread James Stricherz
Package: phpmyadmin
Version: 4:4.6.4+dfsg1-1
Followup-For: Bug #839923

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

Hi, this is what I did to "fix" the problem locally.

cd /usr/share/php
mv php-gettext php-gettext.orig
ln -s php-php-gettext php-gettext

symbolic linking within the original php-gettext/gettext.inc doesn't
work and generates the error, but linking directory to directory does
work. Of course, it will break things once the problem is fixed
formally, so before updating you may want to reverse those changes.

Additionally this was also in my /var/log/apache2/error.log:

 open_basedir restriction in
 effect. File(/usr/share/php/php-php-gettext/gettext.inc) 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/common.inc.php on line 77

Hope that helps.

*** End of the template - remove these template lines ***


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)

Kernel: Linux 4.6.0-1-686-pae (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages phpmyadmin depends on:
ii  dbconfig-common 2.0.6
ii  dbconfig-mysql  2.0.6
ii  debconf [debconf-2.0]   1.5.59
ii  libjs-sphinxdoc 1.4.6-1
ii  perl5.24.1~rc3-3
ii  php 1:7.0+45
ii  php-cli 1:7.0+45
pn  php-gettext 
ii  php-mbstring1:7.0+45
ii  php-mysql   1:7.0+45
ii  php-phpseclib   2.0.3-1
ii  php-xml 1:7.0+45
ii  php7.0 [php]7.0.11-1
ii  php7.0-cli [php-cli]7.0.11-1
ii  php7.0-json [php-json]  7.0.11-1
ii  php7.0-mbstring [php-mbstring]  7.0.11-1
ii  php7.0-xml [php-xml]7.0.11-1
ii  ucf 3.0036

Versions of packages phpmyadmin recommends:
ii  apache2 [httpd]   2.4.23-5
ii  php-bz2   1:7.0+45
ii  php-gd1:7.0+45
ii  php-tcpdf 6.2.12+dfsg2-1
ii  php-zip   1:7.0+45
ii  php7.0-bz2 [php-bz2]  7.0.11-1
ii  php7.0-gd [php-gd]7.0.11-1
ii  php7.0-zip [php-zip]  7.0.11-1

Versions of packages phpmyadmin suggests:
ii  chromium [www-browser]   53.0.2785.143-1
ii  elinks [www-browser] 0.12~pre6-11+b3
ii  lynx [www-browser]   2.8.9dev9-1
ii  mysql-server-5.6 [virtual-mysql-server]  5.6.30-1
ii  w3m [www-browser]0.5.3-29

-- Configuration Files:
/etc/phpmyadmin/config.inc.php changed [not included]

-- debconf information excluded



Bug#839923: [phpmyadmin] Failed opening required '/usr/share/php/php-gettext/gettext.inc

2016-10-06 Thread FM

Package: phpmyadmin
Version: 4:4.6.4+dfsg1-1
Severity: important

--- Please enter the report below this line. ---

Hi,

On a working installation of phpmyadmin, (don't know since which 
upgrade), in /var/log/apache2/error.log :


PHP Warning:  require_once(/usr/share/php/php-php-gettext/gettext.inc): 
failed to open stream: Operation not permitted in 
/usr/share/phpmyadmin/libraries/common.inc.php on line 77


(see #837507 ?)

and getting a blank page.

I reinstalled gettext, php-gettext (supposed to be a dummy package, but 
I can't remove it without removing phpmyadmin) php-php-gettext and 
phpmyadmin...

and now :

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


Regards,
Frédéric Moinard

--- System information. ---
Architecture: amd64
Kernel:   Linux 4.7.0-1-amd64

Debian Release: stretch/sid
  500 unstablewww.deb-multimedia.org   500 unstable 
ftp.fr.debian.org

--- Package information. ---
Depends (Version) | Installed
=-+-===
php   | 1:7.0+45
php-cli   | 1:7.0+45
php-mysql | 1:7.0+45
php-json  | php-mbstring  | 
1:7.0+45

php-xml   | 1:7.0+45
perl  | 5.24.1~rc3-3
debconf (>= 0.5)  | 1.5.59
 OR debconf-2.0   | libjs-sphinxdoc  (>= 1.0) | 
1.4.8-1

dbconfig-mysql| 2.0.6
 OR dbconfig-no-thanks|  OR dbconfig-common(<< 2.0.0) | 
2.0.6

php-gettext   | 1.0.11-4
php-phpseclib(>= 2.0) | 2.0.3-1
ucf (>= 0.28) | 3.0036


Recommends  (Version) | Installed
=-+-===
apache2   | 2.4.23-5
 OR lighttpd  |  OR httpd | php-gd 
  | 1:7.0+45

php-bz2   | 1:7.0+45
php-zip   | 1:7.0+45
php-tcpdf | 6.2.12+dfsg2-1


Suggests  (Version) | Installed
===-+-===
virtual-mysql-server| www-browser |