Mac OS 10.10 is installed by default in PHP 5.5.4 version
The default installation of Apache is 2.4.9
Downloaded on MySQL website 5.7.11, this version installs relatively simple
More depressing is sudo cp/etc/php.ini.default/etc/php.ini after the change php.ini encounter
Because you want to install some extensions to PHP, after the extension is installed, modify the PHP configuration file after restarting Apache Phpinfo () will not appear in any way.
Check the configuration files a few times if there is a problem, confirm that there is no problem in the case of restart or no effect. sudo apachectl restart no error.
Finally hold emphasis on the computer to try to start the mentality, after the computer restarts, phpinfo () actually show the new information, and again modify the configuration code in the php.ini, and then restart the Apache,phpinfo () display information is also in effect. Stay here.
========================= below is a small problem with the PHP installation extension =============================
cd/usr/lib/php
sudo pecl install Redis #安装扩展时会报如下错误
Cannot find autoconf. Please check your autoconf installation and the $PHP _autoconf environment variable are set correctly and then rerun this Script.
Google post-resolution, workaround:
# CD ~/downloads/
# wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.62.tar.gz
# TAR-ZVXF Autoconf-2.62.tar.gz
# CD autoconf-2.62/
# sudo./configure
# sudo make
# sudo make install
More and more unaccustomed to the client, so uninstalled the Xmapp, reconfigure the Php+apache+mysql