Install extension modules for PHP 5.6 created under Software Collections (multiple PHP versions in a system)

This article is the continuation of Running multiple PHP versions on CentOS 7 using Virtualmin. Some of us assumed that the additional PHP version in our systems inherits the extension modules installed for system version of the default PHP package installed from system distribution. Remember the two PHP versions installed are independent in respect to each other so we need to install another set of extension modules for our additional PHP version.

  • In order to see what extension modules are available for our additional PHP version (in this case version 5.6), execute this command:

          
        yum search rh-php56-php
          
        

    You should see something like this:

          
        rh-php56-php-debuginfo.x86_64 : Debug information for package rh-php56-php
        rh-php56-php-pecl-jsonc-debuginfo.x86_64 : Debug information for package rh-php56-php-pecl-jsonc
        rh-php56-php-pecl-memcache-debuginfo.x86_64 : Debug information for package rh-php56-php-pecl-memcache
        rh-php56-php-pecl-mongo-debuginfo.x86_64 : Debug information for package rh-php56-php-pecl-mongo
        rh-php56-php-pecl-xdebug-debuginfo.x86_64 : Debug information for package rh-php56-php-pecl-xdebug
        rh-php56-php.x86_64 : PHP scripting language for creating dynamic web sites
        rh-php56-php-bcmath.x86_64 : A module for PHP applications for using the bcmath library
        rh-php56-php-cli.x86_64 : Command-line interface for PHP
        rh-php56-php-common.x86_64 : Common files for PHP
        rh-php56-php-dba.x86_64 : A database abstraction layer module for PHP applications
        rh-php56-php-dbg.x86_64 : The interactive PHP debugger
        rh-php56-php-devel.x86_64 : Files needed for building PHP extensions
        rh-php56-php-embedded.x86_64 : PHP library for embedding in applications
        rh-php56-php-enchant.x86_64 : Enchant spelling extension for PHP applications
        rh-php56-php-fpm.x86_64 : PHP FastCGI Process Manager
        rh-php56-php-gd.x86_64 : A module for PHP applications for using the gd graphics library
        rh-php56-php-gmp.x86_64 : A module for PHP applications for using the GNU MP library
        rh-php56-php-intl.x86_64 : Internationalization extension for PHP applications
        rh-php56-php-ldap.x86_64 : A module for PHP applications that use LDAP
        rh-php56-php-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling
        rh-php56-php-mysqlnd.x86_64 : A module for PHP applications that use MySQL databases
        rh-php56-php-odbc.x86_64 : A module for PHP applications that use ODBC databases
        rh-php56-php-opcache.x86_64 : The Zend OPcache
        rh-php56-php-pdo.x86_64 : A database access abstraction module for PHP applications
        rh-php56-php-pear.noarch : PHP Extension and Application Repository framework
        rh-php56-php-pecl-jsonc.x86_64 : Support for JSON serialization
        rh-php56-php-pecl-jsonc-devel.x86_64 : JSON developer files (header)
        rh-php56-php-pecl-memcache.x86_64 : Extension to work with the Memcached caching daemon
        rh-php56-php-pecl-mongo.x86_64 : PHP MongoDB database driver
        rh-php56-php-pecl-xdebug.x86_64 : PECL package for debugging PHP scripts
        rh-php56-php-pgsql.x86_64 : A PostgreSQL database module for PHP
        rh-php56-php-process.x86_64 : Modules for PHP script using system process interfaces
        rh-php56-php-pspell.x86_64 : A module for PHP applications for using pspell interfaces
        rh-php56-php-recode.x86_64 : A module for PHP applications for using the recode library
        rh-php56-php-snmp.x86_64 : A module for PHP applications that query SNMP-managed devices
        rh-php56-php-soap.x86_64 : A module for PHP applications that use the SOAP protocol
        rh-php56-php-xml.x86_64 : A module for PHP applications which use XML
        rh-php56-php-xmlrpc.x86_64 : A module for PHP applications which use the XML-RPC protocol
          
        
  • We will install the PHP extension modules: MySQL driver, Zend OPcache, Memcached caching daemon, gd graphics library, multi-byte string handling and MongoDB database driver.

          
        yum install rh-php56-php-mysqlnd rh-php56-php-opcache rh-php56-php-pecl-memcache rh-php56-php-gd rh-php56-php-mbstring rh-php56-php-mongo
          
        
  • Reset the Apache web server:

      
    systemctl restart httpd.service
      
    
Tags

Comments

Add new comment

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.