How to install or upgrade to PHP 7 on CentOS 7 Linux Server ... yum-config- manager --enable remi-php70 FOR PHP 7.1 EXECUTE: ...
Enable Remote Connection to Apache HTTP Server (httpd) –> Open Web server Port (80) on Iptables Firewall (as root user again) 2.1 CentOS/Red Hat (RHEL) 6.9. 2.1.1 Edit /etc/sysconfig/iptables file: 2.1.3 Restart Iptables Firewall: 2.2 Fedora 26/25/24 and CentOS/Red Hat (RHEL) 7.3. Test remote connection.
Here the complete command line :
Enable Remote Connection to Apache HTTP Server (httpd) –> Open Web server Port (80) on Iptables Firewall (as root user again) 2.1 CentOS/Red Hat (RHEL) 6.9. 2.1.1 Edit /etc/sysconfig/iptables file: 2.1.3 Restart Iptables Firewall: 2.2 Fedora 26/25/24 and CentOS/Red Hat (RHEL) 7.3. Test remote connection.
Here the complete command line :
Just copy and paste to your CLI after logged in as root previllege and you now have PHP7 installed on centos 7 and ready to production.cd ~wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpmwget http://rpms.remirepo.net/enterprise/remi-release-7.rpmyum install yum-utilsrpm -Uvh epel-release-latest-7.noarch.rpm rpm -Uvh remi-release-7.rpmyum install php php-devel php-fpm php-gd php-mbstring php-pdo php-pecl-swoole php-pgsql php-mcryptyum-config-manager --enable remi-php71
After installation, you can verify by typing php -v then enter.
you are now succesfully install PHP 7. To make sure PHP-FPM are installed and running type service php-fpm status ;[root@afftechmen ~]# php -vPHP 5.4.16 (cli) (built: Nov 6 2016 00:29:02)Copyright (c) 1997-2013 The PHP GroupZend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
The PHP FPM is installed and loaded but stated in dead (in active mode). Activate PHP-FPM services by typing : service php-fpm start.[root@afftechmen ~]# service php-fpm statusRedirecting to /bin/systemctl status php-fpm.service* php-fpm.service - The PHP FastCGI Process ManagerLoaded: loaded (/usr/lib/systemd/system/php-fpm.service; disabled; vendor preset: disabled)Active: inactive (dead)
[root@afftechmen ~]# service php-fpm startThen verify again ... if succesfully running will be show as follow :
Redirecting to /bin/systemctl start php-fpm.service
Redirecting to /bin/systemctl status php-fpm.service* php-fpm.service - The PHP FastCGI Process ManagerLoaded: loaded (/usr/lib/systemd/system/php-fpm.service; enabled; vendor preset: disabled)Active: active (running) since Mon 2017-10-02 21:39:03 CDT; 8s agoMain PID: 1528 (php-fpm)Status: "Ready to handle connections"CGroup: /system.slice/php-fpm.service|-1528 php-fpm: master process (/etc/php-fpm.conf)|-1529 php-fpm: pool www|-1530 php-fpm: pool www|-1531 php-fpm: pool www|-1532 php-fpm: pool www`-1533 php-fpm: pool wwwOct 02 21:39:03 afftechmen systemd[1]: Starting The PHP FastCGI Process Manager...Oct 02 21:39:03 afftechmen systemd[1]: Started The PHP FastCGI Process Manager.
0 Response to "How To Install php 7.1 on Centos 7"
Posting Komentar