We are trying to configure several versions of PHP running in parallel in our middleware environment. To do this, I created all the relevant PHP binaries (w / - enable-fastcgi, where applicable), and I use mod_fastcgi to call the first shell scripts.
If at all relevant, here is / php -fcgi / php-5.5:
#!/bin/sh
PHPRC=/usr/local/php55/etc/php.ini
export PHPRC
PHP_FCGI_MAX_REQUESTS=5000
export PHP_FCGI_MAX_REQUESTS
PHP_FCGI_CHILDREN=3
export PHP_FCGI_CHILDREN
exec /usr/local/php55/bin/php-cgi
So far, everything is working fine (i.e., all virtual hosts configured to work with version 5.5 work on 5.5, etc.); however, there is a problem with environment variables set using "SetEnv" in the block <Directory>. All of them have a prefix REDIRECT_.
An example for this:
SetEnv APPLICATION_ENV "production"
Result:
'REDIRECT_APPLICATION_ENV' => string 'production'
Can anyone advise on what I did wrong?
, mod_rewrite: mod_rewrite.