1.下载新的MySQL_server.rpm FOR Linux平台.
rpm -ivh Mysql_server_XXXX.rpm安装server平台
rpm -ivh Mysql_client_xxxx.rpm安装client包
如果你是更新安装的话,可能提示 confict,so replace rpm -ivh 为 rpm
-Uvh
2.安装 apache
tar -zxvf httpd-2.2.6.tar.gz
cd httpd-2.2.6
。/configure——prefix=/usr/local/apache——enable-module=so
make
make install
3.安装 php-5.2.4
tar -zxvf php-5.2.4.tar.gz
cd php-5.2.4
。/configure——prefix=/usr/local/php ——with-apxs2=/usr/local/apache2/bin/apxs
——with-config-file-path=/usr/local/lib——with-mysql
make
make install
cp php.ini-dist /usr/local/lib/php.ini
4.配置
vi /usr/local/apache/conf/httpd.conf对apache做如下配置
#ServerAdmin一行改为您的邮箱地址
#DocumentRoot "/home/httpd/html/" 此处为html文件主目录
#Options FollowSymLinks MultiViews为安全起见,去掉"Indexes"
# DirectoryIndex default.php default.phtml default.php3 default.html
default.htm
#
# 设置apache的默认文件名次序
#AddType application/x-httpd-php .php .phtml .php3 .inc
#AddType application/x-httpd-php-source .phps
# 设置php 文件后缀
存盘退出
vi /usr/local/lib/php.ini
#register-golbals = On
存盘退出