tar -zxvf php-4.0b3.tar.gz
tar -zxvf mysql-3.23.9-alpha.tar.gz
tar -zxvf apache_1.3.11.tar.gz
将phpmyadmin下载到/server下
一样运转
tar -zxvf phpMyAdmin_2.0.5.tar.gz
cd /usr/src/mysql-XXXX
这里XXXX是法式的版本号,下同,体系必须已装置C开辟库
./configure -help
./configure -prefix=/server/mysql
make
make install
cd /server/mysql/bin
./mysql_install_db
到这mysql已装置胜利!
可以运转mysql数据库
/server/mysql/libexec/mysqld &
可以经由过程数据库检查法式mysqlshow检查数据库以后的形态
/server/mysql/bin/mysqlshow
第二步 装置apache及php4。
假如体系中已有apache运转先封闭此办事
killall httpd
编译apache及php4, 每个行号为一行
cd /usr/src/apache_1.3.x
./configure --prefix=/server/apache
cd ../php-4.0.x
./configure --with-mysql=/server/mysql --with-apache=../apache_1.3.x --enable-track-vars
make
make install
cd ../apache_1.3.x
./configure --prefix=/server/apache --activate-module=src/modules/php4/libphp4.a
make
make install
cd ../php-4.0.x
cp php.ini-dist /usr/local/lib/php.ini
apache及php4已装置胜利,上面设置装备摆设apache及php4