More and more unaccustomed to the client, so uninstalled the Xmapp, reconfigure the Php+apache+mysql

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.