Created
April 11, 2018 21:17
-
-
Save francosalcedo/26273f7e51348b8ee829383f6f55f48f to your computer and use it in GitHub Desktop.
Add php 7 to Ispconfig 3 - 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
| cd /tmp | |
| wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm | |
| rpm -ivh remi-release-7.rpm | |
| You can install PHP7.0 in no-conflict mode. This means that your FPM service will be php70-php-fpm, your php.ini will be different, and your cli will be php70 | |
| Code: | |
| yum install php70-php-bcmath php70-php-cli php70-php-common php70-php-fpm php70-php-gd php70-php-intl php70-php-json php70-php-mbstring php70-php-mcrypt php70-php-mysqlnd php70-php-opcache php70-php-pdo php70-php-pear php70-php-pecl-uploadprogress php70-php-pecl-zip php70-php-soap php70-php-xml php70-php-xmlrpc - | |
| Edit /etc/opt/remi/php70/php-fpm.d/www.conf | |
| Code: | |
| listen = 127.0.0.1:9000 | |
| to | |
| Code: | |
| listen = 127.0.0.1:8999 | |
| Then you can start it | |
| Code: | |
| systemctl start php70-php-fpm | |
| systemctl enable php70-php-fpm | |
| In Ispconfig Additional php versions | |
| ISPConfig Backend, System -> Server Config -> Web -> PHP Settings | |
| Name: PHP70 | |
| FastCGI tab | |
| Path to the PHP FCGI binary: | |
| Code: | |
| /opt/remi/php70/root/usr/bin/php-cgi | |
| Path to the php.ini directory: | |
| Code: | |
| /etc/opt/remi/php70 | |
| PHP FPM tab | |
| Path to the PHP-FPM init script: | |
| Code: | |
| php70-php-fpm | |
| Path to the php.ini directory: | |
| Code: | |
| /etc/opt/remi/php70 | |
| Path to the PHP-FPM pool directory: | |
| Code: | |
| /etc/opt/remi/php70/php-fpm.d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment