Since the system version has not been upgraded, PHP has been using the system default, resulting in some new things to use the problem.
Like composer ... has not been to pay attention to, this time there is a resource on GitHub did not find, think about also must get this thing, nonsense not to say, journal as follows:
System version: OS X 10.9.5 php5.4.45 PHP configuration Précis-writers
'/private/var/tmp/apache_mod_php/apache_mod_php-87.10~1/php/configure ' '--prefix=/usr ' '--mandir=/ Usr/share/man ' '--infodir=/usr/share/info ' '--disable-dependency-tracking ' '--sysconfdir=/ Private/etc ' '--with-apxs2=/usr/sbin/apxs ' '--enable-cli ' '--with-config-file-path=/etc ' ' --with-config-file-scan-dir=/library/server/web/config/php ' '--with-libxml-dir=/usr ' '--with-openssl =/usr ' '--with-kerberos=/usr ' '--with-zlib=/usr ' '--enable-bcmath ' '--with-bz2=/usr ' '--enable-calendar ' '--disable-cgi ' '--with-curl=/usr ' '--enable-dba ' '--enable-ndbm=/usr ' '--enable-exif ' '--enable-fpm ' '--enable-ftp ' '--with-gd ' '--with-freetype-dir=/ Binarycache/apache_mod_php/apache_mod_php-87.10~1/root/usr/local ' '--with-jpeg-dir=/binarycache/apache_ Mod_php/apache_mod_php-87.10~1/root/usr/local ' '--with-png-dir=/binarycache/apache_mod_php/apache_mod_ Php-87.10~1/root/usr/local' '--enable-gd-native-ttf ' '--with-icu-dir=/usr ' '--with-ldap=/usr ' '--with-ldap-sasl=/usr ' '--with-libedit=/usr ' '--enable-mbstring ' '--enable-mbregex ' '--with-mysql=mysqlnd ' '--with-mysqli=mysqlnd ' '--without-pear ' '--with-pdo-mysql=mysqlnd ' '--with-mysql-sock=/ Var/mysql/mysql.sock ' '--with-readline=/usr ' '--enable-shmop ' '--with-snmp=/usr ' '-- Enable-soap ' '--enable-sockets ' '--enable-sqlite-utf8 ' '--enable-sysvmsg ' '-- Enable-sysvsem ' '--enable-sysvshm ' '--with-tidy ' '--enable-wddx ' '--with-xmlrpc ' '-- With-iconv-dir=/usr ' '--with-xsl=/usr ' '--enable-zend-multibyte ' '--enable-zip ' '-- With-pcre-regex=/usr '
-------------Start
Create and enter the installation directory
https://getcomposer.org/download/
Install according to the website prompt
$php composer-setup.phpdownloading 1.1.2...Composer successfully installed to:/data/codes/study/php/composer/ Composer.pharuse it:php composer.pharsome settings on your machine could cause stability issues with composer.if you Encoun ter issues, try to change the Following:the OpenSSL Library (0.9.8ZD) used by PHP does no support TLSv1.2 or Tlsv1.1.if p Ossible should upgrade OpenSSL to version 1.0.1 or above.
Prompt for OpenSSL version too low after completion
Brew Update
...
Brew upgrade OpenSSL
$brew upgrade openssl==> upgrading 1 outdated package, with result : openssl 1.0.2h_1==> upgrading openssl==> downloading https:// homebrew.bintray.com/bottles/openssl-1.0.2h_1.mavericks.bottle.tar.gz######################################### ############################### 100.0%==> pouring openssl-1.0.2h_1.mavericks.bottle.tar.gz== > CaveatsA CA file has been bootstrapped using certificates From the systemkeychain. to add additional certificates, place .pem files in /usr/local/etc/openssl/certsand run /usr/local/opt/openssl/bin/ c_rehashthis formula is keg-only, which means it was not Symlinked into /usr/local. Apple has deprecated use of openssl in favor of its own tls&Nbsp;and crypto librariesgenerally there are no consequences of this for you. if you build yourown software and it requires this formula, you ' ll need to add to yourbuild variables: ldflags: -l/usr/local/opt/openssl/lib cppflags: -i/ usr/local/opt/openssl/include==> summary /usr/local/cellar/openssl/1.0.2h_1: 1,691 files, 12.3m
After upgrading the system's OpenSSL
Recompile install PHP OpenSSL extension
Modify PHP.ini
Restart PHP-FPM
Then find the OpenSSL extension load conflict
The original compile time has been turned on by default, remove/usr/bin/openssl re-establish the soft chain
sudo ln-s/usr/local/opt/openssl/bin/openssl/usr/bin/openssl
Reboot PHP-FPM still loaded not new OpenSSL
It seems that you can only recompile the installation of PHP, first backup to remove the system default PHP
Go to the PHP website to download the corresponding source package, remove the system default configuration of the Apache-related configuration items
Modify
--with-openssl=/usr/local/opt/openssl
After configuration sudo make ... sudo make install ...
Then remove the extra extension openssl.so that you just configured
Start PHP-FPM View Phpinfo
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/82/C7/wKiom1dg2vvDlHdfAACjNQYK8Y4812.png-wh_500x0-wm_3 -wmp_4-s_2456256808.png "title=" A.png "alt=" Wkiom1dg2vvdlhdfaacjnqyk8y4812.png-wh_50 "/>
Update succeeded:)
This article from "Micro-desire for-micro-life" blog, declined to reprint!
mac10.9.5 php5.4.45 Installation composer Précis-writers