Error installing php 7.2

8 posts / 0 new
Last post
#1 Fri, 08/09/2019 - 12:08
loyalwhite

Error installing php 7.2

Hi,

I am following the instructions here to install multiple PHP versions.

https://www.virtualmin.com/documentation/web/multiplephp

However, when I run the commands: yum install centos-release-scl

followed by:

yum install rh-php72 rh-php72-php-mysqlnd

I get the errors: No package rh-php72 available. No package rh-php72-php-mysqlnd available. Error: Nothing to do

Any idea what might be wrong?

Sat, 08/10/2019 - 09:47
andreychek

Howdy,

Hmm, what Linux distribution/version is it that you're using there?

-Eric

Mon, 08/12/2019 - 14:48
loyalwhite

Hi Eric,

It's Centos 6.10.

Wed, 10/23/2019 - 12:10
henrygud

I have the sama problem, did you find a solution ? Centos 6.10

Wed, 10/23/2019 - 12:22
andreychek

Howdy,

I did a little digging on the SCL site, and unfortunately what I'm seeing is that the PHP packages appear to only be built for CentOS 7 now... it doesn't appear that they're being made available to systems running CentOS 6.

Just to verify though, what output do you receive with this command:

yum search php

Unfortunately, the answer may be though that it's not possible to use a newer PHP version with that old a distro. Sorry!

-Eric

Wed, 10/23/2019 - 12:29
henrygud

ok I see, perhaps 7.1 ? Now running 5.3.3, 5.4.40, 7.0.27

cups-php.x86_64 : Common Unix Printing System - php module graphviz-php.x86_64 : PHP extension for graphviz mod_php71u.x86_64 : PHP module for the Apache HTTP Server php.x86_64 : PHP scripting language for creating dynamic web sites php-bcmath.x86_64 : A module for PHP applications for using the bcmath library php-cli.x86_64 : Command-line interface for PHP php-common.x86_64 : Common files for PHP php-dba.x86_64 : A database abstraction layer module for PHP applications php-devel.x86_64 : Files needed for building PHP extensions php-embedded.x86_64 : PHP library for embedding in applications php-fpm.x86_64 : PHP FastCGI Process Manager php-gd.x86_64 : A module for PHP applications for using the gd graphics library php-imap.x86_64 : A module for PHP applications that use IMAP php-intl.x86_64 : Internationalization extension for PHP applications php-ldap.x86_64 : A module for PHP applications that use LDAP php-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling php-mcrypt.x86_64 : Standard PHP module provides mcrypt library support php-mysql.x86_64 : A module for PHP applications that use MySQL databases php-odbc.x86_64 : A module for PHP applications that use ODBC databases php-pdo.x86_64 : A database access abstraction module for PHP applications php-pear.noarch : PHP Extension and Application Repository framework php-pecl-apc.x86_64 : APC caches and optimizes PHP intermediate code php-pgsql.x86_64 : A PostgreSQL database module for PHP php-process.x86_64 : Modules for PHP script using system process interfaces php-pspell.x86_64 : A module for PHP applications for using pspell interfaces php-recode.x86_64 : A module for PHP applications for using the recode library php-snmp.x86_64 : A module for PHP applications that query SNMP-managed devices php-soap.x86_64 : A module for PHP applications that use the SOAP protocol php-tidy.x86_64 : Standard PHP module provides tidy library support php-xml.x86_64 : A module for PHP applications which use XML php-xmlrpc.x86_64 : A module for PHP applications which use the XML-RPC protocol php-zts.x86_64 : Thread-safe PHP interpreter for use with the Apache HTTP Server php54.x86_64 : Package that installs PHP 5.4 php54-php-cli.x86_64 : Command-line interface for PHP php54-php-common.x86_64 : Common files for PHP php54-php-gd.x86_64 : A module for PHP applications for using the gd graphics library php54-php-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling php54-php-mysqlnd.x86_64 : A module for PHP applications that use MySQL databases php54-php-pdo.x86_64 : A database access abstraction module for PHP applications php54-php-pear.noarch : PHP Extension and Application Repository framework php54-php-process.x86_64 : Modules for PHP script using system process interfaces php54-php-xml.x86_64 : A module for PHP applications which use XML php54-runtime.x86_64 : Package that handles php54 Software Collection. php71u-bcmath.x86_64 : A module for PHP applications for using the bcmath library php71u-cli.x86_64 : Command-line interface for PHP php71u-common.x86_64 : Common files for PHP php71u-dba.x86_64 : A database abstraction layer module for PHP applications php71u-dbg.x86_64 : The interactive PHP debugger php71u-devel.x86_64 : Files needed for building PHP extensions php71u-embedded.x86_64 : PHP library for embedding in applications php71u-enchant.x86_64 : Enchant spelling extension for PHP applications php71u-fpm.x86_64 : PHP FastCGI Process Manager php71u-fpm-httpd.noarch : Apache HTTP Server configuration for PHP-FPM php71u-fpm-nginx.noarch : Nginx configuration for PHP-FPM php71u-gd.x86_64 : A module for PHP applications for using the gd graphics library php71u-gmp.x86_64 : A module for PHP applications for using the GNU MP library php71u-imap.x86_64 : A module for PHP applications that use IMAP php71u-interbase.x86_64 : A module for PHP applications that use Interbase/Firebird databases php71u-intl.x86_64 : Internationalization extension for PHP applications php71u-ioncube-loader.x86_64 : IonCube Loader provides PHP Modules to read IonCube Encoded Files php71u-json.x86_64 : JavaScript Object Notation extension for PHP php71u-ldap.x86_64 : A module for PHP applications that use LDAP php71u-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling php71u-mcrypt.x86_64 : Standard PHP module provides mcrypt library support php71u-mysqlnd.x86_64 : A module for PHP applications that use MySQL databases php71u-odbc.x86_64 : A module for PHP applications that use ODBC databases php71u-pdo.x86_64 : A database access abstraction module for PHP applications php71u-pecl-igbinary.x86_64 : Replacement for the standard PHP serializer php71u-pecl-mongodb.x86_64 : MongoDB driver for PHP php71u-pecl-xdebug.x86_64 : PECL package for debugging PHP scripts php71u-pgsql.x86_64 : A PostgreSQL database module for PHP php71u-process.x86_64 : Modules for PHP script using system process interfaces php71u-pspell.x86_64 : A module for PHP applications for using pspell interfaces php71u-recode.x86_64 : A module for PHP applications for using the recode library php71u-snmp.x86_64 : A module for PHP applications that query SNMP-managed devices php71u-soap.x86_64 : A module for PHP applications that use the SOAP protocol php71u-tidy.x86_64 : Standard PHP module provides tidy library support php71u-xml.x86_64 : A module for PHP applications which use XML php71u-xmlrpc.x86_64 : A module for PHP applications which use the XML-RPC protocol phpMyAdmin49-httpd.noarch : Apache HTTP Server configuration for phpMyAdmin phpMyAdmin49-nginx.noarch : Nginx configuration for phpMyAdmin rh-php70.x86_64 : Package that installs PHP 7.0 rh-php70-php.x86_64 : PHP scripting language for creating dynamic web sites rh-php70-php-bcmath.x86_64 : A module for PHP applications for using the bcmath library rh-php70-php-cli.x86_64 : Command-line interface for PHP rh-php70-php-common.x86_64 : Common files for PHP rh-php70-php-dba.x86_64 : A database abstraction layer module for PHP applications rh-php70-php-dbg.x86_64 : The interactive PHP debugger rh-php70-php-devel.x86_64 : Files needed for building PHP extensions rh-php70-php-embedded.x86_64 : PHP library for embedding in applications rh-php70-php-enchant.x86_64 : Enchant spelling extension for PHP applications rh-php70-php-fpm.x86_64 : PHP FastCGI Process Manager rh-php70-php-gd.x86_64 : A module for PHP applications for using the gd graphics library rh-php70-php-gmp.x86_64 : A module for PHP applications for using the GNU MP library rh-php70-php-imap.x86_64 : A module for PHP applications that use IMAP rh-php70-php-intl.x86_64 : Internationalization extension for PHP applications rh-php70-php-json.x86_64 : JavaScript Object Notation extension for PHP rh-php70-php-ldap.x86_64 : A module for PHP applications that use LDAP rh-php70-php-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling rh-php70-php-mysqlnd.x86_64 : A module for PHP applications that use MySQL databases rh-php70-php-odbc.x86_64 : A module for PHP applications that use ODBC databases rh-php70-php-pdo.x86_64 : A database access abstraction module for PHP applications rh-php70-php-pear.noarch : PHP Extension and Application Repository framework rh-php70-php-pgsql.x86_64 : A PostgreSQL database module for PHP rh-php70-php-process.x86_64 : Modules for PHP script using system process interfaces rh-php70-php-pspell.x86_64 : A module for PHP applications for using pspell interfaces rh-php70-php-recode.x86_64 : A module for PHP applications for using the recode library rh-php70-php-snmp.x86_64 : A module for PHP applications that query SNMP-managed devices rh-php70-php-soap.x86_64 : A module for PHP applications that use the SOAP protocol rh-php70-php-tidy.x86_64 : Standard PHP module provides tidy library support rh-php70-php-xml.x86_64 : A module for PHP applications which use XML rh-php70-php-xmlrpc.x86_64 : A module for PHP applications which use the XML-RPC protocol rh-php70-php-zip.x86_64 : ZIP archive management extension for PHP rh-php70-runtime.x86_64 : Package that handles rh-php70 Software Collection. rh-php70-scldevel.x86_64 : Package shipping development files for rh-php70 rrdtool-php.x86_64 : PHP RRDtool bindings sclo-php70-php-mcrypt.x86_64 : Standard PHP module provides mcrypt library support sclo-php70-php-pecl-igbinary.x86_64 : Replacement for the standard PHP serializer sclo-php70-php-pecl-mongodb.x86_64 : MongoDB driver for PHP sclo-php70-php-pecl-propro-devel.x86_64 : sclo-php70-php-pecl-propro developer files (header) sclo-php70-php-pecl-raphf-devel.x86_64 : sclo-php70-php-pecl-raphf developer files (header) sclo-php70-php-pecl-selinux.x86_64 : SELinux binding for PHP scripting language sclo-php70-php-pecl-uuid.x86_64 : Universally Unique Identifier extension for PHP sclo-php70-php-pecl-xdebug.x86_64 : PECL package for debugging PHP scripts sclo-php70-php-smbclient.x86_64 : PHP wrapper for libsmbclient sclo-php70-unit-php.x86_64 : PHP module for NGINX Unit uuid-php.x86_64 : PHP support for Universally Unique Identifier library uwsgi-plugin-php71u.x86_64 : uWSGI - Plugin for PHP support wbm-php-pear.noarch : Webmin module for 'PHP Pear Modules' pear1.noarch : PHP Extension and Application Repository framework pear1u.noarch : PHP Extension and Application Repository framework php-enchant.x86_64 : Human Language and Character Encoding Support php-pecl-apc-devel.i686 : APC developer files (header) php-pecl-apc-devel.x86_64 : APC developer files (header) php-pecl-memcache.x86_64 : Extension to work with the Memcached caching daemon php71u-opcache.x86_64 : The Zend OPcache php71u-pdo-dblib.x86_64 : PDO driver Microsoft SQL Server and Sybase databases php71u-pecl-amqp.x86_64 : Communicate with any AMQP compliant server php71u-pecl-apcu.x86_64 : APC User Cache php71u-pecl-apcu-bc.x86_64 : APCu Backwards Compatibility Module php71u-pecl-apcu-devel.x86_64 : APCu developer files (header) php71u-pecl-apcu-panel.noarch : APCu control panel php71u-pecl-geoip.x86_64 : Extension to map IP addresses to geographic places php71u-pecl-igbinary-devel.x86_64 : Igbinary developer files (header) php71u-pecl-imagick.x86_64 : Provides a wrapper to the ImageMagick library php71u-pecl-memcached.x86_64 : Extension to work with the Memcached caching daemon php71u-pecl-redis.x86_64 : Extension for communicating with the Redis key-value store phpMyAdmin49.noarch : Handle the administration of MySQL over the World Wide Web rh-php70-build.x86_64 : Package shipping basic build configuration rh-php70-php-opcache.x86_64 : The Zend OPcache sclo-php70-php-ast.x86_64 : Abstract Syntax Tree sclo-php70-php-pecl-amqp.x86_64 : Communicate with any AMQP compliant server sclo-php70-php-pecl-apcu.x86_64 : APC User Cache sclo-php70-php-pecl-apcu-bc.x86_64 : APCu Backwards Compatibility Module sclo-php70-php-pecl-apcu-devel.x86_64 : APCu developer files (header) sclo-php70-php-pecl-apfd.x86_64 : Always Populate Form Data sclo-php70-php-pecl-http.x86_64 : Extended HTTP support sclo-php70-php-pecl-http-devel.x86_64 : Extended HTTP support developer files (header) sclo-php70-php-pecl-igbinary-devel.x86_64 : Igbinary developer files (header) sclo-php70-php-pecl-imagick.x86_64 : Extension to create and modify images using ImageMagick sclo-php70-php-pecl-imagick-devel.x86_64 : imagick extension developer files (header) sclo-php70-php-pecl-lzf.x86_64 : Extension to handle LZF de/compression sclo-php70-php-pecl-msgpack.x86_64 : API for communicating with MessagePack serialization sclo-php70-php-pecl-msgpack-devel.x86_64 : MessagePack developer files (header) sclo-php70-php-pecl-propro.x86_64 : Property proxy sclo-php70-php-pecl-raphf.x86_64 : Resource and persistent handles factory sclo-php70-php-pecl-redis.x86_64 : Extension for communicating with the Redis key-value store sclo-php70-php-pecl-redis4.x86_64 : Extension for communicating with the Redis key-value store sclo-php70-php-pecl-redis5.x86_64 : Extension for communicating with the Redis key-value store sclo-php70-php-pecl-solr2.x86_64 : Object oriented API to Apache Solr sclo-php70-php-pecl-ssh2.x86_64 : Bindings for the libssh2 library sclo-php70-php-pecl-uploadprogress.x86_64 : An extension to track progress of a file upload sclo-php70-php-pecl-xattr.x86_64 : Extended attributes sclo-php70-php-phpiredis.x86_64 : Client extension for Redis

Name and summary matches only, use "search all" for everything.

Wed, 10/23/2019 - 12:44
andreychek

Howdy,

From what I'm seeing there, it looks like the SCL repo no longer has anything newer than PHP 7.0 for CentOS 6.

I see PHP 7.1 in your output above, but that's for the IUS repo, which I'm not really familiar with... we haven't done any testing with that.

I'll also offer that PHP 7.1 hits it's end of life next month, and for that reason I really can't recommend it.

I'm really sorry, but it's looking like if you need newer software versions, you may need to go with a newer distro.

Virtualmin's CentOS 8 support should be available soon, you may consider testing that out once it's announced.

-Eric

Wed, 10/23/2019 - 12:50
henrygud

Ok I have Centos 8 ready for testing so I will wait until the support is there.

Thanks Henry