PHP APC错误加载apc.so [英] PHP APC Error Loading apc.so

查看:141
本文介绍了PHP APC错误加载apc.so的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近通过WHM面板(Web主机管理器)在服务器上安装了PHP APC.安装成功后,我认为一切都很好.但是第二天,我发现我们的error_log文件变得非常大,经过检查,我多次注意到以下行:

I recently installed PHP APC on our server via our WHM panel (Web Host Manager). After a successful install, I thought everything was fine. However the next day I noticed our error_log file was getting quite large, after inspection I noticed the following line many times:

PHP警告:PHP启动:无法加载动态库'/usr/local/lib/php/extensions/no-debug-non-zts-20060613/apc.so'-/usr/local/lib/php/extensions/no-debug-non-zts-20060613/apc.so:无法打开共享对象文件:在第0行的Unknown中没有这样的文件或目录

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/apc.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0

查看目录,我看不到apc.so,但在服务器上的其他任何地方也看不到它(也许是,但我还没有找到它).无论如何,我可以生成此文件以放置到正确的文件夹中吗?这项工作有效吗,还是我需要重新安装某些文件或更改某些文件中的路径?

Looking into the directory I do not see apc.so, but I also do not see it anywhere else on our server (maybe it is and I just haven't found it). Is there anyway I can generate this file to place into the proper folder? Will this work, or do I need to reinstall something or change a path in some file?

推荐答案

.so文件与Windows .dll文件等效.你不能只鞭打一个.您必须从安装包中提取它(如果从源代码开始,则必须重新编译).您可以尝试执行find / -name apc.so来查看它在系统上的隐藏位置.

.so files are the equivalents of windows .dll files. you can't just whip one up. You'd have to extract it from the installation package (or recompile it if you started from source code). You can try doing find / -name apc.so to see where it's hiding on the system.

这篇关于PHP APC错误加载apc.so的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆