Vesta phpmyadmin 500 ошибка

Ура, наконец то! PROBLEM RESOLVED

просто надо было в файле /etc/php5/apache2/php.ini
memory_limit = 128M
заменить на более большую цифру
например: memory_limit = 512M

как починить phpmyadmin или как импортировать базы данных в формате sql в обход панели vestacp через консольные команды

после распаковки бекапа перестал открываться phpmyadmin

версия phpmyadmin на старом хостинге:
Информация о версии: 3.4.11.1deb2+deb7u1
версию на новом хосте не могу сказать, ибо не знаю где смотреть

имею debian 7 установленой на virtualbox подключенную к интернету через сетевой мост.
вручную положил файл admin.2015-09-07.tar в /home/backup
набрал команду
v-restore-user admin admin.2015-09-07.tar
установилось не сразу
исправил пару ошибок возникающих из за apache2 и паролем от mysql
в итоге все все установилось.

root@debian:# v-restore-user admin admin.2015-09-07.tar
— WEB —
2015-09-14 00:09:23 default.domain

— DNS —
2015-09-14 00:09:42 default.domain

— MAIL —
2015-09-14 00:09:42 default.domain

— DB —
2015-09-14 00:09:42 admin_******
2015-09-14 00:09:42 admin_******
2015-09-14 00:09:42 admin_******

— CRON —
2015-09-14 00:09:43 7 records

— USER DIR —
2015-09-14 00:09:43 tmp

теперь настала пора переносить базы данных не созданных ранее через vestacp. пытаюсь зайти в phpmyadmin
но при переходе по локальному ip адресу
http://192.168.100.4/phpmyadmin/
выдается ошибка 500
а при переходе по статическому внешнему ip
http://xx.xx.xx.xx/phpmyadmin/
выдается пустая страница

что я пробовал?

обшарил весь форум. очень многое перепробовал. перезагружался.

chmod 777 /var/lib/php/session
такой папки нет в debian 7. есть только
/var/lib/php5 пустая папка
/var/lib/phpmyadmin в которой нету папки session. есть только
blowfish_secret.inc.php права 640
config.inc.php права 640
выставления прав 644 не дало никакого результата

в /usr/share/phpmyadmin решил не копаться
ко всем php файлам стоят права 644

результаты поиска по ключевому слову phpmyadmin

root@debian:/# find */phpmyadmin
etc/phpmyadmin
etc/phpmyadmin/htpasswd.setup
etc/phpmyadmin/lighttpd.conf
etc/phpmyadmin/phpmyadmin.desktop
etc/phpmyadmin/config.header.inc.php
etc/phpmyadmin/config.inc.php
etc/phpmyadmin/phpmyadmin.service
etc/phpmyadmin/config-db.php_
etc/phpmyadmin/config.footer.inc.php
etc/phpmyadmin/apache.conf

у всех этих файлов права 644 кроме
htpasswd.setup 640
config-db.php_

почему на конце черточка _ я фиг знает
пробовал убрать ее. ничего не поменялось

как импортировать базы данных в формате sql в обход панели vestacp через консольные команды
источник:

как починить phpmyadmin или как импортировать базы данных в формате sql в обход панели vestacp через консольные команды

Собственно проблема возникла у одного из наших клиентов после обновления CentOS. Проблему заметили не сразу. При попытке открыть интерфейс phpMyAdmin — стали получать 500-ю ошибку. В логах видим следующее:

PHP Fatal error:  Uncaught UnexpectedValueException: Overloading of string functions using mbstring.func_overload is not supported by phpseclib.

В качестве интерпретатора PHP используется httpd ( он же Apache )

В php.ini настройки mbstring такие:


mbstring.func_overload = 2

Итак, для того, чтобы решить эту проблему — необходимо внести правильные настройки в конфигурацию хоста httpd для phpMyAdmin (В VestaCP настройки находятся в /etc/httpd/conf.d/phpMyAdmin.conf)

Открываем этот файлик любимым текстовым редактором (я использую nano):

# nano /etc/httpd/conf.d/phpMyAdmin.conf

И вставляем туда следующее (можно сразу после объявления алиасов):


php_admin_value mbstring.func_overload 0

И далее не забываем, после внесения изменений, проверить конфигурацию httpd:

В ответ сервер должен выдать:

После чего перезапускаем httpd:

Напомню, что в рамках проекта server [admin] наша команда занимается настройкой и администрированием Linux серверов.

Back to top button

After installing VestaCP control panel I got a 500 internal server error when trying to access phpMyAdmin (on ubuntu 16.04). For web server using Lamp stack.

How can I resolve this problem?

After checking apache error log between the lines I saw:
AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1. Set the ‘ServerName’ directive globally to suppress this mess$

asked Dec 19, 2017 at 17:01

Mark178's user avatar

Mark178Mark178

111 silver badge6 bronze badges

10

You should check the error log while trying to access the page. On UBUNTU it should be under /var/log/apache2/error.log there you should see more information about the 500 Internal server error.

answered Dec 19, 2017 at 17:37

Olive.b's user avatar

Olive.bOlive.b

721 gold badge2 silver badges11 bronze badges

2

Not the answer you’re looking for? Browse other questions tagged

.

I have just installed LAMP and VestaCP and nothing else.

After checking the error log among those line I saw also:

AH00558: apache2: Could not reliably determine the server's fully qualified domain
  name, using 1st.example.com.
  Set the 'ServerName' directive globally to suppress thi$

AH00558: apache2: Could not reliably determine the server's fully qualified domain
  name, using 127.0.1.1.
  Set the 'ServerName' directive globally to suppress this mess$

Here is also the full paste bin error log file https://pastebin.com/dhAHiGb7

Zanna's user avatar

Zanna

69.3k56 gold badges217 silver badges327 bronze badges

asked Dec 19, 2017 at 19:44

Mark178's user avatar

1

Unfortunally there is no single guide on installing LAMP -that I know of-; however as you have not edited the .htaccess file manually, my educated guess would be, that in the main configuration file (or in the Virtual Host config file the directive AllowOverride AuthConfig is missing.

The tricky part is to find the right file. For VestaCP (https://vestacp.com/docs/#config-log-location-debian-ubuntu) you have the following default configs:

  • /etc/apache2/apache2.conf
  • /etc/apache2/conf.d/*
  • /home/$user/conf/web/apache2.conf
  • /home/$user/conf/web/sapache2.conf

You have to locate the config containing the directives for PHPMyAdmin.

Try something like

grep -r phpmyadmin /etc/apache2/*

In the corresponding file you should find

<Directory /usr/share/phpmyadmin>
...
</Directory>

If so, you could add

AllowOverride AuthConfig

within the <Directory ..> </Directory> Section and restart the apache2 service.

answered Dec 19, 2017 at 23:02

Stefan's user avatar

StefanStefan

3261 silver badge4 bronze badges

5

How to find the current apache webserver config:

  1. Find the main httpd process ps axuww | grep 'root.*http[d]' which should yield something like

root 1480 0.0 0.0 90788 7756 — SsJ 20:25 0:00.03 /usr/local/sbin/httpd

Lookout for the command, note if any config file is stated e.g. /usr/sbin/httpd -f /etc/apache2/conf/httpd.conf

  1. If no startup configfile is referenced with -f , we have to find the default config directory:
/usr/sbin/httpd -V
Server version: Apache/2.4.25
...
 -D HTTPD_ROOT="/usr/local"
 -D SERVER_CONFIG_FILE="etc/apache24/httpd.conf"

We are looking for the compiletime variables HTTPD_ROOT and SERVER_CONFIG_FILE. If the latter is not an absolute filepath, as above, it is expanded by the HTTPD_ROOT dir path; if SERVER_CONFIG_FILE is empty it defaults to $HTTPD_ROOT/conf/httpd.conf.

  1. Parsing the main configfile

We should have located the runtime configfile and are now parsing for the relevant directives. Among these are

  • ServerRoot
  • Include or IncludeOptional
  • DocumentRoot
  • Alias / ScriptAlias
  • and all and Containers

Firstly we have to locate the directory container for phpmyadmin. Therefore parse all configfiles that are referenced by the Include directives for ‘php’. In the good old days you had a Alias/ScriptAlias directive and a corresponding or Container for PHP together with a SetHandler directive. Nowadays you could have a php-fpm daemon running on your system which is connected through proxy_fcgi.

answered Dec 20, 2017 at 20:23

Stefan's user avatar

StefanStefan

3261 silver badge4 bronze badges

3

You must log in to answer this question.

Not the answer you’re looking for? Browse other questions tagged

.

Ура, наконец то! PROBLEM RESOLVED

просто надо было в файле /etc/php5/apache2/php.ini
memory_limit = 128M
заменить на более большую цифру
например: memory_limit = 512M

как починить phpmyadmin или как импортировать базы данных в формате sql в обход панели vestacp через консольные команды

после распаковки бекапа перестал открываться phpmyadmin

версия phpmyadmin на старом хостинге:
Информация о версии: 3.4.11.1deb2+deb7u1
версию на новом хосте не могу сказать, ибо не знаю где смотреть

имею debian 7 установленой на virtualbox подключенную к интернету через сетевой мост.
вручную положил файл admin.2015-09-07.tar в /home/backup
набрал команду
v-restore-user admin admin.2015-09-07.tar
установилось не сразу
исправил пару ошибок возникающих из за apache2 и паролем от mysql
в итоге все все установилось.

root@debian:# v-restore-user admin admin.2015-09-07.tar
— WEB —
2015-09-14 00:09:23 default.domain

— DNS —
2015-09-14 00:09:42 default.domain

— MAIL —
2015-09-14 00:09:42 default.domain

— DB —
2015-09-14 00:09:42 admin_******
2015-09-14 00:09:42 admin_******
2015-09-14 00:09:42 admin_******

— CRON —
2015-09-14 00:09:43 7 records

— USER DIR —
2015-09-14 00:09:43 tmp

теперь настала пора переносить базы данных не созданных ранее через vestacp. пытаюсь зайти в phpmyadmin
но при переходе по локальному ip адресу
http://192.168.100.4/phpmyadmin/
выдается ошибка 500
а при переходе по статическому внешнему ip
http://xx.xx.xx.xx/phpmyadmin/
выдается пустая страница

что я пробовал?

обшарил весь форум. очень многое перепробовал. перезагружался.

chmod 777 /var/lib/php/session
такой папки нет в debian 7. есть только
/var/lib/php5 пустая папка
/var/lib/phpmyadmin в которой нету папки session. есть только
blowfish_secret.inc.php права 640
config.inc.php права 640
выставления прав 644 не дало никакого результата

в /usr/share/phpmyadmin решил не копаться
ко всем php файлам стоят права 644

результаты поиска по ключевому слову phpmyadmin

root@debian:/# find */phpmyadmin
etc/phpmyadmin
etc/phpmyadmin/htpasswd.setup
etc/phpmyadmin/lighttpd.conf
etc/phpmyadmin/phpmyadmin.desktop
etc/phpmyadmin/config.header.inc.php
etc/phpmyadmin/config.inc.php
etc/phpmyadmin/phpmyadmin.service
etc/phpmyadmin/config-db.php_
etc/phpmyadmin/config.footer.inc.php
etc/phpmyadmin/apache.conf

у всех этих файлов права 644 кроме
htpasswd.setup 640
config-db.php_

почему на конце черточка _ я фиг знает
пробовал убрать ее. ничего не поменялось

как импортировать базы данных в формате sql в обход панели vestacp через консольные команды
источник:

как починить phpmyadmin или как импортировать базы данных в формате sql в обход панели vestacp через консольные команды

Собственно проблема возникла у одного из наших клиентов после обновления CentOS. Проблему заметили не сразу. При попытке открыть интерфейс phpMyAdmin — стали получать 500-ю ошибку. В логах видим следующее:

PHP Fatal error:  Uncaught UnexpectedValueException: Overloading of string functions using mbstring.func_overload is not supported by phpseclib.

В качестве интерпретатора PHP используется httpd ( он же Apache )

В php.ini настройки mbstring такие:


mbstring.func_overload = 2

Итак, для того, чтобы решить эту проблему — необходимо внести правильные настройки в конфигурацию хоста httpd для phpMyAdmin (В VestaCP настройки находятся в /etc/httpd/conf.d/phpMyAdmin.conf)

Открываем этот файлик любимым текстовым редактором (я использую nano):

# nano /etc/httpd/conf.d/phpMyAdmin.conf

И вставляем туда следующее (можно сразу после объявления алиасов):


php_admin_value mbstring.func_overload 0

И далее не забываем, после внесения изменений, проверить конфигурацию httpd:

В ответ сервер должен выдать:

После чего перезапускаем httpd:

Напомню, что в рамках проекта server [admin] наша команда занимается настройкой и администрированием Linux серверов.

After installing VestaCP control panel I got a 500 internal server error when trying to access phpMyAdmin (on ubuntu 16.04). For web server using Lamp stack.

How can I resolve this problem?

After checking apache error log between the lines I saw:
AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1. Set the ‘ServerName’ directive globally to suppress this mess$

asked Dec 19, 2017 at 17:01

Mark178's user avatar

Mark178Mark178

111 silver badge6 bronze badges

10

You should check the error log while trying to access the page. On UBUNTU it should be under /var/log/apache2/error.log there you should see more information about the 500 Internal server error.

answered Dec 19, 2017 at 17:37

Olive.b's user avatar

Olive.bOlive.b

721 gold badge2 silver badges10 bronze badges

2

I have just installed LAMP and VestaCP and nothing else.

After checking the error log among those line I saw also:

AH00558: apache2: Could not reliably determine the server's fully qualified domain
  name, using 1st.example.com.
  Set the 'ServerName' directive globally to suppress thi$

AH00558: apache2: Could not reliably determine the server's fully qualified domain
  name, using 127.0.1.1.
  Set the 'ServerName' directive globally to suppress this mess$

Here is also the full paste bin error log file https://pastebin.com/dhAHiGb7

Zanna's user avatar

Zanna

68.1k55 gold badges209 silver badges319 bronze badges

asked Dec 19, 2017 at 19:44

Mark178's user avatar

1

Unfortunally there is no single guide on installing LAMP -that I know of-; however as you have not edited the .htaccess file manually, my educated guess would be, that in the main configuration file (or in the Virtual Host config file the directive AllowOverride AuthConfig is missing.

The tricky part is to find the right file. For VestaCP (https://vestacp.com/docs/#config-log-location-debian-ubuntu) you have the following default configs:

  • /etc/apache2/apache2.conf
  • /etc/apache2/conf.d/*
  • /home/$user/conf/web/apache2.conf
  • /home/$user/conf/web/sapache2.conf

You have to locate the config containing the directives for PHPMyAdmin.

Try something like

grep -r phpmyadmin /etc/apache2/*

In the corresponding file you should find

<Directory /usr/share/phpmyadmin>
...
</Directory>

If so, you could add

AllowOverride AuthConfig

within the <Directory ..> </Directory> Section and restart the apache2 service.

answered Dec 19, 2017 at 23:02

Stefan's user avatar

StefanStefan

3261 silver badge4 bronze badges

5

How to find the current apache webserver config:

  1. Find the main httpd process ps axuww | grep 'root.*http[d]' which should yield something like

root 1480 0.0 0.0 90788 7756 — SsJ 20:25 0:00.03 /usr/local/sbin/httpd

Lookout for the command, note if any config file is stated e.g. /usr/sbin/httpd -f /etc/apache2/conf/httpd.conf

  1. If no startup configfile is referenced with -f , we have to find the default config directory:
/usr/sbin/httpd -V
Server version: Apache/2.4.25
...
 -D HTTPD_ROOT="/usr/local"
 -D SERVER_CONFIG_FILE="etc/apache24/httpd.conf"

We are looking for the compiletime variables HTTPD_ROOT and SERVER_CONFIG_FILE. If the latter is not an absolute filepath, as above, it is expanded by the HTTPD_ROOT dir path; if SERVER_CONFIG_FILE is empty it defaults to $HTTPD_ROOT/conf/httpd.conf.

  1. Parsing the main configfile

We should have located the runtime configfile and are now parsing for the relevant directives. Among these are

  • ServerRoot
  • Include or IncludeOptional
  • DocumentRoot
  • Alias / ScriptAlias
  • and all and Containers

Firstly we have to locate the directory container for phpmyadmin. Therefore parse all configfiles that are referenced by the Include directives for ‘php’. In the good old days you had a Alias/ScriptAlias directive and a corresponding or Container for PHP together with a SetHandler directive. Nowadays you could have a php-fpm daemon running on your system which is connected through proxy_fcgi.

answered Dec 20, 2017 at 20:23

Stefan's user avatar

StefanStefan

3261 silver badge4 bronze badges

3

Я только что установил LAMP и VestaCP и ничего больше.

После проверки журнала ошибок среди этих строк я также увидел:

AH00558: apache2: Could not reliably determine the server's fully qualified domain
  name, using 1st.example.com.
  Set the 'ServerName' directive globally to suppress thi$

AH00558: apache2: Could not reliably determine the server's fully qualified domain
  name, using 127.0.1.1.
  Set the 'ServerName' directive globally to suppress this mess$

Здесь также находится полный файл журнала ошибок вставки bin https://pastebin.com/dhAHiGb7

задан
19 December 2017 в 22:55

поделиться

2 ответа

К сожалению, нет единого руководства по установке LAMP, о котором я знаю; однако, поскольку вы не редактировали файл .htaccess вручную, я могу предположить, что в основном файле конфигурации (или в файле конфигурации виртуального хоста отсутствует директива AllowOverride AuthConfig.

чтобы найти нужный файл. Для VestaCP ( https://vestacp.com/docs/#config-log-location-debian-ubuntu ) у вас есть следующие настройки по умолчанию:

  • /etc/apache2/apache2.conf
  • /etc/apache2/conf.d / *
  • /home/$user/conf/web/apache2.conf
  • /home/$user/conf/web/sapache2.conf

Вы должны найти конфигурацию, содержащую директивы для PHPMyAdmin.

Попробуйте что-то вроде

grep -r phpmyadmin /etc/apache2/*

В соответствующем файле вы найдете

<Directory /usr/share/phpmyadmin>
...
</Directory>

. Если это так, вы можете добавить

AllowOverride AuthConfig

в раздел <Directory ..> </Directory> и перезапустить службу apache2.

ответ дан Stefan
19 December 2017 в 22:55

поделиться

Как найти текущую апачскую конфигурацию веб-сервера:

  1. Найдите основной процесс httpd ps axuww | grep 'root.*http[d]' который должен привести к чему-то как

базируйтесь 1480 0.0 0.0 90788 7756 — SsJ 20:25 0:00.03/usr/local/sbin/httpd

Наблюдение за командой, отметьте, указан ли какой-либо файл конфигурации, например. /usr/sbin/httpd -f /etc/apache2/conf/httpd.conf

  1. Если ни с каким запуском configfile не ссылаются -f , мы должны найти каталог конфигурации по умолчанию:
/usr/sbin/httpd -V
Server version: Apache/2.4.25
...
 -D HTTPD_ROOT="/usr/local"
 -D SERVER_CONFIG_FILE="etc/apache24/httpd.conf"

Мы ищем переменные времени компиляции HTTPD_ROOT и SERVER_CONFIG_FILE. Если последний не является абсолютным filepath, как выше, он расширен путем dir HTTPD_ROOT; если SERVER_CONFIG_FILE пуст, он принимает значение по умолчанию к $HTTPD_ROOT/conf/httpd.conf.

  1. Парсинг основного configfile

Мы должны были определить местоположение времени выполнения configfile и теперь анализируем для соответствующих директив. Среди них

  • ServerRoot
  • Включайте или IncludeOptional
  • DocumentRoot
  • Псевдоним / ScriptAlias
  • и все и Контейнеры

Во-первых мы должны определить местоположение контейнера каталога для phpmyadmin. Поэтому проанализируйте все configfiles, на которые ссылаются Включать директивы для ‘php’. В добрые старые времена у Вас были директива Alias/ScriptAlias и соответствие или Контейнер для PHP вместе с a SetHandler директива. В наше время у Вас мог быть php-fpm демон, работающий на Вашей системе, которая соединена через proxy_fcgi.

ответ дан Stefan
19 December 2017 в 22:55

поделиться

Другие вопросы по тегам:

Похожие вопросы:

I’m getting internal server error (HTTP Error 500) after installing phpmyadmin on a certain domain.

This is what my config.inc.php file currently reads.

<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * phpMyAdmin sample configuration, you can use it as base for
 * manual configuration. For easier setup you can use setup/
 *
 * All directives are explained in documentation in the doc/ folder
 * or at <http://docs.phpmyadmin.net/>.
 *
 * @package PhpMyAdmin
 */

/*
 * This is needed for cookie based authentication to encrypt password in
 * cookie
 */
$cfg['blowfish_secret'] = 'a8b7c6d'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
/*
 * Servers configuration
 */
$i = 0;

/*
 * First server
 */
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysql if your server does not have mysqli */
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = false;

/*
 * phpMyAdmin configuration storage settings.
 */

/* User used to manipulate with storage */
// $cfg['Servers'][$i]['controlhost'] = '';
// $cfg['Servers'][$i]['controlport'] = '';
// $cfg['Servers'][$i]['controluser'] = 'pma';
// $cfg['Servers'][$i]['controlpass'] = 'pmapass';

/* Storage database and tables */
// $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
// $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
// $cfg['Servers'][$i]['relation'] = 'pma__relation';
// $cfg['Servers'][$i]['table_info'] = 'pma__table_info';
// $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
// $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
// $cfg['Servers'][$i]['column_info'] = 'pma__column_info';
// $cfg['Servers'][$i]['history'] = 'pma__history';
// $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
// $cfg['Servers'][$i]['tracking'] = 'pma__tracking';
// $cfg['Servers'][$i]['designer_coords'] = 'pma__designer_coords';
// $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
// $cfg['Servers'][$i]['recent'] = 'pma__recent';
// $cfg['Servers'][$i]['users'] = 'pma__users';
// $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
// $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
/* Contrib / Swekey authentication */
// $cfg['Servers'][$i]['auth_swekey_config'] = '/etc/swekey-pma.conf';

/*
 * End of servers configuration
 */

/*
 * Directories for saving/loading files from server
 */
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';

/**
 * Defines whether a user should be displayed a "show all (records)"
 * button in browse mode or not.
 * default = false
 */
//$cfg['ShowAll'] = true;

/**
 * Number of rows displayed when browsing a result set. If the result
 * set contains more rows, "Previous" and "Next".
 * default = 30
 */
//$cfg['MaxRows'] = 50;

/**
 * disallow editing of binary fields
 * valid values are:
 *   false    allow editing
 *   'blob'   allow editing except for BLOB fields
 *   'noblob' disallow editing except for BLOB fields
 *   'all'    disallow editing
 * default = blob
 */
//$cfg['ProtectBinary'] = 'false';

/**
 * Default language to use, if not browser-defined or user-defined
 * (you find all languages in the locale folder)
 * uncomment the desired line:
 * default = 'en'
 */
//$cfg['DefaultLang'] = 'en';
//$cfg['DefaultLang'] = 'de';

/**
 * default display direction (horizontal|vertical|horizontalflipped)
 */
//$cfg['DefaultDisplay'] = 'vertical';


/**
 * How many columns should be used for table display of a database?
 * (a value larger than 1 results in some information being hidden)
 * default = 1
 */
//$cfg['PropertiesNumColumns'] = 2;

/**
 * Set to true if you want DB-based query history.If false, this utilizes
 * JS-routines to display query history (lost by window close)
 *
 * This requires configuration storage enabled, see above.
 * default = false
 */
//$cfg['QueryHistoryDB'] = true;

/**
 * When using DB-based query history, how many entries should be kept?
 *
 * default = 25
 */
//$cfg['QueryHistoryMax'] = 100;

/**
 * Should error reporting be enabled for JavaScript errors
 *
 * default = 'ask' 
 */
//$cfg['SendErrorReports'] = 'ask';

/*
 * You can find more configuration options in the documentation
 * in the doc/ folder or at <http://docs.phpmyadmin.net/>.
 */
?>

What changes do I need to do on this file? I’ve already followed up various posts but its not helping.
It this the problem with the domain being down?

Thanks in advance.

asked Feb 11, 2014 at 10:51

Phantom's user avatar

7

If you are using apache2.4 and PHP 7, run

sudo apt-get install php-mbstring php7.0-mbstring php-gettext

then restart your server

sudo service apache2 restart

answered Apr 25, 2016 at 10:10

Fredrick Anyera M's user avatar

3

I know it has been a couple of years, and I noticed by your comments that still no luck. Here I run into the same 500 error after installing through apt.
I look for my Apache error log file (/var/log/apache2/error.log), and there was the following entry:

[Thu Aug 11 22:38:25.930453 2016] [:error] [pid 18138] [client ::1:35026] PHP Fatal error:  require_once(): Failed opening required '/usr/share/php/php-gettext/gettext.inc' (include_path='.:/usr/share/php') in /usr/share/phpmyadmin/libraries/select_lang.lib.php on line 477

It shows that the library gettext was not found, so I intalled it:

sudo apt-get install  php-gettext

And restarted Apache:

sudo service apache2 restart

That worked for me. Hope it helps.
PS: If still not working you may try to sym link the folder just in case:

sudo ln -s /usr/share/phpmyadmin /var/www/

answered Aug 11, 2016 at 20:58

Raúl's user avatar

RaúlRaúl

711 silver badge3 bronze badges

OK, if you have already installed packages php-mbstring and php-gettext and it still doesn’t work, first take a look to Apache logs:

tail /var/log/apache2/error.log

If you find something like this:

Fatal error: Uncaught Twig_Error_Syntax: Unexpected «apply» tag
(expecting closing tag for the «if» tag defined near line 17). in
/usr/share/phpmyadmin/templates/columns_definitions/column_virtuality.twig
on line 17

This is a known bug in phpmyadmin 4.9.4

The bug has been fixed in phpmyadmin 4.9.5 but please note that if you are under Debian 10 Buster you will need to upgrade the package php-twig to an higher version rather than the one included with Buster, or package phpmyadmin
will be kept back to 4.9.4 during system upgrades.

You can simply upgrade php-twig from next Debian version (11, Bullseye)

apt-get install php-twig/bullseye

This worked for me.
Hope this doesn’t broke something else in Deb 10 LAMP setup.

answered Apr 16, 2020 at 17:01

bytepan's user avatar

bytepanbytepan

3512 silver badges5 bronze badges

Ensure that your PHP version matches the used PHP module in Apache2:

php -v  //PHP 7.4.4 
ls -d /etc/apache2/mods-enabled/php*.conf // php7.3.conf

sudo a2dismod php7.3  // disable 7.3
sudo a2enmod php7.4   // enable 7.4
sudo systemctl restart apache2

I installed the php-mbstring php-gettext (also excplicitly for latest PHP version), but it still wasn’t working. At least it took me hours until I noticed apache decides itself what PHP version is used.

answered Apr 6, 2020 at 20:51

User Rebo's user avatar

User ReboUser Rebo

1,85121 silver badges29 bronze badges

After applying all the above mentioned solution, none worked for me.

This worked for me:

I thing this error comes from a phpmyadmin library

So, we need to modify following File

File Location : /usr/share/phpmyadmin/libraries/sql.lib.php

Line No : 614

run following command in ubuntu terminal

sudo nano /usr/share/phpmyadmin/libraries/sql.lib.php
Replace two codes :

Replace : (count($analyzed_sql_results[‘select_expr’] == 1)

With : (count($analyzed_sql_results[‘select_expr’]) == 1)

Replace : && ($analyzed_sql_results[‘select_expr’][0] == ‘*’)))

With : && ($analyzed_sql_results[‘select_expr’][0] == ‘*’))

answered Jun 25, 2020 at 19:46

PrafulPravin's user avatar

if you want to access the mysql data from your server to your computer

you need to change

$cfg['Servers'][$i]['host'] = 'localhost';

to you server ip address.

$cfg['Servers'][$i]['host'] = 'your.server.ip.add.here';

update

$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Servers'][$i]['host'] = 'your.server.ip.add.here';
$cfg['Servers'][$i]['user'] = 'db name here';
$cfg['Servers'][$i]['password'] = 'db password';

make sure that those fields are properly set up..

answered Feb 11, 2014 at 11:28

ibondoc22's user avatar

2

Понравилась статья? Поделить с друзьями:
  • Ves sk a18 ошибка e1
  • Victoria расшифровка ошибок
  • Victoria программа как исправить ошибки
  • Verocup 100 ошибка заварочного блока
  • Vermintide 2 ошибка при запуске приложения 0xc0000142