|  | 
 
| today i read this file,i install them successfully,so i want to share it with all the linuxer: 
 环境:
 系统:Red hat linux 8.0
 (if you  OS is mdk9, you should install bison and flex ,you can find them in you mdk cd ,then you can compile php successfully.)
 apache: httpd-2.0.45
 php: php-4.3.1
 mySQL:mysql3.34.x
 1)安装mysql
 ./configure --prefix=/usr/local/mysql
 make
 make install
 这一步基本上不会出多大问题。
 2)安装apache2
 tar -zxvf httpd-2.0.45.tar.gz
 cd httpd-2.0.45
 ./configure --prefix=/usr/local/apache2 --enable-module=so
 make
 make install
 这一步记的要加--enable-module=so 选项,使 apache支持DSO
 Do not forget 'make clean',or configure file may be wrong
 3)安装php
 tar -zxvf php-4.3.1.tar.gz
 cd php-4.3.1
 ./configure --prefix=/usr/local/php \
 --with-apxs2=/usr/local/apache2/bin/apxs \
 --with-config-file-path=/usr/local/lib \
 --enable-track-vars \
 --with-xml \
 --with-mysql
 make
 make install
 4)
 cp php.ini-dist /usr/local/lib/php.ini
 5)
 在httpd.conf中加入下面语句:
 LoadModule php4_module modules/libphp4.so
 AddType application/x-httpd-php .php .php4 .php3 .phtml
 6)
 /usr/local/apapche2/bin/apachectl start
 7)
 在浏览器中输入:http://localhost 应该看到apache 的欢迎界面
 
  安装完文档默认目录为/usr/local/apache2/htdocs
 新建一个PHP文件,名字为info.php放在此目录下,
 内容为:
 <?
 phpinfo();
 ?>
 然后在浏览器里测试
 http://localhost/info.php
 如果看到本机的环境信息,表示OK。
 ----------------------------------------------------------
 以上方法不能保证在不同的环境下通过
 有问题联系 [email protected]
 !!!!!!!!
 | 
 |