nmtui
Restart network service
systemctl restart network
Install net-tools
yum install net-tools
Add EPEL & REMI repositories
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
rpm -Uvh remi-release-7*.rpm epel-release-7*.rpm
Install PHP 5.6
yum install php php-gd php-mysql php-mcrypt php-curl
yum install php-mbstring php-dom
Install libunwind.so.8
wget ftp://ftp.muug.mb.ca/mirror/centos/7.1.1503/cloud/x86_64/openstack-kilo/common/libunwind-1.1-3.el7.x86_64.rpm
rpm -Uvh libunwind-*
Install nginx
yum install nginx
chcon -Rv --type=httpd_sys_content_t /usr/share/nginx/html
Prepare for VirtualBox
yum install dkms
yum install kernel-devel
Install VirtualBox
wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
wget http://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo
yum install VirtualBox-5.0
Install vagrant
wget https://releases.hashicorp.com/vagrant/1.7.4/vagrant_1.7.4_x86_64.rpm
rpm -Uvh vagrant_1.7.4_x86_64.rpm
Install mySQL
Add user www-data
sudo adduser www-data
sudo chown -R www-data:www-data /var/www
Compile & Install HHVM
yum install cpp gcc-c++ cmake git psmisc {binutils,boost,jemalloc}-devel {ImageMagick,sqlite,tbb,bzip2,openldap,readline,elfutils-lib
elf,gmp,lz4,pcre}-devel lib{xslt,event,yaml,vpx,png,zip,icu,mcrypt,memcached,cap,dwarf}-devel {unixODBC,expat,mariadb}-devel lib{edit,curl,x
ml2,xslt}-devel glog-devel oniguruma-devel ocaml gperf enca libjpeg-turbo-devel openssl-devel make
cd /tmp
git clone https://github.com/facebook/hhvm -b master hhvm --recursive
cd hhvm/
cmake .
make -j$(($(nproc)+1))
./hphp/hhvm/hhvm --version
sudo make install
vi /usr/lib/systemd/system/hhvm.service
systemctl enable hhvm
systemctl start hhvm
systemctl status hhvm
Install FastCGI
yum install php56-php-fpm
vim /opt/remi/php56/root/etc/php-fpm.d/www.conf
systemctl enable php56-php-fpm
systemctl start php56-php-fpm
Enable HTTP access
firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --reload
Install Subversion & Git
yum install svn git
yum install nodjs
yum install npm
npm update -g npm
hash -r
Install gulp
npm install gulp -g
Install composer
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
Install NFMC
svn export -r 3457 https://www.myipvoice.com/svn/trunk/dev.needfixmycar.com www.needfixmycar.com
cd www.needfixmycar.com
rm composer.lock
composer config -g github-oauth.github.com ef6caf9ade9588220e1364149537866054c907b1
composer install
php artisan cache:clear
php artisan config:clear
php artisan route:clear
php artisan view:clear
rm -Rf node_modules
npm install
gulp
Create database
create database needfixmycar;
create user needfixmycar;
grant all on needfixmycar.* to 'needfixmycar'@'%' identified by 'xxx';
grant all on needfixmycar.* to 'needfixmycar'@'localhost' identified by 'xxx';
yum install php56-php-pdo
yum install php56-php-mysqlnd
yum install php56-php-gd
yum install php56-php-mbstring
systemctl restart php56-php-fpm
chmod -R 777 /var/www/vanilla/conf
chmod -R 777 /var/www/vanilla/cache
chcon -R -t httpd_sys_rw_content_t /var/www/vanilla/conf
chcon -R -t httpd_sys_rw_content_t /var/www/vanilla/cache