Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

IMPORTANT: These instruction are only for a new server installation only. If you are upgrading a server to PHP 7.2 please see the PHP 7.2 Upgrade Instructions


Insert excerpt
PHP 7.2 Upgrade
PHP 7.2 Upgrade
nopaneltrue

Install Process


  1. Remove any previous versions of PHP 

    Code Block
    languagebash
    themeRDark
    yum -y remove php*
  2. Instal EPEL and Remi-Safe repositories. Install Yum Utils.

    Code Block
    languagebash
    themeRDark
    # RedHat 6 or CentOS 6
    yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm http://rpms.remirepo.net/enterprise/remi-release-6.rpm yum-utils
    
    # RedHat 7 or CentOS 7
    yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm http://rpms.remirepo.net/enterprise/remi-release-7.rpm yum-utils
  3. Set the PHP Version to 7.2 

    Code Block
    languagebash
    themeRDark
    yum-config-manager --enable remi-php72
  4. Update all currently installed packages 

    Code Block
    languagebash
    themeRDark
    yum -y update
  5. Install PHP 7.2 

    Code Block
    languagebash
    themeRDark
    yum -y install php72 php72-php
  6. Make a symbolic link so that php = php72 

    Code Block
    languagebash
    themeRDark
    ln -s /usr/bin/php72 /usr/bin/php
  7. Edit the php.ini file. This will typically be located at /etc/opt/remi/php72/php.ini. The following lines need to be updated: 

    Code Block
    languagebash
    themeRDark
    # Set the max file upload size to 10 Megabytes
    upload_max_filesize = 10M
    
    # This would need to be set to the timezone in which the Server is located
    date.timezone = America/Detroit 
  8. Install the PHP modules required by PCR-360 

    Code Block
    languagebash
    themeRDark
    yum -y install php72-php-process php72-php-xml php72-php-pecl-apcu php72-php-gd php72-php-pecl-imagick php72-php-intl php72-php-mbstring php72-php-pecl-mcrypt php72-php-pdo php72-php-soap
  9. Install installation dependant Packages. These will depend on how the server is configured. 

    Code Block
    languagebash
    themeRDark
    # MySql support
    yum -y install php72-php-mysqlnd
      
    #Oracle Support
    yum -y install php72-php-oci8
      
    # LDAP Support
    yum -y install php72-php-ldap
  10. Verify that PHP 7.2 is installed. 

    Code Block
    languagebash
    themeRDark
    php -v
    
    PHP 7.2.12 (cli) (built: Nov  6 2018 15:26:22) ( NTS )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies