Created
October 25, 2012 00:15
-
-
Save jmather/3949759 to your computer and use it in GitHub Desktop.
[WIP] simple server setup
This file contains hidden or 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/sh | |
| PACKAGES="nano apache" | |
| mkdir /tmp/install | |
| cd /tmp/install | |
| wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/6/x86_64/epel-release-6-5.noarch.rpm | |
| wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/6/x86_64/ius-release-1.0-10.ius.el6.noarch.rpm | |
| yes | rpm -ivh epel-release-6-5.noarch.rpm | |
| yes | rpm -ivh ius-release-1.0-10.ius.el6.noarch.rpm | |
| yes | rm -rf *.rpm | |
| MYSQL="devel bench server" | |
| MYSQLPKGS="mysql55" | |
| for X in $MYSQL | |
| do | |
| MYSQLPKGS="${MYSQLPKGS} mysql55-${X}" | |
| done | |
| PHP="gd intl cli mbstring mysqlnd pdo devel imap bcmath mcrypt" | |
| PHPPKGS="php54" | |
| for X in $PHP | |
| do | |
| PHPPKGS="${PHPPKGS} php54-${X}" | |
| done | |
| PACKAGES="${PACKAGES} ${MYSQLPKGS} ${PHPPKGS}" | |
| yes | yum erase mysql mysql-server mysql-libs | |
| yes | yum install $PACKAGES | |
| yes | rm -rf /tmp/install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment