请高手给一个mysql+php的完全安装手册把 我一直都装不好啊

请高手给一个mysql+php的完全安装手册把 我一直都装不好啊

谢谢了
这个应该对你有用

# compile and install mysql
tar xvfz mysql-3.23.47.tar.gz
mv mysql-3.23.47 mysql
cd mysql
./configure --prefix=/usr/local/mysql
make
make install
scripts/mysql_install_db

# set the attribute of directories
groupadd mysql
useradd -g mysql mysql
chown -R root /usr/local/mysql
chown -R mysql /usr/local/mysql/var
chgrp -R mysql /usr/local/mysql
cp support-files/my-medium.cnf /etc/my.cnf

# make mysql auto start and auto stop
cd /usr/local/mysql/share/mysql
chmod +x mysql.server
cp mysql.server /etc/rc.d/init.d/mysql
cd /etc/rc.d/rc3.d/
ln -s ../init.d/mysql S99mysql
/usr/local/mysql/share/mysql/mysql.server start

# gunzip apache and php
cd /etc/local
tar xvfz apache_1.3.19.tar.gz
tar xvfz php-4.0.5.tar.gz
mv apache_1.3.19 apache
mv php-4.0.5 php

# compile and install php4
cd apache
./configure --prefix=/usr/local/apache
cd ../php
./configure --with-apache=../apache --with-mysql --disable-debug --enable-ftp --enable-track-vars
make
make install
cp php.ini-dist /usr/local/lib/php.ini

# compile and install apache
cd ../apache
./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libphp4.a
make
make install

# make apache support php4
cd /usr/local/apache/conf
sed 's/#\(AddType application\/x-httpd-php \.php\)/\1\
AddType application\/x-httpd-php .php4/' httpd.conf > httpd.bak
mv -f httpd.bak httpd.conf
#\/是斜杠

# make apache auto start and auto stop
cd /usr/local/apache/bin
chmod +x apachectl
cp apachectl /etc/rc.d/init.d/apache
cd /etc/rc.d/rc3.d/
ln -s ../init.d/apache S99apache
cd ../rc0.d/
ln -s ../init.d/apache K10apache
cd ../rc6.d/
ln -s ../init.d/apache K10apache
/usr/local/apache/bin/apachectl start

# clear all
cd /etc/local
rm -rf mysql apache php