I'm trying to load the ioncube loader via the php-fpm.conf file.
我试图通过php-fpm加载ioncube loader。conf文件。
I know you're probably wondering why I didn't use the php.ini, but it's a little complicated and you can see more of why here (Does each PHP-FPM Worker individually load php.ini?).
我知道您可能想知道我为什么不使用php。但是这有点复杂,您可以在这里看到更多的原因(每个PHP-FPM工作人员是否单独加载php.ini?)
Anyway, I am loading my other extensions from this file (php-fpm.conf) using the following directive in the php-fpm.conf:
无论如何,我正在从这个文件(php-fp .conf)中加载我的其他扩展名,使用php-fp .conf中的以下指令:
php_admin_value[extension]=<extension_name>.so
So for example, php_admin_value[extension]=apc.so
loads APC from the extension_dir
(which is defined in my php.ini). It works ok and solves a few issues I was having with defining extensions via the php.ini.
举个例子,php_admin_value(扩展)= apc。因此从extension_dir(在php.ini中定义)加载APC。它可以正常工作,并解决了我通过php.ini定义扩展时遇到的一些问题。
However, using the zend_extension directive does not work. So the following doesn't seem to work
但是,使用zend_extension指令不能工作。所以下面的方法似乎行不通
php_admin_value[zend_extension]=/usr/lib/php5/20090626/ioncube_loader_lin_5.3.so
Is there something I'm missing? I'd appreciate some help.
有什么东西我丢了吗?一些帮助,我将不胜感激。
Thanks in advance.
提前谢谢。
2 个解决方案
#1
2
I think Zend Extensions can only be loaded in the php.ini
我认为Zend扩展只能在php.ini中加载
#2
2
you can only define a php file with php-fpm command
只能使用php-fpm命令定义php文件
# 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, thats why i answered here ;-)
我也有同样的问题,所以我在这里回答;
#1
2
I think Zend Extensions can only be loaded in the php.ini
我认为Zend扩展只能在php.ini中加载
#2
2
you can only define a php file with php-fpm command
只能使用php-fpm命令定义php文件
# 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, thats why i answered here ;-)
我也有同样的问题,所以我在这里回答;