#install Apache+MySQL+PHP+ZIP
yum -y install httpd php mysql mysql-server php-mysql zip unzip
# start httpd service
service httpd start
# start mysql service
service mysqld start
# set mysql local password for root
mysqladmin -u root password ‘wc20080512‘
# install apache modules
yum -y install httpd-manual mod_ssl mod_perl mod_auth_mysql
# install php extensions
yum -y install php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc php-bcmath
# install mysql plugins
yum -y install mysql-connector-odbcmysql-devel libdbi-dbd-mysql
#mount and format disk
fdisk /dev/sdb
mkfs -t ext4 /dev/sdb1
mkdir /extends
mount /dev/sdb1 /extends
vi /etc/fstab
#install ftp server and config
yum install vsftpd
/usr/sbin/adduser -d /extends/ftp -s /sbin/nologin ftpuser
passwd ftpuser
chmod 775 /extends/ftp
#config remote access to mysql
GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘cuit2010211079..‘ WITH GRANT OPTION;
FLUSH PRIVILEGES;
#optimize config files
vi /etc/httpd/conf/httpd.conf
vi /etc/my.cnf
vi /etc/php.ini
#add iptables regulars
vi /etc/sysconfig/iptables
-A INPUT -p tcp --dport 80 -j ACCEPT
-I INPUT -p tcp --dport 3306 -j ACCEPT
/var/lib/mysql
#shutdown selinux temporary
setenforce 0
Now, start to enjoy it!