apache2 - phpmyadmin not working anymore since switching to php7 - Ask Ubuntu


the problem seems this:

phpmyadmin not working due missing extensions

but have php-gettext installed, still it's not working. log says this:

[fri nov 11 00:22:06.899944 2016] [:error] [pid 19641] [client 93...:53244] php warning: require_once(): open_basedir restriction in effect. file(/usr/share/php/php-php-gettext/gettext.inc) not within 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 [fri nov 11 00:22:06.900007 2016] [:error] [pid 19641] [client 93...:53244] php warning: require_once(/usr/share/php/php-php-gettext/gettext.inc): failed open stream: operation not permitted in /usr/share/phpmyadmin/libraries/common.inc.php on line 77 [fri nov 11 00:22:06.900027 2016] [:error] [pid 19641] [client 93...:53244] 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 had same problem , solved this:

for reason path /usr/share/php/php-gettext renamed (or wrong?) in phpmyadmin files.

you have change files this:

/usr/share/phpmyadmin/libraries/vendor_config.php:

change block:

/**  * path gettext.inc file. useful when want php-gettext somewhere else,  * eg. /usr/share/php/gettext/gettext.inc.  */ if (is_dir('/usr/share/php/php-php-gettext/')) {     define('gettext_inc', '/usr/share/php/php-php-gettext/gettext.inc'); } else {     define('gettext_inc', '/usr/share/php/php-php-gettext/gettext.inc'); } 

to this:

/**  * path gettext.inc file. useful when want php-gettext somewhere else,  * eg. /usr/share/php/gettext/gettext.inc.  */ if (is_dir('/usr/share/php/php-gettext/')) {     define('gettext_inc', '/usr/share/php/php-gettext/gettext.inc'); } else {     define('gettext_inc', '/usr/share/php/php-gettext/gettext.inc'); } 

and configuration open_basedir in /etc/apache2/conf-enabled/phpmyadmin.conf to:

php_admin_value open_basedir /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/ 

alternatively (i didn't try it), copy or link path /usr/share/php/php-gettext/ /usr/share/php/php-php-gettext/


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User