#Prepare CentOS 7.0 Server for Learning Locker LRS
###Assumptions:
- CentOS 7.0 x64 is installed (default install from DigitalOcean Droplet Manager)
- Logged in via ssh key with root privileges
- Using MongoDB as database
Install Remi Collet Repository:
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
Install Apache:
yum --enablerepo=remi install httpd
Install PHP and necessary PHP modules:
yum --enablerepo=remi,remi-php56 install php php-common php-cli php-pear php-mysqlnd php-pecl-mongo php-gd php-mbstring php-mcrypt php-xml
Install MongoDB
yum install mongodb mongodb-server
Install NodeJs:
yum install nodejs
Install Node Package Manager (NPM):
yum install npm
Install Bower:
npm install -g bower
Install GIT:
yum install git
Install DeltaRPM:
yum install deltarpm
Update CentOS
yum update
Start the Firewall Daemon and enable automatic startup
systemctl start firewalld.service
systemctl enable firewalld.service
Allow HTTP Access through Firewall
firewall-cmd --permanent --zone=public --add-service=http
systemctl restart firewalld.service
Start Apache HTTP Daemon and enable automatic startup
systemctl start httpd.service
systemctl enable httpd.service
Start MongoDB and enable automatic startup
systemctl start mongod
systemctl enable mongod
Install Composer and set global launch
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer