无标题文档
wdCP系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用教程) wdCDN系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用手册)
wdOS系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用教程) wdDNS系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用手册)
注册 发贴 提问 回复-必看必看 wddns免费智能 DNS 开通 本地或虚拟机使 用wdcp 一键包在mysql编 译时"卡住"
【300G高防】双线 无视攻击 wdcp官方技术支持/服务 阿里云8折优惠券 无敌云 腾讯云优惠中,现注册更有260代金额券赠送
返回列表 发帖
提问三步曲: 提问先看教程/FAQ索引(wdcp,wdcp_v3,一键包)及搜索,会让你更快解决问题
1 提供详细,如系统版本,wdcp版本,软件版本等及错误的详细信息,贴上论坛或截图发论坛
2 做过哪些操作或改动设置等

温馨提示:信息不详,很可能会没人理你!论坛有教程说明的,也可能没人理!因为,你懂的

[分享] APC 3.1.13 安装教程


  1. wget http://pecl.php.net/get/APC-3.1.13.tgz
  2. tar xvzf APC-3.1.13.tgz
  3. cd APC-3.1.13
  4. /www/wdlinux/php/bin/phpize
  5. ./configure –enable-apc –enable-apc-mmap –with-php-config=/www/wdlinux/php/bin/php-config
  6. make
  7. make install
复制代码


编译后确保www/wdlinux/php/lib/php/extensions/no-debug-non-zts-20090626/路径下有apc.so
在php.ini后添加


  1. [apc]
  2. extension_dir="/www/wdlinux/php/lib/php/extensions/no-debug-non-zts-20090626/"
  3. extension="apc.so"
  4. apc.enabled = 1
  5. apc.cache_by_default = on
  6. apc.shm_segments = 1
  7. apc.shm_size = 128
  8. apc.ttl = 7200
  9. apc.user_ttl = 7200
  10. apc.mmap_file_mask=/tmp/apc.XXXXXX
  11. apc.num_files_hint = 0
  12. apc.write_lock = On   
复制代码



我的试验成功,分享下,如果其他人成功就好,不成功误怪

这个方法安装不上呢 我的wdcp最新版 php5.2

TOP

  1. [root@wdOS ~]# cd APC-3.1.13
  2. [root@wdOS APC-3.1.13]# /www/wdlinux/apache_php-5.2.17/bin/phpize
  3. Configuring for:
  4. PHP Api Version:         20041225
  5. Zend Module Api No:      20060613
  6. Zend Extension Api No:   220060519
  7. [root@wdOS APC-3.1.13]# ./configure ?enable-apc ?enable-apc-mmap ?with-php-config=/www/wdlinux/apache_php-5.2.17/bin/php-config
  8. configure: WARNING: you should use --build, --host, --target
  9. configure: WARNING: invalid host type: ?enable-apc
  10. configure: WARNING: you should use --build, --host, --target
  11. configure: WARNING: invalid host type: ?enable-apc-mmap
  12. configure: error: invalid variable name: ?with-php-config
  13. [root@wdOS APC-3.1.13]# make
  14. make: *** No targets specified and no makefile found.  Stop.
  15. [root@wdOS APC-3.1.13]# make install
  16. make: *** No rule to make target `install'.  Stop.
复制代码

TOP

回复 3# lfq1989


  
  1. ./configure –enable-apc –enable-apc-mmap –with-php-config=/www/wdlinux/php/bin/php-config
复制代码
这行代码需要你手动输入,直接复制粘贴就会出现这种错误……

TOP

返回列表