容器技术交流

 找回密码
 立即注册
查看: 3953|回复: 6

FAMP不支持discuz X1的eaccelerator临时解决办法

[复制链接]
发表于 2010-5-21 13:41:18 | 显示全部楼层 |阅读模式
修改famp5.1.0/code/目录下的以eaccelerator_apache.sh,内容为
  1. #!/bin/sh

  2. . "common.inc"

  3. cd ../soft

  4. tar -jxvf eaccelerator-0.9.5.3.tar.bz2
  5. cd eaccelerator-0.9.5.3

  6. make clean
  7. $famp_root/php/bin/phpize
  8. ./configure --enable-eaccelerator=shared --with-eaccelerator-shared-memory --with-php-config=$famp_root/php/bin/php-config
  9. make
  10. make install clean

  11. cd ..
  12. rm -rf eaccelerator-0.9.5.3
  13. cd ../code
复制代码
修改famp5.1.0/code/目录下的以eaccelerator_nginx.sh,内容为
  1. #!/bin/sh

  2. . "common.inc"

  3. cd ../soft

  4. tar -jxvf eaccelerator-0.9.5.3.tar.bz2
  5. cd eaccelerator-0.9.5.3

  6. make clean
  7. $famp_root/php/bin/phpize
  8. ./configure --enable-eaccelerator=shared --with-eaccelerator-shared-memory --with-php-config=$famp_root/php-fcgi/bin/php-config
  9. make
  10. make install clean

  11. cd ..
  12. rm -rf eaccelerator-0.9.5.3
  13. cd ../code
复制代码
分别执行,分别执行,然后重启webserver(/webserver-restart)
发表于 2010-5-21 14:53:15 | 显示全部楼层
./eaccelerator_apache.sh: line 3: common.sh: No such file or directory

出错了。没有common.sh这个文件啊???有看到目录下有个common.inc
bcf333 该用户已被删除
发表于 2010-5-21 16:53:01 | 显示全部楼层
我估计是要把上边代码里面的 . "common.sh" 修改成以前的 . "common.inc"

洞洞一时糊涂了哈哈
 楼主| 发表于 2010-5-21 17:34:48 | 显示全部楼层
哈哈
发表于 2010-5-24 17:46:49 | 显示全部楼层
  1. #!/bin/sh

  2. . "common.inc"

  3. cd ../soft

  4. tar -jxvf eaccelerator-0.9.5.3.tar.bz2
  5. cd eaccelerator-0.9.5.3

  6. make clean
  7. $famp_root/php/bin/phpize
  8. ./configure --enable-eaccelerator=shared --with-eaccelerator-shared-memory --with-php-config=[color=Red]$famp_root[/color]/php-fcgi/bin/php-config
  9. make
  10. make install clean

  11. cd ..
  12. rm -rf eaccelerator-0.9.5.3
  13. cd ../code
复制代码
发现洞洞又一错误了
skyyw 该用户已被删除
发表于 2010-5-26 07:50:53 | 显示全部楼层
checking build system type... i386-unknown-freebsd7.2
checking host system type... i386-unknown-freebsd7.2
checking target system type... i386-unknown-freebsd7.2
./configure: /php/bin/php-config: not found
./configure: /php/bin/php-config: not found
configure: error: Cannot find php-config. Please use --with-php-config=PATH
make: don't know how to make /home/bart/development/eaccelerator/branches/0.9.5/eaccelerator.c. Stop
make: don't know how to make /home/bart/development/eaccelerator/branches/0.9.5/eaccelerator.c. Stop


不行啊
发表于 2010-5-26 09:26:42 | 显示全部楼层
倒了.到是能不能用啊.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|URLOS ( 粤ICP备18087780号 )

GMT+8, 2025-5-11 10:02 , Processed in 0.036727 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表