Last active
December 19, 2018 20:53
-
-
Save cerealskill/710e883bd715529b606266e986305a7f to your computer and use it in GitHub Desktop.
Deploy PHP 5.6 on CentOS 7.4
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
| #!/bin/bash | |
| #sudo yum install -y httpd php55w php55w-opcache php55w-mbstring php55w-gd php55w-xml php55w-pear php55w-fpm php55w-mysql | |
| #sudo yum install centos-release-scl | |
| #sudo yum install php55 php55-php php55-php-gd php55-php-mbstring | |
| #sudo yum install -y php55-php-pgsql | |
| #sudo yum install php55-php-mysqlnd | |
| #sudo yum -y install php | |
| sudo yum remove php* | |
| sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
| sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm | |
| sudo yum install yum-utils | |
| # sudo yum-config-manager --enable remi-php55 [Install PHP 5.5] | |
| sudo yum-config-manager --enable remi-php56 [Install PHP 5.6] | |
| # sudo yum-config-manager --enable remi-php72 [Install PHP 7.2] | |
| sudo yum-config-manager --enable remi-php56 | |
| sudo yum install php php-mcrypt php-cli php-gd php-curl php-mysql php-ldap php-zip php-fileinfo php-pgsql php-xml php-mbstring | |
| sudo php -v | |
| sudo systemctl restart httpd.service | |
| echo "<? phpinfo(); ?>" > /var/www/html/info.php | |
| echo "Go to url to test http://YOUR_IP/info.php"; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment