Home > php教程 > php手册 > body text

以动态模块的方式安装apache2.0.44+PHP4.3.0

WBOY
Release: 2016-06-13 10:28:46
Original
922 people have browsed it

经过一天的努力,终于装完了apache2.0.44+PHP4.3.0呵呵, 不禁佩服自己的愚蠢 :( 以前安装都是用php静态模块的方式,似乎在apache2以上的版本上行不通(猜测而已:)) 安装过程简述如下: mysql以前已经用rpm安装完成(rpm -ivh mysql-3.23.i386.rpm) 1.取得apache2.0.44和php-4.3.0的tarball. 放在/下 #tar zxvf apache2.0.44.tar.gz 解开目录为httpd-2.0.44 #tar zxvf php-4.3.0.tar.gz 2安装apache2.0.44 #cd /httpd-2.0.44 #./configure --prefix=/usr/local/apache #make #make install apache2.0.44安装完成,大约需要半个小时 3安装php4.3.0 #cd /php-4.3.1 #./configure --with-mysql --with-apxs2=/usr/local/apache/bin/apxs --enable-versioning --disable-debug --enable-track-vars #make #make install --with-mysql 表示支持mysql 其中--with-apxs2=/usr/local/apache/bin/apxs 一定不能少,这个参数把php以动态模块的方式安装到apache下 #cp /php-4.3.0/php.ini-dist /usr/local/lib/php.ini #vi /usr/local/lib/php.ini 修改 register_globals=On 至此,php安装完成,大约半小时, 4.配置httpd.conf #cd /usr/local/apache/conf #vi httpd.conf 加入两行: LoadModule php4_module modules/libphp4.so AddType application/x-httpd-php .php 修改Listen 192.168.0.1:80 5.启动: /usr/local/apache/bin/apachectl start 5。测试: 在/usr/local/apache/htdocs下 编辑index.php 在ie 中输入http://192.168.0.1/index.php 可以看见熟悉的php的表以及信息。 ----------------- 〈完〉

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template