/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 GZOkrm
D3h5b8F ^ gR*v0#pear install DB
DOIT博客I:kL,tv;Jit's ok!
C2L+MbJjx0DOIT博客6rg,A+lw'm.CInstalled packages, channel pear.php.net:
9k#M+tINC
]q9x0=========================================
HA jn6qOC s0Package Version State
Mviyo6W,n0Archive_Tar 1.3.1 stable
Yf&OUps6A$h6uo0u0Console_Getopt 1.2 stable
i{4zu{Q7v1vi?0DB 1.7.13 stablePg)I)Lyh#p,t0PEAR 1.4.9 stableDOIT博客}F%K
QNf$OXML_RPC 1.5.0 stable
mTjc!u0DOIT博客@+yoFsD&P3r9Lw,V@1K#r'C0fix can't find DB.php
DOIT博客h{9tY sr
j6E F.UD"bv$X0I've figured out a way to do it!
DOIT博客)d8Sx:L*?{/yDOIT博客)_6E3w6o#sU!crZfirstly, 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)E4oinDOIT博客H*S0|e\GK?/Sie. (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#Kv F?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
T5Dphp_value include_path /usr/share/pear
9|(C8rt;w+M0php_admin_value open_basedir /usr/local/psa/home/vhosts/domain/httpdocs:/tmp:/usr/share/pear
DOIT博客WY:bf"^
g'Fk1}v
y</Directory>
DOIT博客8AL1yl7vVCMrZ(vz
Wr0try it!
DOIT博客!]?kFR,J8m8W&j(rb d {u0看了网上很多资料 其实就是少装了pear的db模块 希望大家少走弯路,如果解决了你的问题,请流言给我也算鼓励
DOIT博客5^2?2n7eM-b8ph