Home >Backend Development >PHP Tutorial >Sharing the steps of using brew to configure the environment under mac_PHP tutorial
First enable web sharing.
Configure
httpd.conf Add php extension/etc/apache2/httpd.conf
If ULIMIT_MAX_FILES="ulimit -S -n `ulimit -H -n` appears "Error
Need to remove ulimit in
/usr/sbin/apachectl -S -n `ulimit -H -n
Restart apache
brew install memcached Install memcache
After installation, memcache path/usr/local/bin/memcached
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
Execute ./configure make sudo make install
Edit php ini chmod -R 755 /etc/php.ini
Modify the expansion path /usr/lib/php/extensions/no-debug-non-zts-20090626/
Add extension=memcache.so
Check phpinfo whether to extend memcache