Cannot load /usr/local/apache/modules/libphp5.so into server

发表时间:2010-01-16 03:30:35 文章分类:ERRORS 阅读:202856
重新启动apache报如下错误:httpd: Syntax error on line 53 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied原因:是Linux有一个SELinux保护模式引起的。解决办法:1关闭SELINUX的方法:vi /etc/selinux/config 将SELINUX=enforcing 改成SELINUX=disabled 需要重启这个方法可能会对服务器带来风险。2不关闭SELINUX的方法:# setenforce 0# chcon -c -v -R -u system_u -r object_r -t textrel_shlib_t /usr/local/apache/modules/libphp5.so# service httpd restart# setenforce 1

error while loading shared libraries: libmysqlclient.so.15.0.0:cannot open shared object file: No such file or directory

发表时间:2010-01-16 03:25:00 文章分类:ERRORS 阅读:150913
问题描述error while loading shared libraries: libmysqlclient.so.15.0.0:cannot open shared object file: No such file or directory解决办法:sudo touch /etc/ld.so.conf.d/mysql.conf  ;sudo vi /etc/ld.so.conf.d/mysql.conf  ;在里面写上libmysqlclient.so.15.0.0所在的目录,如/usr/local/mysql/lib/mysql保存后,执行sudo ldconfig -v

Starting MySQL.Manager of pid-file quit without updating file

发表时间:2010-01-16 03:22:40 文章分类:ERRORS 阅读:206105
问题描述:[root@bogon mysql-5.1.41]# /etc/rc.d/init.d/mysqld startStarting MySQL.Manager of pid-file quit without updating file.[失败]---------------------------解决办法:配置的时候有一个步骤是cp support-files/my-medium.cnf /etc/my.cnf ;就编辑my.cnf,在[mysqld]下面加上:datadir = /usr/local/mysql/data例如# The MySQL server[mysqld]port            = 3306socket          = /tmp/mysql.sockskip-lockingkey_buffer_size = 16Mmax_allowed_packet = 1Mtable_open_cache = 64sort_buffer_size = 512Knet_buffer_length = 8Kread_buffer_size = 256Kread_rnd_buffer_size = 512Kmyisam_sort_buffer_size = 8Mdatadir = /usr/local/mysql/data

[warn] NameVirtualHost has no VirtualHosts

发表时间:2010-01-16 03:21:00 文章分类:ERRORS 阅读:110176
问题描述:[root@bogon ~]# /usr/local/apache/bin/apachectl restart;[Mon Nov 30 20:57:41 2009] [warn] NameVirtualHost 192.168.1.85:80 has no VirtualHosts解决办法:修改/usr/local/apache/conf/extra/httpd-vhosts.conf将    DocumentRoot "/usr/local/apache/htdocs"    ServerName www5.test.com            AllowOverride all        ErrorLog "logs/dummy-host.example.com-error_log"    CustomLog "logs/dummy-host.example.com-access_log" common改为:    DocumentRoot "/usr/local/apache/htdocs"    ServerName www5.test.com            AllowOverride all   

more undefined references to `libiconv_close' follow

发表时间:2010-01-16 03:18:14 文章分类:ERRORS 阅读:90508
问题描述:libsphinx.a(tokenizer_zhcn.o):/root/software/csft3.1b3/src/tokenizer_zhcn.cpp:37: more undefined references to `libiconv_close' followcollect2: ld returned 1 exit statusmake[2]: *** [indexer] Error 1make[2]: Leaving directory `/root/software/csft3.1b3/src'make[1]: *** [all] Error 2make[1]: Leaving directory `/root/software/csft3.1b3/src'make: *** [all-recursive] Error 1解决方法:vi Makefile;LIBS = -lm -lexpat -L/usr/local/lib后面添加“ -liconv”例如:LIBS = -lm -lexpat -L/usr/local/lib -liconvvi src/Makefile;LIBS = -lm -lexpat -L/usr/local/lib后面添加“ -liconv”例如:LIBS = -lm -lexpat -L/usr/local/lib -liconv

sql_connect: Host '192.168.1.84' is not allowed to connect to this MySQL serve

发表时间:2010-01-16 03:16:11 文章分类:ERRORS 阅读:133422
问题描述:ERROR: index 'tpzj_84': sql_connect: Host '192.168.1.84' is not allowed to connect to this MySQL server (DSN=mysql://root:***@192.168.1.84:3306/tpzj_tso).解决办法:mysql>insert into user values('192.168.1.84','root',password,'Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y'););mysql>flush PRIVILEGES;

Unigram dictionary load Error

发表时间:2010-01-16 03:12:38 文章分类:ERRORS 阅读:126368
问题描述:[root@bogon ~]# /usr/local/sphinx/bin/indexer --config /usr/local/sphinx/etc/sphinx.conf --allCoreseek Full Text Server 3.1 Copyright (c) 2006-2008 coreseek.comusing config file '/usr/local/sphinx/etc/sphinx.conf'...indexing index 'tpzj_84'...Unigram dictionary load Error段错误解决办法:检查字典词库路径是否正确

iniparser: cannot open /usr/local/sphinx/var/dict/mmseg.ini

发表时间:2010-01-16 03:06:53 文章分类:ERRORS 阅读:168177
问题描述[root@localhost sphinx]# ./bin/searchd --config /usr/local/sphinx/etc/sphinx.confCoreseek Full Text Server 3.1Copyright (c) 2006-2008 coreseek.comusing config file '/usr/local/coreseek/etc/sphinx.conf'...listening on all interfaces, port=3312iniparser: cannot open /usr/local/sphinx/var/dict/mmseg.ini解决办法:不管有没有那个文件直接vi /usr/local/sphinx/var/dict/mmseg.ini;在里面添加内容[mmseg]merge_number_and_ascii=1;number_and_ascii_joint=-.;compress_space=0;seperate_number_ascii=1;以上解释如下/*merge_number_and_ascii: 字母和数字连续出现是非切分number_and_ascii_joint:连接数字和字母可用的符号,如'-' '.' 等compress_space:暂时无效seperate_number_ascii:是否拆分数字,如 1988 -> 1/x 9/x 8/x 8/x*/

Warning: phpinfo() [function.phpinfo]: It is not safe to rely on the system's …

发表时间:2010-01-16 03:05:01 文章分类:ERRORS 阅读:151695
执行phpinfo();时提示:Warning: phpinfo() [function.phpinfo]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /home/lvyaozu/nginxroot/phpinfo.php on line 2解决办法:vi /usr/local/php/etc/php.ini找到date.tim

error while loading shared libraries: libmysqlclient.so.16: cannot open shared…

发表时间:2010-01-16 03:02:50 文章分类:ERRORS 阅读:230649
问题描述:[root@bogon var]# /usr/local/sphinx/bin/indexer  --config /usr/local/sphinx/etc/sphinx.conf --all/usr/local/sphinx/bin/indexer: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory解决办法:[root@bogon var]# ln -s /usr/local/mysql/lib/mysql/libmysqlclient.so.16 /usr/lib/libmysqlclient.so.16

/usr/bin/ld: cannot find -lltdl

发表时间:2010-01-16 03:01:16 文章分类:ERRORS 阅读:335197
问题描述:/usr/bin/ld: cannot find -lltdlcollect2: ld returned 1 exit status解决办法:cd /usr/share/libtool/libltdl./configure --prefix=/usrmakemake install

PHP文件缓存的性能测试

发表时间:2010-01-15 04:10:14 文章分类:PHP 阅读:151476
前言:在开发MooPHP的过程中,为了寻找更为高效的缓存方式,对两种最常用的缓存方式进行了测试。[separator]PHP常用缓存方式:第一种,把需要缓存的数据进行处理,形成PHP可以直接执行的文件。在需要缓存数据的时候,通过include方式引入,并使用。第二种,把需要的数据通过serialize函数序列化后直接保存到文件。在需要使用缓存数据的时候,通过反序列化读入文件内容并复制给需要的变量,然后使用。测试结果:通过测试我们发现,第二种也就是serialize缓存数据的方式更加高效。(数据略去,最后提供了文章地址下载,大家可以自行测试)原因分析:include方式读取缓存的时候,PHP需要执行几个过程1.读取文件2.解析所Include的文件3.执行,给变量赋值而serialize序列化方式读取缓存的时候:1.读取数据2.反序列化数据内容3.给变量赋值从以上内容对比的话,可能是由于解析PHP文件内的数组需要的时间超过unserialize反序列化数组的时间。如果你有兴趣可以查看《PHP filesystem相关函数和include require的性能效率研究》:http://www.ccvita.com/163.html测试文件代码:下载地址:Mo
1...上一页134135136137138139140141142143