The steps of using brew to configure the environment under Mac share _php tips

Source: Internet
Author: User
Tags memcached
Start Web sharing first.

Configuration

httpd.conf join PHP to expand/etc/apache2/httpd.conf

If ulimit_max_files= "ulimit-s-n ' ulimit-h-n '" error occurs

Need to remove

/usr/sbin/apachectl inside the Ulimit-s-n ' ulimit-h-n

Restart Apache

Brew Install memcached installation memcache

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

Add "D" to start it as a daemon.

/usr/local/bin/memcached-d boot cannot be started with root account

Download Memcache

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

Execute./configure make sudo make install

Edit php INI chmod-r 755/etc/php.ini

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

New Plus extension=memcache.so

See if Phpinfo expands memcache

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.