原文地址:http://www.debianhelp.co.uk/eaccelerator.htm
在Debian中配置eAccelerator
What is eAccelerator?
eAccelerator is a further development from mmcache PHP Accelerator & Encoder. It increases performance of PHP scripts by caching them in compiled state, so that the overhead of compiling is almost completely eliminated.
Installing eAcceleration in Debian
第一步,下载并安装php5-dev,编译eAccelerator的时候会用到
#apt-get install php5-dev
下载eAccelerator 源码包,并加压缩
#tar jxvf eaccelerator-0.9.5.3.tar.bz2
#cd eaccelerator-0.9.5
用phpize常见编译时需要的配置文件
#/usr/bin/phpize
#./configure --enable-eaccelerator=shared --with-php-config=/usr/bin/php-config
#make
#make install
安装完成
在 /etc/php5/apache2/php.ini 中加入如下配置
extension=eaccelerator.so
[eaccelerator]
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
为eAccelerator创建临时目录
#mkdir /tmp/eaccelerator
#chmod 777 /tmp/eaccelerator
重启apache
#/etc/init.d/apache2 restart
测试是否安装完成
在apache目录下创建下面的文件并在浏览器中查看
<?php
phpinfo();
?>
能够找到eAccelerator的信息就表示已经安装成功可以使用了
分享到:
相关推荐
debian 7稳定版本中安装pyqt5,基于python3
debian7.7默认没安装make工具,所以新系统想用make来安装包,需要安装make build
debian10安装qq、微信、迅雷、winrar等(2020.3.16)1.加key2.vi /etc/apt/sources.list 加入新源3.安装deepin wine环境,https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu4.安装QQ、微信、迅雷、winrar等 1.加...
将这个文件刻盘,或者映射到虚拟光驱中,就可以启动Debian Linux的安装。注意在安装过程中需要保证网络的畅通,并且网络中有可用的Debian安装源。
因为官网版本更替后,在红框位置显示的就可能不是Debian 10.4网络安装版的镜像,所以我做了一个百度云盘的永久分享 2.安装步骤 3.Debian 10.4系统安装开始 二、zabbix安装前准备 1.固定IP地址 2.使用Xshll(Xshll是...
完整的debian10安装教程,超级详细附带下载地址
介绍另一种Debian安装方法,很详细,图文并茂
在debian下安装seafile,64位系统,seafile使用最新版,使用mysql数据库
debian编译安装php7.4.30.txt 编译安装更稳定! 每一行复制执行即可完成安装!
Ubuntu 和 Debian下安装Deepin第三方软件(QQ/TIM/微信/阿里旺旺/迅雷/百度网盘)脚本
debian11-一键安装zabbix6.0脚本
debian系统安装碰到的问题和解决方法
debian编译安装mysql5.7.35.txt 编译安装更稳定! 每一行复制执行即可完成安装!
debian6的安装和配置指南,简洁明了地帮助你安装配置debian6.
debian6的安装和配置,包括连接putty以及解决中文乱码问题
我的debian自动安装preseed配置文件,可供大家参考,线上服务器的自动安装配置
debian的安装指南
[原创]在Debian 6安装munin监视服务器
Linux系统Debian中安装Testlink,包括环境配置说明,下载地址,Testlink数据库从windows迁移到Linux中的操作步骤,供软件测试搭建Testlink参考
1. 用于学习安装 Debian 操作系统,教程共12课; 2. 网页压缩包格式,解压在当前文件夹,双击打开index.html即可