Warning: include() [function.include]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-content/plugins/insert-images-popup/insert-images-popup.php(19) : eval()'d code on line 1

Warning: include_once() [function.include-once]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-settings.php on line 195

Warning: require_once() [function.require-once]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-content/plugins/nextgen-gallery/nggallery.php on line 284

Warning: require_once() [function.require-once]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-content/plugins/nextgen-gallery/nggallery.php on line 285

Warning: require_once() [function.require-once]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-content/plugins/nextgen-gallery/nggallery.php on line 286

Warning: require_once() [function.require-once]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-content/plugins/nextgen-gallery/nggallery.php on line 287

Warning: require_once() [function.require-once]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-content/plugins/nextgen-gallery/nggallery.php on line 288

Warning: require_once() [function.require-once]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-content/plugins/nextgen-gallery/nggallery.php on line 289

Warning: require_once() [function.require-once]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-content/plugins/nextgen-gallery/widgets/widgets.php on line 7

Warning: require_once() [function.require-once]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-content/plugins/nextgen-gallery/nggallery.php on line 290

Warning: require_once() [function.require-once]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-content/plugins/nextgen-gallery/nggallery.php on line 291

Warning: require_once() [function.require-once]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-content/plugins/nextgen-gallery/nggallery.php on line 294

Warning: require_once() [function.require-once]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-content/plugins/nextgen-gallery/nggallery.php on line 295

Warning: require_once() [function.require-once]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-content/plugins/nextgen-gallery/nggallery.php on line 296

Warning: require_once() [function.require-once]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-content/plugins/nextgen-gallery/nggallery.php on line 306

Warning: require_once() [function.require-once]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-content/plugins/nextgen-gallery/nggallery.php on line 307

Warning: require_once() [function.require-once]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-content/plugins/nextgen-gallery/nggallery.php on line 308

Warning: include_once() [function.include-once]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-content/plugins/nextgen-gallery/nggallery.php on line 309

Warning: include_once() [function.include-once]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-settings.php on line 195

Warning: include_once() [function.include-once]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-settings.php on line 195

Warning: require() [function.require]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-settings.php on line 199

Warning: require() [function.require]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-settings.php on line 200

Warning: require_once() [function.require-once]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-includes/functions.php on line 2675

Warning: require_once() [function.require-once]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-settings.php on line 277

Warning: include() [function.include]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-settings.php on line 291

Warning: require() [function.require]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-content/themes/focused/functions.php on line 21

Warning: require_once() [function.require-once]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-content/themes/focused/theme-options.php on line 18

Warning: require_once() [function.require-once]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-content/themes/focused/theme-options.php on line 19

Warning: require_once() [function.require-once]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-content/themes/focused/theme-options.php on line 20

Warning: require_once() [function.require-once]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-content/themes/focused/theme-options.php on line 21

Warning: require_once() [function.require-once]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-content/themes/focused/theme-options.php on line 22

Warning: require_once() [function.require-once]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-content/themes/focused/theme-options.php on line 23

Warning: require_once() [function.require-once]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-content/themes/focused/theme-options.php on line 24

Warning: require_once() [function.require-once]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-content/themes/focused/theme-options.php on line 25

Warning: require_once() [function.require-once]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-content/themes/focused/theme-options.php on line 28

Warning: require_once() [function.require-once]: Unable to allocate memory for pool. in /home/d/damon/damonlsd.ru/public_html/wp-content/themes/focused/admin/meta-box-class/meta-box-post-format.php on line 3
VMBitrix | Записная книжка
:::: МЕНЮ ::::
Запись с тегами: VMBitrix

mbstring.func_overload

Имеется сайт на VPS хостинге. На сервере развернута виртуальная машина VMBitrix.

Для корректной работы сайта, Битриксу необходима переменная окружения mbstring.func_overload, значение которой должно быть установлено 2.

Но кроме Битрикса, на сайте имеется phpMyAdmin, которого не устраивает это самое значение:

You have enabled mbstring.func_overload in your PHP configuration. This option is incompatible with phpMyAdmin and might cause some data to be corrupted!

Ничего как-бы сложного. В каталоге, где установлен phpMyAdmin в файле .htaccess необходимо прописать php_value mbstring.func_overload 0 и возрадоваться.

Но тут есть один момент. Дело в том, что PHP версии старше 5.2 не читают mbstring.func_overload из файла .htaccess, а на сервере установлен PHP Version 5.4.45.

В подобной ситуации можно поступить следующим образом (случай для виртуальной машины VMBitrix).

На сервере, в файле

/etc/httpd/bx/conf/default.conf

добавляем директиву

<Directory /home/bitrix/www/pathToPhpMyAdmin>
php_admin_value mbstring.func_overload 0
</Directory>

и делаем рестарт веб-сервера

service httpd restart

После этого все довольны: для Битрикса — MasterValue = 2, а для каталога с phpMyAdmin — MasterValue = 0

mbstring_func_overload