ubuntu server 10.04 安装PHP强化模块
来源:互联网 发布:淘宝店会员制度 编辑:程序博客网 时间:2024/05/17 20:23
1、安装eaccelerator
wget http://bart.eaccelerator.net/source/0.9.6.1/eaccelerator-0.9.6.1.tar.bz2
tar -jxvf eaccelerator-0.9.6.1.tar.bz2
cd ./eaccelerator-0.9.6.1
phpize5 #这个要安装的 sudo apt-get install php-dev
./configure --enable-eaccelerator=shared --with-php-config=/usr/bin/php-config
make
make install
2、配置相关文件
sudo nano /etc/ld.so.conf
加入 /usr/lib/php5
sudo ldconfig
sudo nano /etc/php5/apache2/php.ini
加入
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;http://eaccelerator.net;
;2010.09.29 ywz;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
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.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"
3、建暂存数据目录
mkdir /tmp/eaccelerator
chmod 777 /tmp/eaccelerator
sudo apache2ctl restart
4、测试
ab -dSk -c100 -n100 http://127.0.0.1/index.php #index.php 是自己建立的 内容为 <? phpinfo(); ?>
wget http://bart.eaccelerator.net/source/0.9.6.1/eaccelerator-0.9.6.1.tar.bz2
tar -jxvf eaccelerator-0.9.6.1.tar.bz2
cd ./eaccelerator-0.9.6.1
phpize5 #这个要安装的 sudo apt-get install php-dev
./configure --enable-eaccelerator=shared --with-php-config=/usr/bin/php-config
make
make install
2、配置相关文件
sudo nano /etc/ld.so.conf
加入 /usr/lib/php5
sudo ldconfig
sudo nano /etc/php5/apache2/php.ini
加入
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;http://eaccelerator.net;
;2010.09.29 ywz;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
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.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"
3、建暂存数据目录
mkdir /tmp/eaccelerator
chmod 777 /tmp/eaccelerator
sudo apache2ctl restart
4、测试
ab -dSk -c100 -n100 http://127.0.0.1/index.php #index.php 是自己建立的 内容为 <? phpinfo(); ?>
0 0
- ubuntu server 10.04 安装PHP强化模块
- Ubuntu 11.10 PHP 安装 Memcache 模块
- ubuntu下为php安装sqlite模块
- 强化学习使用pygame模块的安装
- Ubuntu 9.04 server安装nginx+php(fastcgi)
- Ubuntu Server 11.10 安装 Hiphop-php
- ubuntu server 安装wordpress+mysql+apache+php
- ubuntu server安装mysql+apache+php
- Ubuntu Server 下安装 Mcrypt Php Extension
- Ubuntu Server源码编译安装PHP
- ubuntu 下 安装php模块--源码tar包安装
- ubuntu下手动安装php-amqp模块教程
- Ubuntu 10.04 安装dhcp3-server
- Ubuntu 10.04 安装 nfs server
- ubuntu server 10.04 安装 LAMP
- 一起学习php:Ubuntu如何安装Zend Server CE ( 1 )
- 一起学习php:Ubuntu如何安装Zend Server CE ( 2 )
- 一起学习php:Ubuntu如何安装Zend Server CE ( 3 )
- ubuntu server 10.04 samba 需要用户名和密码访问
- UIImage 保存为图片
- ubuntu server 配置samba遇到的问题
- ubuntu server 10.04 安装 LAMP
- ubuntu server 10.04 .htaccess认证
- ubuntu server 10.04 安装PHP强化模块
- 破解windows xp 登录密码
- 服务器80端口被占用的解决方案
- android代码混淆之Gson解析为null
- ubuntu server 10.04 NFS设置
- [摘录] ubuntu server 10.04 安装dhcp服务器
- 相关认识
- Fiddler 教程
- ubuntu server 10.04 :使用ssh 密钥登录服务器