How To Install php 7.1 on Centos 7

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 :
cd ~
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum install yum-utils
rpm -Uvh epel-release-latest-7.noarch.rpm rpm -Uvh remi-release-7.rpm
yum install php php-devel php-fpm php-gd php-mbstring php-pdo php-pecl-swoole php-pgsql php-mcrypt
yum-config-manager --enable remi-php71
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.

After installation, you can verify by typing php -v then enter.
[root@afftechmen ~]# php -v
PHP 5.4.16 (cli) (built: Nov  6 2016 00:29:02)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
you are now succesfully install PHP 7. To make sure PHP-FPM are installed and running type service php-fpm status ;
[root@afftechmen ~]# service php-fpm status
Redirecting to /bin/systemctl status php-fpm.service
* php-fpm.service - The PHP FastCGI Process Manager
   Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
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 start
Redirecting to /bin/systemctl start php-fpm.service
Then verify again ... if succesfully running will be show as follow :
Redirecting to /bin/systemctl status php-fpm.service
* php-fpm.service - The PHP FastCGI Process Manager
   Loaded: 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 ago
 Main 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 www

Oct 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