i grateful on issue - new cs, hence beg mercy , clear explanations.
my system mac os x 10.11.6 (upgraded yesterday)
my question:
how set terminal use same version apache does, or vice versa – how set apache use same version terminal does? way better? assume fist 1 better because os 10.11.6 comes preinstalled apache connected php version; future upgrade of php, if decided install one, automatically overwrite older version; if change apache’s configurations now, i.e. change version of php uses, again have manually change if upgrade php. please, advise me. please, note: goal have 1 workable php version. understand possible have 2 or more, goal - one.
php –v
shows 5.5.37 version
but http://localhost/~username/phpinfo.php
shows 5.5.36 version
given have upgraded os, believe 5.5.36 not such bad alternative.
here have managed check: i) php --ini
configuration file (php.ini) path: /usr/local/php5/lib loaded configuration file: /usr/local/php5/lib/php.ini scan additional .ini files in: /usr/local/php5/php.d additional .ini files parsed: /usr/local/php5/php.d/10-extension_dir.ini ………………
but http://localhost/~username/phpinfo.php
a) configuration file (php.ini) path
/etc
i checked /etc
, found these files there:
php-fpm.conf.default php.ini.default php.ini.default-5.2-previous
no other files containing “php”.
b) scan dir additional .ini files
/library/server/web/config/php
i have tried go there, /web
directory doesn’t exist within server directory
. therefore assume no additional .ini
files available apache @ these distanations.
ii) command $ php -c /path/to/php.ini -r 'echo get_include_path()."\n";'
.:/usr/local/php5/lib/php
and didn’t find php's include_path
of server checking http://localhost/~username/phpinfo.php
do understand correctly due these circumstance apache uses 5.5.36 php version , not 5.5.37 one; , terminal commands reveal opposite situation? correct steps change this? thank , patience!
the php cli , php apache module different executables, if both compiled exact same version number, they're still technically different
typically, cli application located @ /usr/bin/php
.
i'm not super familiar mac setups, think apache modules in /usr/lib/apache2/modules ls -al /usr/lib/apache2/modules/ | grep php
should show of php modules have been compiled apache.
to determine 1 has been loaded, you'll want in /etc/apache2/mods-enabled directory
hth, , let me know if have follow-up questions
Comments
Post a Comment