分类目录
-
最近文章
Recent Comments
- 正在加载...
标签
centos command css debian Desktop eAccelerator Eagles Eminem FireFox freebsd godaddy Godaddy域名优惠码 google hostname Lady Antebellum linkinpark linux live Love The Way You Lie mbstring mb_substr mp3 Music mv namecheap namecheap coupon code namecheap优惠码 namecheap最新优惠码 need you now payoneer photo php php_mbstring Picture rihanna the cure wordpress zeus 便宜vps 创意广告 域名优惠码 富士康 电影 翻墙 闫凤娇链接表
Tag Archives: centos
Centos下安装php的mbstring扩展
php的mbstring扩展如果没有安装会导致一些问题,例如登陆phpMyAdmin的时候会提示没字符串编码和字符串处理库php_mbstring,有些程序中会用到mb_substr函数没有php的mbstring扩展当这些程序运行的时候通常会提示“Fatal error: Call to undefined function mb_substr()”,对于第二个问题可以用另一篇文章“mb_substr修正函数”解决。 但是如果你有自己的服务器或者vps的权限还是安装php的mbstring扩展好,下面是安装步骤,很简单: SSH连接之后 yum -y install php-mbstring 然后编辑你的php.ini文件添加 extension=mbstring.so 最后重启httpd服务 service httpd restart 完成。
eAccelerator-0.9.6安装笔记
cd tmp wget http://bart.eaccelerator.net/source/0.9.6/eaccelerator-0.9.6.tar.bz2 tar -jxvf eaccelerator-0.9.6.tar.bz2 cd eaccelerator-0.9.6 /usr/bin/phpize ./configure –enable-eaccelerator=shared –with-php-config=/usr/bin/php-config make make install (注:以上文中“phpize”以及“php-config”的路径如果不知道可以使用find命令事先查找一下。) 安装完毕编辑php.ini将其安装为 PHP extension 模式 在php.ini中添加如下: extension="eaccelerator.so" eaccelerator.shm_size="16" eaccelerator.cache_dir="/tmp/eaccelerator" eaccelerator.enable="1" eaccelerator.optimizer="1" eaccelerator.check_mtime="1" eaccelerator.debug="0" eaccelerator.log_file = "/var/log/httpd/eaccelerator_log" eaccelerator.filter="" eaccelerator.shm_max="0" eaccelerator.shm_ttl="0" eaccelerator.shm_prune_period="0" eaccelerator.shm_only="0" eaccelerator.compress="1" eaccelerator.compress_level="9" 最后创建/tmp/eaccelerator目录 … Continue reading