What is the correct way to load the zend extension in php-fpm.conf?

I am trying to download the ioncube bootloader via the php-fpm.conf file.

I know that you are probably wondering why I did not use php.ini, but it is a bit complicated, and you can see more reasons why here ( Is there every PHP-FPM Worker individually loads php.ini? ).

In any case, I load my other extensions from this file (php-fpm.conf) using the following directive in php-fpm.conf:

php_admin_value[extension]=<extension_name>.so 

So, for example, php_admin_value[extension]=apc.so loads APC from extension_dir (which is defined in my php.ini). It works fine and solves several problems that I encountered when defining extensions through php.ini.

However, using the zend_extension directive does not work. So the following does not work

 php_admin_value[zend_extension]=/usr/lib/php5/20090626/ioncube_loader_lin_5.3.so 

Is there something I am missing? I would appreciate help.

Thanks in advance.

+6
source share
2 answers

I think Zend extensions can only be downloaded in php.ini

+2
source

you can only define a php file using the php-fpm command

 # copy php.ini, and enable all extensions here cp /etc/php5/php.ini /etc/php5/my-php.ini # copy fpm config and set a new pool dir cp /etc/php5/fpm/php-fpm.conf /etc/php5/fpm/php-fpm-my-config.conf # create a new pool conf and create a new start script php-fpm -c /etc/php5/my-php.ini --fpm-config /etc/php5/fpm/php-fpm-my-config.conf 

thats all :)

had the same question, that's why I answered here :-)

+2
source

Source: https://habr.com/ru/post/901842/


All Articles