eacceleratorCentOS5.2下安装eAccelerator,怎么都装不上

eaccelerator  时间:2021-02-19  阅读:()

eaccelerator 能加速 php 7 吗

1、配置elerator加速PHP: tar jxvf elerator-0.9.6.1.tar.bz2 cd elerator-0.9.6.1/ /usr/local/php5/bin/phpize ./configure elerator=shared --with-php-config=/usr/local/php5/bin/php-config make make install cd ../ mkdir -p /usr/local/php5/elerator_cache vim /usr/local/php5php/etc/php.ini 2.按shift+g键跳到配置文件的最末尾,加上以下配置信息: 引用 [elerator] end_extension="/usr/local/php5/lib/php/extensions/no-debug-non-zts-20090626/elerator.so" elerator.shm_size="64" elerator.cache_dir="/usr/local/php5/elerator_cache" elerator.enable="1" elerator.optimizer="1" elerator.check_mtime="1" elerator.debug="0" elerator.filter="" elerator.shm_max="0" elerator.shm_ttl="3600" elerator.shm_prune_period="3600" elerator.shm_only="0" press="1" press_level="9" 3.重启php-fpm报错 [root@server4 no-debug-non-zts-20090626]# service php-fpm restart Gracefully shutting down php-fpm warning, no pid file found - php-fpm is not running ? Starting php-fpm elerator: Could not allocate 67108864 bytes, the maximum size the kernel allows is 33554432 bytes. Lower the amount of memory request or increase the limit in /proc/sys/kernel/shmmax. [15-Apr-2013 00:10:42] NOTICE: PHP message: PHP Warning: [elerator] Can not create shared memory area in Unknown on line 0 [15-Apr-2013 00:10:42] NOTICE: PHP message: PHP Fatal error: Unable to start elerator module in Unknown on line 0 failed 4. 解决办法:php.ini中设置的elerator,elerator.shm_size=”64″,解释:elerator可使用的共享内存大小(单位为MB),即64M elerator.shm_size="64" 在Linux下,单个进程的最大内存使用量受/proc/sys/kernel/shmmax中设置的数字限制(单位为字节) /proc/sys/kernel/shmmax = 33554432 (32M) vim/etc/sysctl.conf kernel.shmmax = 128000000 syscatl -p 或者修改参数: elerator.shm_size="32" 重启php-fpm 即可问题解决!

怎么开启eaccelerator和ionCube等组件

修改:/usr/local/php/etc/php.ini 原来:zend_extension="/usr/local/ioncube/ioncube_loader_lin_5.3.so" 改成:zend_extension="/usr/local/ioncube/ioncube_loader_lin_5.2.so" php 5.2.17 使用ioncube_loader_lin_5.2.so不是5.3 原来:zend_extension="/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/elerator.so" 改成:zend_extension="/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/elerator.so" elerator路径是no-debug-non-zts-20060613 而不是no-debug-non-zts-20090626

安装了 eAccelerator , PHP启动不起来了.怎么回事?

引用 军哥的:回复 1# 的帖子你发一下/usr/local/php/etc/php.ini 这个文件末尾的配置,好像是elerator load了2次。

导致php不能正常运行,才出现的502.按照这操作,搞定了.谢谢

CentOS5.2下安装eAccelerator,怎么都装不上

CentOs5.2本身带的php版本是5.1.6,是一个非常稳定、快速的版本, 但可惜的是不支持elerator的代码加密功能。

经试验:php5.0.4+elerator-0.9.3是比较好的组合。

先在CentOs5.2的包管理器中卸掉php5.1.6的相关包。

以下是http,php,mysql的缺省目录: /usr/lib/httpd /usr/lib/php /usr/lib/mysql

安装如下:

=================================================

1.系统自带了httpd2 , 需要在上面装一个定制的module ,却发现找不到apxs 是因为apxs是rpm包httpd-devel里所带的 , 安装如下包: #yum install httpd-devel

2.安装如下包,否则libiconv包不能编译通过,会有提示 configure: error: C preprocessor "/lib/cpp" fails sanity check 安装如下包: #yum install glibc-headers #yum install -c

3.安装libiconv包 # tar zxvf libiconv-1.12.tar.gz # ./configure --prefix=/usr/local # make # make install

4.安装libmcrypt-2.5.7.tar.gz ./configure make make install

5.编译php5.0.5 # tar zxvf php-5.0.4.tar.gz # cd php-5.0.4

# ./configure --prefix=/usr/lib/php --with-mysql=/usr/lib/mysql --with-apxs2=/usr/sbin/apxs --enable-sockets --enable-mbstring=all --with-mcrypt --with-zlib --with-iconv=/usr/local --with-gd --with-mysqli --enable-module=so --enable-cli

# make # make install # cp php.ini-dist /usr/lib/php/lib/php.ini

make install时 cannot restore segment prot after reloc: Permission denied

编辑/etc/sysconfig/selinux,找到: # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - SELinux is fully disabled. SELINUX=enforcing

如果SELINUX已经是 SELINUX=disabled,那么就不用改了,否则就把SELINUX=enforcing 注释掉,新加一行: SELINUX=disabled 保存,退出。

如果把SELinux关闭后还是不行. 在你保证SElinux 被disable后.还执行下 chcon -t texrel_shlib_t 如: chcon -t texrel_shlib_t /路径/路径/名字.so (这个文件视具体执行文件.)

chcon -t texrel_shlib_t /usr/share/mysql/lib/libmysqlclient.so.15

==========================================

elerator-0.9.3 安装方法:

1.先备准好PHP cd /usr/lib/php/bin cp * /bin

2. phpize ./configure make

make install 显示 [root@localhost elerator-0.9.3]# make install Installing shared extensions: /usr/lib/php/lib/php/extensions/no-debug-non-zts-20041030/

[root@localhost php-5.0.4]# cp php.ini-dist /usr/lib/php/lib/php.ini 修改php.ini ;extension=php_zip.dll

zend_extension="/usr/lib/php/lib/php/extensions/no-debug-non-zts-20041030/elerator.so" elerator.shm_size="16" elerator.cache_dir="/tmp/elerator" elerator.enable="1" elerator.optimizer="1" elerator.check_mtime="1" elerator.debug="0" elerator.filter="" elerator.shm_max="0" elerator.shm_ttl="0" elerator.shm_prune_period="0" elerator.shm_only="0" press="1" press_level="9"

[root@localhost myweb]# cp php.ini /usr/lib/php/lib/php.ini

3.

mkdir /tmp/elerator chmod 0777 /tmp/elerator

windows下的elerator见: elerator/index.php?eaver=0.9.3

Central美国65折优惠,美国达拉斯机房VPS季付赠送双倍内存

Central美国独立日活动正在进行中,旗下美国达拉斯机房VPS 65折优惠,季付赠送双倍内存(需要发工单),Central租用的Hivelocity的机房,只支持信用卡和加密货币付款,不支持paypal,需要美国独服的可以谨慎入手试试。Central怎么样?Central便宜服务器,Central自称成立于2019年,主营美国达拉斯机房Linux vps、Windows vps、专用服务器和托管...

UCloud:美国云服务器,洛杉矶节点大促,低至7元起/1个月

ucloud美国云服务器怎么样?ucloud是国内知名云计算品牌服务商家,目前推出全球多地机房的海外云服务器。UCloud主打的优势是海外多机房,目前正在进行的2021全球大促活动参与促销的云服务器机房就多达18个。UCloud新一代旗舰产品快杰云服务器已上线洛杉矶节点,覆盖北美和亚太地区,火热促销中, 首月低至7元,轻松体验具备优秀性能与极高性价比的快杰云服务器。点击进入:ucloud美国洛杉矶...

盘点AoYoZhuJi傲游主机商8个数据中心常见方案及八折优惠

傲游主机商我们可能很多人并不陌生,实际上这个商家早年也就是个人主机商,传说是有几个个人投资创办的,不过能坚持到现在也算不错,毕竟有早年的用户积累正常情况上还是能延续的。如果是新服务商这几年确实不是特别容易,问到几个老牌的个人服务商很多都是早年的用户积累客户群。傲游主机目前有提供XEN和KVM架构的云服务器,不少还是亚洲CN2优化节点,目前数据中心包括中国香港、韩国、德国、荷兰和美国等多个地区的CN...

eaccelerator为你推荐
SCProute恶意win7SinglesbAnthemmy支持ipad支持ipadCTios勒索病毒win7补丁我的电脑是windows7系统,为什么打不了针对勒索病毒的补丁(杀毒软件显css下拉菜单如何用css3做导航栏下拉菜单tcpip上的netbios怎么启用TCP/IP上的NetBIOS
域名出售 美国vps评测 北京vps 火山主机 美国仿牌空间 空间打开慢 国外空间 免费个人空间申请 京东商城0元抢购 godaddy域名证书 双11秒杀 免费申请个人网站 cloudlink 四川电信商城 德隆中文网 php服务器 注册阿里云邮箱 1美元 apnic 512内存 更多