>  기사  >  백엔드 개발  >  [备忘] OSX 10.7.5安装MediaWiki中的php53-apc

[备忘] OSX 10.7.5安装MediaWiki中的php53-apc

WBOY
WBOY원래의
2016-06-23 13:39:591017검색

Mac Mini OSX 10.7.5系统在安装MediaWiki的过程中遇到了下面的apc未安装的问题。


采用brew方法进行安装如下:命令为  brew install php53-apc  

apache2  brew install php53-apc                     ==> Installing php53-apc from homebrew/homebrew-php==> Downloading http://pecl.php.net/get/APC-3.1.10.tgzAlready downloaded: /Library/Caches/Homebrew/php53-apc-3.1.10.tgz==> Patchingpatching file APC-3.1.10/php_apc.hHunk #1 succeeded at 35 with fuzz 2.==> /usr/local/opt/php53/bin/phpize==> ./configure --prefix=/usr/local/Cellar/php53-apc/3.1.10 --with-php-config=/usr/local/opt/php53/bin/php-con==> make==> CaveatsTo finish installing apc for PHP 5.3:  * /usr/local/etc/php/5.3/conf.d/ext-apc.ini was created,    do not forget to remove it upon extension removal.  * Validate installation via one of the following methods:  *  * Using PHP from a webserver:  * - Restart your webserver.  * - Write a PHP page that calls "phpinfo();"  * - Load it in a browser and look for the info on the apc module.  * - If you see it, you have been successful!  *  * Using PHP from the command line:  * - Run "php -i" (command-line "phpinfo()")  * - Look for the info on the apc module.  * - If you see it, you have been successful!==> Summary

最后重启下apache2就行了 (/usr/sbin/httpd)

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.