Heim  >  Artikel  >  Backend-Entwicklung  >  以动态模块的方式安装apache2.0.44+PHP4.3.0_PHP教程

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

WBOY
WBOYOriginal
2016-07-13 17:28:53738Durchsuche

经过一天的努力,终于装完了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的表以及信息。 ----------------- 〈完〉

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/531725.htmlTechArticle经过一天的努力,终于装完了apache2.0.44+PHP4.3.0呵呵, 不禁佩服自己的愚蠢 :( 以前安装都是用php静态模块的方式,似乎在apache2以上的版本...
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn