Welcome! Log In Create A New Profile

Advanced

Re: unitd + php5.6

Валентин Бартенев
April 23, 2019 10:14AM
On Tuesday 23 April 2019 14:42:48 Anton Kiryushkin wrote:
> Здравствуйте.
>
> Пытаюсь собрать модуль для unitd для запуска php5.6 (на сервере есть и 7-й,
> но в данном случае нужен именно 5-й).
>
> Сам php5.6 есть, у него есть php-config5.6, однако unitd при сборке упорно
> утверждает, что у него что-то не так:
>
> # ./configure php --module=php5.6 --config=/usr/bin/php-config5.6
> --lib-path=/usr/lib/apache2/modules

Это видимо директория с модулями Apache, которые к Unit-у никакого
отношения не имеют.


> configuring PHP module
> checking for PHP ... found
> + PHP SAPI: [apache2handler cgi cli fpm]

В списке нет embed, т.е. php был собран без библиотеки libphp.


> checking for PHP embed SAPI ... not found
>
> ./configure: error: no PHP embed SAPI found.
>
>
> Как бы точно понять, что не так? Файлы-то есть.
>

$ ./configure php --module=php56 --config=/usr/lib64/php5.6/bin/php-config --lib-path=/usr/lib64/php5.6/lib64
configuring PHP module
checking for PHP ... found
+ PHP SAPI: [embed cli cgi fpm]
checking for PHP embed SAPI ... found
checking for PHP zend_signal_startup() ... not found
checking for PHP version ... 5.6.38-pl0-gentoo
+ PHP module: php56.unit.so

$ ls /usr/lib64/php5.6/lib64
libphp5.so opcache.so

$ /usr/lib64/php5.6/bin/php-config --php-sapis
embed cli cgi fpm

$ /usr/lib64/php5.6/bin/php-config --configure-options | grep embed
--prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --docdir=/usr/share/doc/php-5.6.38 --htmldir=/usr/share/doc/php-5.6.38/html --prefix=/usr/lib64/php5.6 --mandir=/usr/lib64/php5.6/man --infodir=/usr/lib64/php5.6/info --libdir=/usr/lib64/php5.6/lib --with-libdir=lib64 --localstatedir=/var --without-pear --enable-maintainer-zts --disable-bcmath --without-bz2 --disable-calendar --disable-gcov --disable-ctype --without-curl --disable-dom --without-enchant --disable-exif --disable-fileinfo --disable-filter --disable-ftp --without-gettext --without-gmp --enable-hash --without-mhash --without-iconv --disable-intl --disable-ipv6 --disable-json --without-kerberos --disable-libxml --without-libxml-dir --disable-mbstring --without-mcrypt --without-mssql --without-onig --without-openssl --without-openssl-dir --disable-pcntl --disable-phar --disable-pdo --enable-opcache --without-pgsql --disable-posix --without-pspell --without-recode --disable-simplexml --disable-shmop --without-snmp --disable-soap --disable-sockets --without-sqlite3 --without-sybase-ct --disable-sysvmsg --disable-sysvsem --disable-sysvshm --without-tidy --disable-tokenizer --disable-wddx --disable-xml --disable-xmlreader --disable-xmlwriter --without-xmlrpc --without-xsl --disable-zip --without-zlib --disable-debug --without-cdb --without-db4 --disable-flatfile --without-gdbm --disable-inifile --without-qdbm --without-freetype-dir --without-t1lib --disable-gd-jis-conv --without-jpeg-dir --without-png-dir --without-xpm-dir --without-vpx-dir --without-gd --without-interbase --without-mysql --with-mysqli=mysqlnd --without-mysql-sock --without-unixODBC --without-iodbc --without-oci8 --with-readline=/usr --without-libedit --disable-session --with-pic --with-pcre-regex=/usr --with-pcre-dir=/usr --cache-file=/dev/shm/portage/dev-lang/php-5.6.38/temp/config.cache --with-config-file-path=/etc/php/embed-php5.6 --with-config-file-scan-dir=/etc/php/embed-php5.6/ext-active --enable-embed --disable-cli --disable-cgi --disable-fpm --without-apxs2 build_alias=x86_64-pc-linux-gnu host_alias=x86_64-pc-linux-gnu CFLAGS=-Ofast -march=native -pipe LDFLAGS=-Wl,-O1 -Wl,--as-needed CPPFLAGS= CXXFLAGS=-Ofast -march=native -pipe


Среди опций можно заметить --enable-embed.

--
Валентин Бартене
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

unitd + php5.6

Anton Kiryushkin April 23, 2019 09:44AM

Re: unitd + php5.6

Vadim A. Misbakh-Soloviov April 23, 2019 10:12AM

Re: unitd + php5.6

Валентин Бартенев April 23, 2019 10:14AM

Re: unitd + php5.6

Anton Kiryushkin April 23, 2019 10:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 147
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready