chowatt
8/3/2016 - 7:24 PM

Update blank development environment (CentOS) in CodeAnywhere

Update blank development environment (CentOS) in CodeAnywhere

sudo yum -y update

sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
sudo rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
sudo yum -y install http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo yum -y install http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm

wget http://repos.fedorapeople.org/repos/jkaluza/httpd24/epel-httpd24.repo

sudo cp epel-httpd24.repo /etc/yum.repos.d/

sudo yum -y install httpd24 php70w php70w-mysqlnd --enablerepo=epel
sudo yum -y install php70w-mcrypt php70w-mbstring php70w-intl php70w-gd php70w-opcache --enablerepo=epel
sudo yum -y install php70w-ldap
sudo yum -y install git vim xz
sudo curl --silent --location https://rpm.nodesource.com/setup_7.x | sudo bash -
sudo yum -y install mysql mysql-server 
sudo yum -y --enablerepo=remi,remi-test install phpMyAdmin
sudo yum -y install zlib fontconfig freetype libX11 libXext libXrender

sudo yum -y install nodejs
sudo npm install -g bower

wget https://getcomposer.org/installer
php installer
sudo mv composer.phar /bin/composer

wget http://download.gna.org/wkhtmltopdf/0.12/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz
tar -xf wkhtmltox-0.12.3_linux-generic-amd64.tar.xz
sudo cp  wkhtmltox/bin/wkhtmltopdf /usr/bin

sudo yum -y install https://github.com/imsweb/mugsy/releases/download/1.0.2/mugsy-1.0.2-1.x86_64.rpm

sudo rpm -ivh https://osquery-packages.s3.amazonaws.com/centos7/noarch/osquery-s3-centos7-repo-1-0.0.noarch.rpm
sudo yum -y install osquery


sudo chkconfig httpd on
sudo chkconfig mysqld on

git clone git@github.com:GalenCollege/Engage.git /home/cabox/workspace
cd /home/cabox/workspace
composer update
bower update
mkdir tmp
mkdir logs
chmod -R 777 tmp
chmod -R 777 logs

sudo service httpd restart
sudo service mysqld restart

Update Apache

  • Set document root to /home/cabox/workspace
  • Set directory to /home/cabox/workspace
  • Set directory AllowOverride All

Update phpMyAdmin to allow more than localhost

  • /etc/httpd/conf.d/phpMyAdmin.conf
  • Require all granted
  • Allow from all

phpMyAdmin Config location

  • /etc/phpMyAdmin/config.inc.php
  • $cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
  • $cfg['LoginCookieValidity'] = 144000;

/etc/php.ini

  • session.gc_maxlifetime = 144000