开发者

PHP as FastCGI: Custom php.ini not working

开发者 https://www.devze.com 2023-03-11 13:43 出处:网络
I asked this question on ServerFault already however there might be more PHP guys here. I\'m running PHP as FastCGI (I needed multiple versions of PHP). Cannot force PHP to load custom php.ini file.

I asked this question on ServerFault already however there might be more PHP guys here.

I'm running PHP as FastCGI (I needed multiple versions of PHP). Cannot force PHP to load custom php.ini file.

.htaccess

AddHandler php5-fastcgi .php
Action php5-fastcgi /cgi-bin/php-5.2.17.fcgi

cgi-bin/php-5.2.17.fcgi

#!/bin/sh
PHP_CGI=/usr/local/php/5.2.17/bin/php-cgi
PHP_FCGI_CHILDREN=4
PHP_FCGI_MAX_REQUESTS=1000
export PHP_FCGI_CHILDREN
export PHP_FCGI_MAX_REQUESTS
exec $PHP_CGI -c /home/john/www/crm/php.ini

The main issue is that开发者_Python百科 PHP is ignoring -c option. My php.ini files is NOT loaded.

Can anybody share any suggestions?

0

精彩评论

暂无评论...
验证码 换一张
取 消