Linux上安装Apache Php Mysql的过程[2]
文章作者 100test 发表时间 2007:05:02 14:45:39
来源 100Test.Com百考试题网
二.linux下安装apache
1.tar -zxvf httpd-2.2.4.tar.gz
2.cd httpd-2.2.4
3. ./configure –prefix=/www --enable-so
4.make clean
5.make
6.make install
三.linux下安装php
1.tar -zxvf php-5.2.1.tar.gz
2.cd php-5.2.1
3. ./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql --with-apxs2=/www/bin/apxs
4.make clean
5.make
6.make install
apache中加载php模块
7 Setup your php.ini
cp php.ini-dist /usr/local/lib/php.ini
8.. Edit your httpd.conf to load the PHP module.
For PHP 4:
LoadModule php4_module modules/libphp4.so
For PHP 5:
LoadModule php5_module modules/libphp5.so
9. Tell Apache to parse certain extensions as PHP.
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps