Home > CentOS > Install Apache, MySQL, PHP

Install Apache
yum install httpd mod_ssl

Start Apache
/etc/init.d/httpd start

Install MySQL
yum install mysql-server

Start MySQL
/etc/init.d/mysqld start

Change MySQL root password
mysqladmin -u root password NEWPASSWORD

Install PHP
yum install php php-mysql php-common php-gd php-mbstring php-mcrypt php-devel php-xml

Restart Apache
/etc/init.d/httpd restart

Automatic turn on servers on reboot
chkconfig httpd on
chkconfig mysqld on



Flag Counter