1、MYSQL安裝php
下載MYSQL安裝包:MySQL-client-XXX.rpm MySQL-server-XXX.rpm MySQL-devel-XXX.rpmnode
若有衝突,要先刪除原來的MYSQL:mysql
rpm -e --nodeps mysql-libs-xxxxx.elxxx.i686 (舊的)sql
而後安裝:apache
rpm -ivh MySQL-server-5.1.XXX-0.i386.rpmrest
這時會建立一個mysql的用戶,service mysql start便可啓動服務server
再安裝客戶端:ip
rpm -ivh MySQL-client-5.1.XXX-0.i386.rpmtable
配置:cli
要配置防火牆iptables,還有Mysql默認不對外,要執行一條語句,容許外部訪問
啓動:
service mysql start/stop/restart
2、apache安裝
要有: apr-1.5.2.tar.bz2 apr-util-1.5.4.tar.bz2 pcre-8.73.tar.gz httpd-2.4.16.tar.bz2
遂個configure make make install便可
啓動:
service httpd start/stop/restart
3、安裝php