我有一个LEMP环境,需要选择将所有开发子域与分段(使用xdebug staging进行开发)分开.
> dev.projectX.mydomain.tld
> staging.projectX.mydomain.tld
因此我设置了两个池PHP-dev和PHP-stage,但似乎我只能在PHP.ini中启用扩展!?
这是我的pool.conf(dev)
[PHP-dev] listen = 127.0.0.1:9101 listen = /var/run/PHP-fpm/a1-PHP-dev.socket listen.backlog = -1 listen.allowed_clients = 127.0.0.1 user = Nginx group = Nginx request_slowlog_timeout = 3s slowlog = /var/log/PHP-fpm/slowlog-PHP-dev.log pm = dynamic pm.max_children = 20 pm.start_servers = 10 pm.min_spare_servers = 4 pm.max_spare_servers = 16 pm.max_requests = 500 pm.status_path = /status request_terminate_timeout = 120s rlimit_files = 131072 rlimit_core = unlimited catch_workers_output = yes env[HOSTNAME] = $HOSTNAME env[TMP] = /tmp env[TMPDIR] = /tmp env[TEMP] = /tmp PHP_admin_value[zend_extension] = "/usr/lib64/PHP/modules/xdebug.so" PHP_admin_value[xdebug.default_enable] = 0 PHP_admin_value[xdebug.remote_enable] = 0 PHP_admin_value[xdebug.remote_autostart] = 0 PHP_admin_value[xdebug.remote_host] = localhost PHP_admin_value[xdebug.profiler_enable_trigger] = 0 PHP_admin_value[xdebug.remote_port] = 9001 PHP_admin_value[xdebug.collect_params] = 2 PHP_admin_value[xdebug.collect_vars] = 1 PHP_admin_value[xdebug.trace_format] = 2
不幸的是,xdebug将不会被加载.
有没有其他选项只在dev.*域上加载xdebug?
遗憾的是,您无法为每个FPM池加载不同的模块或模块版本.到目前为止,我已经在类似情况下创建了多个完全独立的PHP-FPM实例.
原文链接:https://www.f2er.com/php/139230.html