安装步骤:

1.mysql
在如下页面下载mysql的for linux rpm包
http://www.mysql.com/downloads/down...3.52-1.i386.rpm
http://www.mysql.com/downloads/down...3.52-1.i386.rpm

rpm -ivh MySQL-3.23.52-1.i386.rpm #安装mysql server
rpm -ivh MySQL-client-3.23.52-1.i386.rpm #安装mysql client
/usr/bin/safe_mysqld & #启动mysql server

mysql #运行mysql 客户端,并开放root用户的远程访问权限。以便调试
quit

2.apache
在如下页面下载apache的for linux 的源码包
http://www.apache.org/dist/httpd/apache_1.3.26.tar.gz

tar -zxvf apache_1.3.26.tar.gz
mv apache_1.3.26 apache
cd apache
./configure --prefix=/usr/local/apache --enable-module=so
make
make install

3.php
在如下页面下载php的for linux 的源码包
http://www.php.net/get_download.php?df=php-4.2.3.tar.gz

tar -zxvf php-4.2.3.tar.gz
mv php-4.2.3.tar.gz php
cd php
./configure --prefix=/usr/local/php --with-apxs=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/lib --enable-track-vars --with-xml --with-mysql
make
make install
cp php.ini-dist /usr/local/lib/php.ini

4.配置
vi /usr/local/apache/conf/httpd.conf
对apache做如下配置
#将ServerAdmin q3boy@younet.com一行改为您的邮箱地址

#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

5.启动服务
/usr/local/apache/bin/apachectl start

by | 不指定 2008/04/21 16:54 | 服务器技术 | 评论(1) | 引用(0) | 阅读(583)
BoyerLACEY Email Homepage
2010/06/14 20:30
It very affecting  how detailed research on acquaintance case has been well enlarge  here within this website. Please keep it up. we adore it. I know that you are a well-recognized and reliable source  on the Internet and I will use this for my <a href="http://www.essaysprofessors.com">research paper services</a> needs. Thanks.
分页: 1/1 第一页 1 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]