I config/make/make install php on a system where php is already installed:
./configure --prefix=/opt/php
--with-config-file-path=/opt/php/etc --with-config-file-scan-dir=/opt/php/etc/php.d
--enable-fpm --with-fpm-user=ec2-user --with-fpm-group=ec2-user --disable-debug
--enable-exif --with-curl --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-
pdo-mysql=mysqlnd --with-zlib --enable-zip --enable-bcmath --enable-calendar
--enable-ftp --with-mhash --with-openssl --with-mcrypt --enable-mbstring --enable-
mbregex --with-gd --with-jpeg-dir --with-png-dir
(all ok) however, when I type php --ini (inside /opt/php/bin) I get the old stuff:
> Configuration File (php.ini) Path:
> /etc Loaded Configuration File:
> /etc/php.ini Scan for additional .ini
> files in: /etc/php.d Additional .ini
> files parsed: /etc/php.d/apc.ini,
> /etc/php.d/curl.ini,
> /etc/php.d/fileinfo.ini,
> /etc/php.d/json.ini,
> /etc/php.d/mbstring.ini,
> /etc/php.d/phar.ini,
why / how can i fix this?
my bashrc:
if [ -d "/opt/php/bin"] && [ -d "/opt/php/sbin" ]; then PATH="$path:/opt/php/bin:/opt/php/bin"
my php-config looks ok:
Usage: ./php-config [OPTION]
Options:
--prefix [/opt/php]
--includes [-I/opt/php/include/php -I/opt/php/include/php/main -I/opt/php/include/php/TSRM -I/opt/php/include/php/Zend -I/opt/php/include/php/ext -I/opt/php/include/php/ext/date/lib]
--ldflags []
--libs [-lcrypt -lz -lcrypt -lrt -lmcrypt -lltdl -lpng -lz -ljpeg -lcurl -lz -lrt -lm -ldl -lnsl -lrt -lxml2 -lz -lm -lssl -lcrypto -ldl -lz -lcurl -lxml2 -lz -lm -lssl -lcrypto -ldl -lz -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt ]
--extension-dir [/opt/php/lib/php/extensions/no-debug-non-zts-20090626]
--include-dir [/opt/php/include/php]
--php-binary [/opt/php/bin/php]
--php-sapis [cli fpm]
--configure-options [--prefix=/opt/php --with-config-file-path=/opt/php/etc --with-config-file-scan-dir=/opt/php/etc/php.d --enable-fpm --with-fpm-user=ec2-user --with-fpm-group=ec2-user --disable-debug --enable-exif --with-curl --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-zlib --enable-zip --enable-bcmath --enable-calendar --enable-ftp --with-mhash --with-openssl --with-mcrypt --enable-mbstring --enable-mbregex --with-gd --with-jpeg-dir --with-png-dir]
--version [5.3.5]
--vernum [50305]
but... myphp.ini does not, it seems my --with-config-file-path=PATH (Sets the path in which to look for php.ini, defaults to PREFIX/lib.) somehow is not working?