Skip to content

Instantly share code, notes, and snippets.

@dinhkk
Last active April 18, 2019 19:39
Show Gist options
  • Select an option

  • Save dinhkk/ea20d60c1cb826899d86dc79f5a87361 to your computer and use it in GitHub Desktop.

Select an option

Save dinhkk/ea20d60c1cb826899d86dc79f5a87361 to your computer and use it in GitHub Desktop.

php7.0

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum install php70w php70w-opcache php70w-fpm php70w-common php70w-cli php70w-devel php70w-gd php70w-imap php70w-intl php70w-mbstring php70w-mcrypt php70w-mysqlnd php70w-pear 
yum install php70w-pecl-apcu php70w-pecl-memcached php70w-pecl-mongodb php70w-pecl-redis php70w-pecl-xdebug php70w-soap php70w-xmlrpc

php7.2

yum install php72w php72w-bcmath php72w-cli php72w-common php72w-dba php72w-devel php72w-embedded php72w-enchant php72w-fpm php72w-gd
yum install php72w-imap php72w-interbase php72w-intl php72w-ldap php72w-mbstring php72w-mysql php72w-odbc 
yum install php72w-opcache php72w-pdo php72w-pear php72w-pecl-apcu php72w-pecl-imagick php72w-pecl-mongodb php72w-process 
yum install php72w-pspell php72w-recode php72w-snmp php72w-soap php72w-tidy php72w-xml php72w-xmlrpc

Phalcon centos 7

https://www.if-not-true-then-false.com/2011/install-nginx-php-fpm-on-fedora-centos-red-hat-rhel/ yum --enablerepo=remi,remi-php70 install php-fpm php-phalcon

mysql: https://downloads.mariadb.org/mariadb/repositories/#mirror=nus&distro=CentOS&distro_release=centos7-amd64--centos7&version=10.2

  1. yum -y install mysql-community-server
  2. rpm -ivh https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
  3. systemctl start mysqld && systemctl enable mysqld
  4. cat /var/log/mysqld.log | grep -i 'temporary password'
  5. mysql_secure_installation
  6. if need to reset root pw: go=> https://stackoverflow.com/questions/33510184/change-mysql-root-password-on-centos7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment