Steps to use brew to configure the environment on mac _ PHP Tutorial-php Tutorial

Source: Internet
Author: User
To configure the environment using brew in mac, follow these steps. First, enable web sharing. Configure httpd. conf add php extension etcapache2httpd. conf if the ULIMIT_MAX_FILESulimit-S-n 'ulimit-H-n' error occurs, remove usrsbinapachectl and enable web sharing first.

Configuration

Httpd. conf add php extension/etc/apache2/httpd. conf

If the error message "ULIMIT_MAX_FILES =" ulimit-S-n 'ulimit-H-n' "appears

Remove

Ulimit-S-n 'ulimit-H-n in/usr/sbin/apachectl

Restart apache

Brew install memcached install memcache

Memcache path/usr/local/bin/memcached after installation

Add "-d" to start it as a daemon.

/Usr/local/bin/memcached-d cannot be started using the root account

Download memcache

Http://pecl.php.net/package/memcache

Run./configure make sudo make install

Edit php ini chmod-R 755/etc/php. ini

Modify extension path/usr/lib/php/extensions/no-debug-non-zts-20090626/

Added extension = memcache. so

Check whether phpinfo expands memcache

Enable web sharing. Configure httpd. add conf to php extension/etc/apache2/httpd. if the ULIMIT_MAX_FILES = "ulimit-S-n 'ulimit-H-n'" error occurs in conf, remove/usr/sbin/apachectl...

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.