想让php支持snmp,gd等模块(内详),请问这个怎么安装 ?

王朝厨房·作者佚名  2007-01-05
窄屏简体版  字體: |||超大  

php为4.3.2,已经安装好,但是安装jffnms的时候显示如下的php status:

PHP Status

Register Globals set to On YES

SNMP Module Loaded? NO

Sockets Module Loaded? NO

GD Module Loaded? NO

optional MySQL Module Loaded? YES

optional PgSQL Module Loaded? NO

Perl Compatible Regular Expressions Module Loaded? YES

optional - WDDX Enconding Module Loaded? NO

optional - experimental SOAP Module Loaded? NO

register gloabals可以在php.ini里修改。但是其他的模块支持请问怎么添加,谢谢!

diychen 回复于:2003-10-06 14:52:07

重新编译!

seacaptain 回复于:2003-10-07 11:05:57

安装snmpImportant: In order to use the UCD SNMP package, you need to define NO_ZEROLENGTH_COMMUNITY to 1 before compiling it. After configuring UCD SNMP, edit config.h and search for NO_ZEROLENGTH_COMMUNITY. Uncomment the #define line. It should look like this afterwards: #define NO_ZEROLENGTH_COMMUNITY 1

Now compile PHP --with-snmp[=DIR].

安装gd

0. Make sure you have libjpeg and libpng installed

1. Grab GD-2.0.1.

2. tar zxvf gd-2.0.1.tar.gz

3. cd gd-2.0.1

4. Edit the Makefile and change the LIBS line to be:

LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm

5. make libgd.a (don't need to do a make install)

6. Now build PHP using these flags:

--with-gd=/home/<you>/gd-2.0.1

--with-freetype-dir=/usr

--enable-gd-native-ttf (for PHP 4.0.6 leave off trailing 'f')

--enable-gd-imgstrttf

--with-jpeg-dir=/usr

--with-png-dir=/usr

--with-zlib

gzkaka 回复于:2003-10-08 09:09:47

谢谢各位,本来想找个更好的方法象类似与apache DSO那样加进模块,但是最后还是自己重新编译了。

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航