[原创]apache同php的DSO配置方法

发表于:2007-05-25来源:作者:点击数: 标签:
作者:南非蜘蛛zhedou@sohu.com 个人主页:http://www.douzhe.com 转载请保留作者信息 动态(DSO) APACHE编译: #cdapache_1.3.27 #./configure--prefix=/home/apache--enable-shared=max #make #makeinstall PHP编译: #cd../ php -4.2.3 #./configure--with-a

作者:南非蜘蛛 zhedou@sohu.com 
个人主页:http://www.douzhe.com
转载请保留作者信息

动态(DSO)
APACHE编译:
#cd apache_1.3.27
#./configure --prefix=/home/apache --enable-shared=max
#make
#make install

PHP编译:
#cd ../php-4.2.3
#./configure --with-apxs=/home/apache/bin/apxs --enable-track-vars --with-mysql
#make
#make install

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
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

 78020281 回复于:2003-01-15 14:10:03
老大如果都是使用pkg的话,如何修改配置文件呢?

 南非蜘蛛 回复于:2003-01-15 14:48:49
[quote:e62360ae13="78020281"]老大如果都是使用pkg的话,如何修改配置文件呢?[/quote:e62360ae13]
帅哥,这里我要说的是
apache安装我强烈建议用源代码安装,本身要定制的东西太多了,用pkg就固定死了,原码安装也很简单,何必用pkg那?

我没有用过pkg,看看readme,应该很easy,你也可以把README贴出来,大家研究研究

 78020281 回复于:2003-01-15 17:19:04
嘿嘿,是有些钻牛角尖了。学习!!!!

 li2002 回复于:2003-04-28 19:23:32
老大,在sco unix下能成功吗,我按照你的步骤做下来,启动时出现不能load php的库文件,看看文件就在指定的目录下,不知是什么原因?郁闷中。。。。。。。。。。

原文转自:http://www.ltesting.net