Mac installation Configure some of the commands that your PHP environment encounters

Source: Internet
Author: User
Tags redis
Mac installation Homebrew
Ruby-e "$ (Curl--insecure-fssl Https://raw.githubusercontent.com/Homebrew/install/master/install)"
Mac Uninstall Homebrew
Ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"


Use the Phpinfo () function to view PHP information, such as Phpredis extensions, PHP configuration file path, PHP version, etc.


Use the sudo php-fpm-c/usr/local/etc/php/5.6/php.ini to start PHP with the specified php.ini


Use ps-ef|grep PHP to find the running PHP process, use kill [PID] to kill the running PHP process;


Use the Brew uninstall php55 Uninstall installation application


Installing applications using the Brew install PHP56


Use Brew search PHP to find this keyword-related application that exists on the brew server


After downloading the PHP extension, you need to use extension=redis.so in php.ini to add the target extension, which will go to the default path lookup, this default path is not very clear what location, you can extension=/usr/local/coller/ Phpredis/redis.so this uses an absolute path to specify the extension.


PHP if reported timezone error, add Date.timezone = PRC in php.ini, specify time zone for China


Use Brew to install the Php56-redis plug-in, and if you are using the brew search PHP to include Homebrew/php/php56-redis, execute brew tap homebrew/php first. Then install the Brew install Php56-redis.










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.