Skip to content

Instantly share code, notes, and snippets.

@mikedugan
Created May 20, 2014 23:43

Revisions

  1. Mike Dugan created this gist May 20, 2014.
    12 changes: 12 additions & 0 deletions webstack.bash
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    #!/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