Skip to content

Instantly share code, notes, and snippets.

@pniaps
Last active March 5, 2018 09:04
Show Gist options
  • Save pniaps/e1aa34663c07fbceb5d87be8c893a65b to your computer and use it in GitHub Desktop.
Save pniaps/e1aa34663c07fbceb5d87be8c893a65b to your computer and use it in GitHub Desktop.
CentOS 7 httpd - php7 - MariaDB 10.2
yum -y install httpd mod_ssl
systemctl start httpd.service
systemctl enable httpd.service
yum -y install epel-release yum-utils
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum-config-manager --enable remi-php72
yum -y install php php-fpm php-mysql php-mbstring php-dom php-xml php-gd
cat << EOF > /etc/yum.repos.d/MariaDB.repo
# MariaDB 10.2 CentOS repository list - created 2018-03-04 06:23 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.2/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
EOF
yum -y install MariaDB-server MariaDB-client
systemctl start mariadb
systemctl enable mariadb
mysql_secure_installation
timedatectl set-timezone Europe/Madrid
yum -y install git svn zip unzip
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/bin --filename=composer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment