Skip to content

Instantly share code, notes, and snippets.

@mikedugan
Created May 20, 2014 23:43
Show Gist options
  • Save mikedugan/eb73e664e230d7e8936f to your computer and use it in GitHub Desktop.
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
#!/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