Home > Backend Development > PHP Tutorial > Sharing the steps of using brew to configure the environment under mac_PHP tutorial

Sharing the steps of using brew to configure the environment under mac_PHP tutorial

WBOY
Release: 2016-07-21 15:29:01
Original
998 people have browsed it

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

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/323499.htmlTechArticleFirst enable web sharing. Configure httpd.conf and add php extension /etc/apache2/httpd.conf. If ULIMIT_MAX_FILES="ulimit -S -n `ulimit -H -n`" error occurs, you need to remove it from /usr/sbin/apachectl...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template