NETWORKSTIP Networking CCNA,Centos,Ubuntu,Sql,

Made By Muhammad Nafees

Breaking

Wednesday 5 December 2018

Install PHP 7.2 on CentOS 7 To Resolve Clipbucket 4 Installation Problem

Install PHP 7.2 on CentOS 7 To Resolve Clipbucket 4 Installation Problem PHP Recommend Version for Clipbucket

Enabling Remi repository

  • sudo yum install epel-release yum-utils
  • sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm 

Installing PHP 7.2 on CentOS 7

  • sudo yum-config-manager --enable remi-php72

Once the repository is enabled install PHP 7.2 and few most common PHP modules:

  •  sudo yum install php php-common php-opcache php-mcrypt php-cli php-gd php-curl php-mysqlnd

Verify the PHP installation, by typing the following command which will print the PHP version: 

  • php -v 

OutPut 
PHP 7.2.9 (cli) (built: Aug 15 2018 09:19:33) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.9, Copyright (c) 1999-2018, by Zend Technologies

 Installing PHP 7.1 on CentOS 7

Enable the PHP 7.1 repository by typing: 
  • sudo yum-config-manager --enable remi-php71
Install PHP 7.1 and few most common PHP modules:
  • sudo yum install php php-common php-opcache php-mcrypt php-cli php-gd php-curl php-mysql 
  • php -v 
OutPut
PHP 7.1.21 (cli) (built: Aug 15 2018 17:56:55) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.1.21, Copyright (c) 1999-2018, by Zend Technologies
  
  • sudo systemctl restart httpd 

 Configuring PHP 7.x to work with Nginx

  • sudo yum install php-fpm
By default PHP FPM will run as user apache on port 9000. We’ll change the user to nginx and switch from TCP socket to Unix socket. To do so edit the lines highlighted in yellow:
  • /etc/php-fpm.d/www.conf
...
user = nginx
...
group = nginx
...
listen = /run/php-fpm/www.sock
...
listen.owner = nginx
listen.group = nginx 


Make sure the /var/lib/php directory has the correct ownership:
  • chown -R root:nginx /var/lib/php
Once you made the changes, enable and start the PHP FPM service: 
  • sudo systemctl enable php-fpm
  • sudo systemctl start php-fpm 
  • sudo systemctl restart nginx
     

1 comment:

  1. Install Php 7.2 On Centos 7 To Resolve Clipbucket 4 Installation Problem - Networkstip Networking Ccna,Centos,Ubuntu,Sql, >>>>> Download Now

    >>>>> Download Full

    Install Php 7.2 On Centos 7 To Resolve Clipbucket 4 Installation Problem - Networkstip Networking Ccna,Centos,Ubuntu,Sql, >>>>> Download LINK

    >>>>> Download Now

    Install Php 7.2 On Centos 7 To Resolve Clipbucket 4 Installation Problem - Networkstip Networking Ccna,Centos,Ubuntu,Sql, >>>>> Download Full

    >>>>> Download LINK

    ReplyDelete