运行时出现以下错误sudo pecl install apc。
/var/tmp/APC/apc_cache.c: In function '_apc_cache_user_update':
/var/tmp/APC/apc_cache.c:818: error: 'IS_CONSTANT_INDEX' undeclared (first use in this function)
/var/tmp/APC/apc_cache.c:818: error: (Each undeclared identifier is reported only once
/var/tmp/APC/apc_cache.c:818: error: for each function it appears in.)
/var/tmp/APC/apc_cache.c:820: error: 'IS_CONSTANT_ARRAY' undeclared (first use in this function)
make: *** [apc_cache.lo] Error 1
ERROR: `make' failed
Run Code Online (Sandbox Code Playgroud)
我安装了php 5.5.12并且以下这些库都是最新的:
sudo yum install php-pear
sudo yum install php-devel
sudo yum install httpd-devel
sudo yum install gcc
sudo yum install pcre-devel
sudo pecl install …Run Code Online (Sandbox Code Playgroud) 我有 php 5.3.6 和 ubuntu。我想安装APC。
当我这样做时$ pecl install apc,我最终得到一个错误:
In file included from /tmp/pear/temp/APC/apc.c:44:0:
/usr/include/php5/ext/pcre/php_pcre.h:29:18: fatal error: pcre.h: No such file or directory
compilation terminated.
make: *** [apc.lo] Error 1
ERROR: `make' failed
Run Code Online (Sandbox Code Playgroud)
当我尝试做$ yum install php-pecl-apc我总是得到错误:No package "php-pecl-apc" available
我尝试做 a $ yum clean all,但没有任何区别。
我不知道如何继续。你有什么建议?
我得到了很多这样的:
[NOTICE] child 19214 stopped for tracing
[NOTICE] about to trace 19214
[ERROR] ptrace(PEEKDATA) failed: Input/output error (5)
[NOTICE] finished trace of 19214
[WARNING] [pool www] child 19208, script 'blahblah.php' executing too slow (30.041419 sec), logging
[NOTICE] child 19208 stopped for tracing
[NOTICE] about to trace 19208
[ERROR] ptrace(PEEKDATA) failed: Input/output error (5)
[NOTICE] finished trace of 19208
[WARNING] [pool www] child 19218, script 'blahblah.php' executing too slow (30.035029 sec), logging
Run Code Online (Sandbox Code Playgroud)
当 php 达到最大孩子数(至少我认为是这种情况)时,它会停止“工作”......现在我知道我可以增加 max_children(目前设置为 9)但是有一种方法可以阻止 php 的“死亡”?
我使用的是具有 1 …
我对 PHP APC 缓存系统感到非常沮丧,我想从我的服务器中完全删除/禁用它。我正在使用 PHP 和安装在 Debian Squeeze 上的 Nginx,有什么办法吗?
将 APC 配置为 PHP 的操作码缓存时,有一个名为 apc.mmap_file_mask 的配置设置。从我读过的内容来看,您可以通过三种方式对其进行配置,但我并不真正了解每种方式的含义。
来源:http : //php.net/manual/en/apc.configuration.php#ini.apc.mmap-file-mask
任何人都可以评论这些以及他们会推荐什么吗?我猜会有内存使用和性能方面的影响,也许还有安全方面的影响,但我不知道是不是这样?根据我完成的阅读,我假设 #2 和 #3 更快,但我认为 APC 已经在使用共享内存(由 apc.shm_size 设置),所以我不明白。