日期:2014-05-16  浏览次数:21052 次

apache2.2.4 PHP 环境的安装及扩展配置
apache2.2.4的安装及扩展配置
?
当前系统
redhat9
apache2.0.54? /usr/local/apache2
mysql5.0.16? /usr/local/mysql
php 5.0.4??? /usr/local/php5
?
现在需要安装apache2.2.4
过程如下
编译:安装目录为--prefix=/usr/local/apache22
./configure --prefix=/usr/local/apache22 --with-layout=apache --enable-module=so --enable-module=setenvif --enable-module=rewrite --with-mpm=prefork --enable-ssl
安装
make
make install
?
在安装了apache2.2.4之后,直接启动,会报有关ServerName的警告,但是还是可以启动的.通过客户端访问看到的默认页面是一句话 it works
在配置文件中修改如下:
#ServerName [url]www.example.com:80[/url]
ServerName 127.0.0.1
就不会报错了
?