在Win平台用IIS,win32的apache默认支持dso
apache同php的DSO配置方法
1、动态(DSO)
APACHE编译:
#cd apache_1.3.27
#./configure --prefix=/home/apache --enable-shared=max
#make
#make install
2、PHP编译:
#cd ../php-4.2.3
#./configure --with-apxs=/home/apache/bin/apxs --enable-track-vars --with-mysql
#make
#make install
3、cd ../php-4.2.3
for PHP 3: cp php3.ini-dist /usr/local/lib/php3.ini
for PHP 4: cp php.ini-dist /usr/local/lib/php.ini
4、vi /usr/local/lib/php.ini
display_errors = On ----->;display_errors = Off
register_globals = Off ----->;register_globals = On
vi /home/apache/conf/httpd.conf
For PHP 3: AddType application/x-httpd-php3 .php3
For PHP 4: AddType application/x-httpd-php .php
更多问题到问题求助专区http://bbs.houdunwang.com/