default php.ini location in PHP Pack
I just installed WS7.0u1 and PHP Pack 5.2.0. The results from <?php print phpinfo(); ?> tell me:
Configuration File (php.ini) Path =
/java/re/phppack/5.2.0/nightly/ws/b01-2007-01-29/solaris-i586/dist/5.2.0/SunOS5 .9_i86pc_OPT.OBJ/php/lib/
however I would have expected it to be '<WebServer Install Root>/plugins/php' or some such, where the php.ini-dist and php.ini-recommended were included. I copied the recommended version to php.ini in that location as well, no change.
Anything I'm missing?
thanks-
Rama
[566 byte] By [
rama-ra] at [2007-11-27 8:56:02]

# 1
In my configuration (WS7.0u1, PHP via FastCGI) I just specified the exact path that I wanted the php.ini file at:
#Sun FastCGI config
Service fn=responder-fastcgi
app-path="/export/SOWS/third-party/php/php_fcgi"
bind-path="$(lc($urlhost))"
req-retry=5
type="*magnus-internal/fastcgi*"
app-env="PHPRC=/export/SOWS/https-www/config"
app-env="PHP_FCGI_CHILDREN=10"
app-env="PHP_FCGI_MAX_REQUEST=400"
min-procs=1
restart-interval=10
bucket="php-bucket"
rlimit_cpu=60
# 2
Thanks Joe- seems thats close to the default PHP Pack injects, I spoke too soon:
PHPRC=${WS_INSTALL_ROOT}/plugins/php, PHP_FCGI_CHILDREN=2, PHP_FCGI_MAX_REQUEST=200, FCGI_WEB_SERVER_ADDRS=127.0.0.1, LD_LIBRARY_PATH=${WS_INSTALL_ROOT}/plugins/php, LD_LIBRARY_PATH_64=${WS_INSTALL_ROOT}/plugins/php/64
After creating the php.ini, it was necessary to restart the instance in order for it to be reflected in the PHP environment. My bad. :(