Created
May 20, 2014 23:43
-
-
Save mikedugan/eb73e664e230d7e8936f to your computer and use it in GitHub Desktop.
Script to install Apache 2.2, PHP 5.5, MySQL 5.5 on CentOS 6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
yum update -y | |
wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm | |
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm | |
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm | |
yum --enablerepo=remi,remi-php55 install -y mysql mysql-server php httpd php-mbstring php-mysql php-gd php-mcrypt curl php-xml php-xmlrpc php-cli | |
chkconfig --levels 235 mysqld on | |
chkconfig --levels 235 httpd on | |
/etc/init.d/mysqld start | |
/etc/init.d/httpd start | |
/usr/bin/mysql_secure_installation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment