php72 modules for centos

Issues related to configuring your network
Post Reply
mahmood
Posts: 122
Joined: 2017/06/04 12:21:09

php72 modules for centos

Post by mahmood » 2018/09/01 19:11:47

I have installed php72 from remi repo according to this How to Install PHP 7 in CentOS 7
. I also need the following plugins/modules for php72, but some are not available and yum will fetch php5. I am concerned about version mismatches and the mess in the package installation.

zip:
php-zipstream.noarch 0.2.2-6.el7 epel

dom:
No match in yum

User avatar
remirepo
Posts: 447
Joined: 2014/09/21 09:07:12
Location: France
Contact:

Re: php72 modules for centos

Post by remirepo » 2018/09/03 05:41:22

See the Wizard, https://rpms.remirepo.net/wizard/

Code: Select all

yum install php-dom php-zip
Notice: php-zipstream is a pure PHP library, very different from the zip extension.

P.S. for all extension , php-xxx will work, whatever is the package name (php-xml and php-pecl-zip in above example)
Remi's Repository - Forum - Blog

mahmood
Posts: 122
Joined: 2017/06/04 12:21:09

Re: php72 modules for centos

Post by mahmood » 2018/09/03 15:35:40

However, I installed php72-php-pecl-zip.x86_64 and php72-php-xml.x86_64 and they did the job.
Another question is about phpmyadmin. When I run yum install phpmyadmin, it wants to download some php5 packages.

Code: Select all

====================================================================================================
 Package                            Arch          Version                         Repository   Size
====================================================================================================
Installing:
 phpMyAdmin                         noarch        4.4.15.10-3.el7                 epel        4.7 M
Installing for dependencies:
 compat-libtidy                     x86_64        0.99.0-37.20091203.el7          epel        133 k
 libzip                             x86_64        0.10.1-8.el7                    base         48 k
 php-bcmath                         x86_64        5.4.16-45.el7                   base         58 k
 php-cli                            x86_64        5.4.16-45.el7                   base        2.7 M
 php-common                         x86_64        5.4.16-45.el7                   base        565 k
 php-fedora-autoloader              noarch        1.0.0-1.el7                     epel        9.6 k
 php-gd                             x86_64        5.4.16-45.el7                   base        128 k
 php-mbstring                       x86_64        5.4.16-45.el7                   base        505 k
 php-mysql                          x86_64        5.4.16-45.el7                   base        101 k
 php-pdo                            x86_64        5.4.16-45.el7                   base         99 k
 php-php-gettext                    noarch        1.0.12-1.el7                    epel         23 k
 php-process                        x86_64        5.4.16-45.el7                   base         56 k
 php-tcpdf                          noarch        6.2.13-1.el7                    epel        2.1 M
 php-tcpdf-dejavu-sans-fonts        noarch        6.2.13-1.el7                    epel        257 k
 php-tidy                           x86_64        5.4.16-7.el7                    epel         23 k
 php-xml                            x86_64        5.4.16-45.el7                   base        126 k
 t1lib                              x86_64        5.1.2-14.el7                    base        166 k


And it seems that there is no phpmyadmin for php72. Is that really important?

Code: Select all

Available Packages
php-phpmyadmin-motranslator.noarch                       3.4-1.el7                              epel
php-phpmyadmin-shapefile.noarch                          2.0-1.el7                              epel
php-phpmyadmin-sql-parser.noarch                         4.2.4-1.el7                            epel
phpMyAdmin.noarch                                        4.4.15.10-3.el7                        epel
Any idea?

User avatar
remirepo
Posts: 447
Joined: 2014/09/21 09:07:12
Location: France
Contact:

Re: php72 modules for centos

Post by remirepo » 2018/09/04 05:23:07

phpMyAdmin (4.0) in "EPEL" is design to work with PHP 5.4 in base repository and probably won't work with recent PHP version

phpMyAdmin (4.8) in "remi" repository will work with recent versions (at least 5.6), but rely on dependencies in base repository (not on SCL)
So you probably have to install PHP 7.2 as single / default version (see the Wizard)
Remi's Repository - Forum - Blog

Post Reply