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...