如何让web服务器支持php4 (急)

由 crazydream 在 01-12-2003 17:00 发表:

如何让web服务器支持php4 (急)

配置:rh7.2,apache1.3.27,php4.2.3

我的安装过程是这样的

1,安装php4.2.3

#tar php4.2.3*

#。/configure

#make

#make install

2.#tar apache*

#./configure--prefix=/usr/local/apache

#make

#make install

按照很多网上的文章,我的apache编译时没有写出支持php的语句,

我想知道,现在我怎样做才能让apache支持php4.(目前我的apache已经可以启动运行了)


由 dreamrise 在 01-12-2003 18:49 发表:


你查看一下你的这个文件:

/usr/local/apache/conf/http.conf

里面有这些行没有:

#LoadModule php4_module modules/libphp4.so

#AddType application/x-httpd-php .php4 .php .htm .php3 .inc .fire

#AddType application/x-httpd-php-source .phps

另外还要查看这个目录:

/usr/local/apache/modules

下面有libphp4.so这个文件没有。

如果是RH8自带的PHP好像不要这些行,因为它的PHP不是用DSO加入的。

好像是做为一个Filter?我也不懂。

RH8的apache是Apache/2.0.40

这是RH8所带php4.2.2的configure:

'./configure' '--host=i686-pc-linux-gnu' '--build=i686-pc-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--prefix=/usr' '--with-config-file-path=/etc' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db3' '--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext' '--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-discard-pat

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus