Build Nginx+php+mysql under Mac

Source: Internet
Author: User

Installing Nginx


Brew Install Nginx


Modifying a configuration file


Vim/usr/local/etc/nginx/nginx.conf


Add the appropriate server


Install MySQL


Brew Install MySQL


Mac comes with PHP-FPM, non-neat people directly use, otherwise install themselves


Cp/private/etc/php-fpm.conf.default/private/etc/php-fpm.conf


To modify a configuration file:


Vim/private/etc/php-fpm.conf


Open and modify:

Include=/usr/local/etc/fpm.d/*.conf


To modify the log path:


Error_log =/var/log/php-fpm/php-fpm.log


Start PHP-FPM

php-fpm


Close PHP-FPM

Killall PHP-FPM


This article is from the "Harrile" blog, make sure to keep this source http://tlharry.blog.51cto.com/7140929/1571804

Build Nginx+php+mysql under Mac

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.