[url]http://www.mysql.com/downloads/down...3.52-1.i386.rpm[/url]
[url]http://www.mysql.com/downloads/down...3.52-1.i386.rpm[/url]
cd /home/tmp
rpm -ivh MySQL-3.23.52-1.i386.rpm #安装mysql server
rpm -ivh MySQL-client-3.23.52-1.i386.rpm #安装mysql client
/usr/mysql/safe_mysqld & #启动mysql server
mysql #运行mysql 客户端,并开放root用户的远程访问权限。以便调试
use mysql
update user set host = '%' where user = 'root' and host <> 'localhost';
flush privileges;
quit
cd /home/tmp
tar -zxvf apache_1.3.26.tar.gz
mv apache_1.3.26.tar.gz apache
cd apache
./configure --prefix=/usr/local/apache --enable-module=so
make
make install
cd /home/tmp
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
对apache做如下配置
#将ServerAdmin [email]q3boy@younet.com[/email]一行改为您的邮箱地址
# DirectoryIndex default.php default.phtml default.php3 default.html default.htm
#
#设置apache的默认文件名次序
#AddType application/x-httpd-php-source .phps
#设置php文件后缀
#register-golbals = On
/usr/local/apache/bin/apachectl start
apache在linux下的默认最大进程数为256,无论如何修改httpd.conf都不能超过这个限制。如果想加大这个限制,在编译apache前编辑/home/tmp/apache/src/include/httpd.h,将其中#define HARD_SERVER_LIMIT 256 一行改为#define HARD_SERVER_LIMIT 2048后再编译apache,
[url]http://www.php.net/get_download.php?df=php-4.2.3.tar.gz[/url]
apache:
[url]http://www.apache.org/dist/httpd/apache_1.3.26.tar.gz[/url]
mysql server:
[url]http://www.mysql.com/downloads/down...3.52-1.i386.rpm[/url]
mysql client:
[url]http://www.mysql.com/downloads/down...3.52-1.i386.rpm[/url]