日期:2014-05-16 浏览次数:20745 次
需要root权限Linux上全源码安装Apache、MySQL、PHP、WSF安装(原创)
# wget?http://apache.mirror.phpchina.com/httpd/httpd-2.2.6.tar.gz
# tar zxvf httpd-2.2.6.tar.gz
# cd httpd-2.2.6
#./configure --prefix=/usr/local/apache2 --enable-so
# make
# make install
# make clean
# cp /usr/local/apache2/bin/apachectl /etc/rc.d/init.d/httpd
# cd /etc/rc.d/rc3.d
# ln –s ../init.d/httpd S80httpd
# wget?http://mysql.ntu.edu.tw/Downloads/MySQL-5.0/mysql-5.0.45.tar.gz
# tar zxvf mysql-5.0.45.tar.gz
# cd mysql-5.0.45
# ./configure --prefix=/usr/local/mysql --enable-thread-safe-client --with-charset=utf8
# make
# make install
# cp support-files/my-medium.cnf /etc/my.cnf
# make clean
# groupadd mysql
# useradd -g mysql mysql
# cd /usr/local/mysql
# chown -R mysql .
# chgrp -R mysql .
# chown -R root .
# chown -R mysql var