[freebsd] php-fpm + nginx; function base64_encode

Alexey Krylov krylov at ukr.net
Tue Feb 5 09:47:15 EET 2019


Установил ОС
uname -a
FreeBSD somehostname 11.2-RELEASE-p6 FreeBSD 11.2-RELEASE-p6 #0 r341813: Tue Dec 11 10:14:58 EET 2018     user at somehostname:/usr/obj/usr/src/sys/MYKERNEL  amd64

Установил и запустил php-fpm и nginx
pkg info | gsed -n -e "/php\|nginx/p"
nginx-1.14.2,2                 Robust and small WWW server
php73-7.3.0                    PHP Scripting Language
php73-bz2-7.3.0                The bz2 shared extension for php
php73-ctype-7.3.0              The ctype shared extension for php
php73-hash-7.3.0               The hash shared extension for php
php73-json-7.3.0               The json shared extension for php
php73-mbstring-7.3.0           The mbstring shared extension for php
php73-mysqli-7.3.0             The mysqli shared extension for php
php73-openssl-7.3.0            The openssl shared extension for php
php73-session-7.3.0            The session shared extension for php
php73-zip-7.3.0                The zip shared extension for php
php73-zlib-7.3.0               The zlib shared extension for php

создал файл
$iv = base64_encode('Stilagolavolavoly');

Открываю в браузере, получаю ошибку 500,
в логе
2019/02/05 09:41:34 [error] 69889#100834: *38 FastCGI sent in stderr: "PHP message: PHP Fatal error:
 Allowed memory size of 268435456 bytes exhausted (tried to allocate 12298126926392233984 bytes) in
/var/www/virtual/site1/test.php on line 3" while reading response header from upstream, client:, server: somehost, request: "GET /my.php HTTP/1.1", upstream:
"fastcgi://unix:/var/run/php-fpm-www.sock:", host: "somehost"

Подскажите, кто нибудь использует такие версии php/nginx ошибка такая же?

С уважением,
Крылов Алексей
тел. +38 (067) 725 95 54
email: krylov at ukr.net
skype: krylov_alexey

More information about the freebsd mailing list