blog.wuhui.sh.cn 分享知识 交流技术

squirrelmail调试过程中遇到的pear db问题

上一篇 / 下一篇  2008-07-08 00:54:01 / 个人分类:Linux

/usr/share/squirrelmail/src/configtest.php调试中发现了个问题DOIT博客.Q L8|M,J7g

    ERROR: Required PHP PEAR DB support is not available. Is PEAR installed and is the include path set correctly to find DB.php?The include path is now: ".:/usr/share/pear:/usr/local/psa/apache/lib/php".
.]:r:Mj)O5w fz0DOIT博客(i$pJ/~Kx]gd
解决办法虽然简单,但着实费了好半天劲DOIT博客;Y]8| cZ GZO kr

m D3h5b8F ^gR*v0#pear install DBDOIT博客I:kL,t v;J
it's ok!
C2L+MbJjx0DOIT博客6rg,A+lw'm.C
Installed packages, channel pear.php.net:
9k#M+tINC ] q9x0=========================================
HAjn6qOC s0Package        Version State
Mv iyo6W,n0Archive_Tar    1.3.1   stable
Yf&OUps6A$h6uo0u0Console_Getopt 1.2     stable
i{4zu{Q7v1vi?0DB             1.7.13  stable
Pg)I)Lyh#p,t0PEAR           1.4.9   stableDOIT博客} F%K QN f$O
XML_RPC        1.5.0   stable
mTjc!u0DOIT博客@+yoFsD&P3r9L

w,V@1K#r'C0fix can't find DB.phpDOIT博客h{9tY s r j

6E F.UD"bv$X0I've figured out a way to do it!DOIT博客)d8Sx:L*?{/y
DOIT博客)_6E3w6o#sU!crZ
firstly, you need to include /usr/share/pear BEFORE /usr/local/psa/apache/lib/php if you're going to incluse pear in the PHP.ini - global settings.DOIT博客Xv)E4oin
DOIT博客H*S0|e\GK?/S
ie. (there was no include directive in my php.ini, so i added
Fw9]h1YD*IL0
@I&q1C Nqz0include_path = .:/usr/share/pear:/usr/local/psa/apache/lib/php
6g Ww3S Q0
?(~&g7lj7g,H0if you do this, then the following is what you need for the vhosts/domain/conf/vhost.conf:
9OE\CMIR L(\~0DOIT博客8nPy7V,D7nmn
<Directory /usr/local/psa/home/vhosts/domain/httpdocs>
n-I8JAKri6v%s0php_admin_value open_basedir /usr/local/psa/home/vhosts/domain/httpdocs:/tmp:/usr/share/pear
0o#KvF?h0</Directory>DOIT博客8~p-M` ru,u}

LQ?B#VAU[}k0if you dont want to modify php.ini, or make it global, then you need the following, for the vhost.conf:
t+iA+Zsua`Q0
\~_j{#t6D0<Directory /usr/local/psa/home/vhosts/domain/httpdocs>DOIT博客4ck(AE,}S T5D
php_value include_path /usr/share/pear
9|(C8rt;w+M0php_admin_value open_basedir /usr/local/psa/home/vhosts/domain/httpdocs:/tmp:/usr/share/pearDOIT博客WY:bf"^ g'Fk1}v y
</Directory>DOIT博客8AL1yl7vVC

M rZ(vz Wr0try it!DOIT博客!]?kF R,J

8m8W&j(rb d{u0看了网上很多资料 其实就是少装了pear的db模块 希望大家少走弯路,如果解决了你的问题,请流言给我也算鼓励DOIT博客5^2?2n7eM-b8ph

TAG: pear squirrelmail 调试

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

日历

« 2008-10-17  
   1234
567891011
12131415161718
19202122232425
262728293031 

数据统计

  • 访问量: 3101
  • 日志数: 68
  • 建立时间: 2007-05-17
  • 更新时间: 2008-10-09

RSS订阅

Open Toolbar