Last active
April 2, 2020 10:34
-
-
Save iamdylanngo/7929d76c5219d657e0274ffc17012f29 to your computer and use it in GitHub Desktop.
centos7-php7.2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo yum install epel-release | |
| sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm | |
| sudo yum install yum-utils | |
| sudo yum-config-manager --enable remi-php72 | |
| sudo yum update | |
| sudo yum search php72 | more | |
| sudo yum search php72 | egrep 'fpm|gd|mysql|memcache' | |
| For Laravel | |
| yum install yum-utils | |
| yum-config-manager --enable remi-php72 | |
| yum install php php-fpm php-common php-xml php-mbstring php-json php-zip | |
| yum install mariadb-server php-mysql | |
| curl -sS https://getcomposer.org/installer | php | |
| mv composer.phar /usr/bin/composer | |
| chmod +x /usr/bin/composer | |
| cd /var/www/html/ | |
| sudo composer create-project --prefer-dist laravel/laravel testsite |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment