Skip to content

Instantly share code, notes, and snippets.

@eaguad1337
Last active March 27, 2020 00:55
Show Gist options
  • Save eaguad1337/60c0df063867553f0498b5757238e893 to your computer and use it in GitHub Desktop.
Save eaguad1337/60c0df063867553f0498b5757238e893 to your computer and use it in GitHub Desktop.
yum -y install rh-nodejs8
scl enable rh-nodejs8 bash
yum group install -y "Development Tools"
yum -y install libpng-devel
rpm -Uvh https://repo.mysql.com/mysql80-community-release-el7-3.noarch.rpm
sed -i 's/enabled=1/enabled=0/' /etc/yum.repos.d/mysql-community.repo
yum --enablerepo=mysql57-community install -y mysql-community-server
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum -y --enablerepo=remi-php71 install php php-fpm php-mysqlnd php-zip php-gd php-mcrypt php-mbstring php-dom
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'e0012edf3e80b6978849f5eff0d4b4e4c79ff1609dd1e613307e16318854d24ae64f26d17af3ef0bf7cfb710ca74755a') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
mv composer.phar /usr/local/bin/composer
useradd www-data
chcon -vR -t httpd_sys_rw_content_t /home/www-data
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment