简体   繁体   English

PHP error_log文件

[英]PHP error_log file

Can anyone help me with error_log file. 任何人都可以通过error_log文件帮助我。 If you already guessed that I am not experienced user, that is true :-) 如果您已经猜到我不是经验丰富的用户,那是真的:-)

I have VPS on CentOS 5 with 4 CPU and 768 memory. 我在具有4个CPU和768内存的CentOS 5上具有VPS。 With 5 sites on it. 上面有5个网站。

Problem I have is that, no meter on which site system generate file "error_log" in root of sites, and in any other folder where there is any php script, so after running some php script there is error_log in that folder. 我的问题是,在站点的根目录下以及在任何其他包含php脚本的文件夹中,没有哪个仪表会在该站点系统上生成文件“ error_log”,因此在运行某些php脚本后,该文件夹中将存在error_log。

On every access system writes new lines, and it is the same error message, in any error file just time in different. 在每个访问系统上都写新行,并且它是同一条错误消息,在任何错误文件中只是时间不同。

This is part of error_log file: 这是error_log文件的一部分:

[13-Mar-2012 06:52:18] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0
[13-Mar-2012 06:52:20] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0

If I am right it is something about eaccelerator or something. 如果我是对的,那是关于加速器的事情。 I tried to find what is that, and it is some caching mechanism, if I am right. 我试图找到那是什么,如果我是对的,那是某种缓存机制。 So far I know I did not do anything with that. 到目前为止,我知道我对此没有做任何事情。

My sites are using widely used static html cache, ones page is generated by php it is stored in text file on disk and after server from disk. 我的网站使用的是广泛使用的静态html缓存,页面是由php生成的,它存储在磁盘上的文本文件中,然后从磁盘存储在服务器中。 Something like this: [http://www.theukwebdesigncompany.com/articles/php-caching.php][1] 像这样的东西:[http://www.theukwebdesigncompany.com/articles/php-caching.php][1]

Any help to find problem, and to fix it would be nice. 任何帮助发现问题并修复它的方法都将很不错。 Also if you have any question, do not hesitate to ask, I will try to help as much as I can. 另外,如果您有任何疑问,请不要犹豫,我会尽全力帮助您。 Again, I am not experienced with WHM, so If you ask me something please tell me where exactly to look for it :-). 同样,我对WHM没有经验,所以如果您问我一些问题,请告诉我在哪里可以找到它:-)。

Best regards. 最好的祝福。

You must install eAccelerator extension for php 5.3 you maybe updated to php 5.3 and forgot to install it (or cp auto update !) 您必须为php 5.3安装eAccelerator扩展,您可能已更新为php 5.3并忘记安装它(或cp自动更新!)

eAccelerator is a free open source PHP accelerator, optimizer, encoder and dynamic content cache for PHP. eAccelerator是PHP的免费开源PHP加速器,优化器,编码器和动态内容缓存。 It increases performance of PHP scripts by caching them in compiled state, so that the overhead of compiling is almost completely eliminated. 通过在编译状态下缓存PHP脚本,可以提高PHP脚本的性能,从而几乎完全消除了编译开销。 Also it uses some optimizations to speed up execution of PHP scripts. 它还使用一些优化来加速PHP脚本的执行。 eAccelerator typically reduces server load and increases the speed of your PHP code by 1-10 times. eAccelerator通常可以减少服务器负载,并使PHP代码的速度提高1到10倍。

gogole about it to install or use this link http://www.dedicated-resources.com/guide/128/eAccelerator-for-PHP.html 可以安装或使用此链接, 网址为http://www.dedicated-resources.com/guide/128/eAccelerator-for-PHP.html

if you can not do that or dont want to install ir, you can edit /usr/local/lib/php.ini and remove eaccelerator.so, pdo.so, pdo_sqlite.so, sqlite.so in extension section or back to php 5.2 如果您不能这样做或不想安装ir,则可以编辑/usr/local/lib/php.ini并在扩展部分中删除eaccelerator.so,pdo.so,pdo_sqlite.so,sqlite.so或返回php 5.2

i recommend to you to install eAccelerator and boost your php performance ;) 我建议您安装eAccelerator并提高您的php性能;)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM