Topic: Upgrade PHP to 7.2 without internet

Hi Remi et al,

I am facing a tricky situation here. At work, my Linux box is running on RHEL 6.9, but does not have an internet connection (purely intranet). I also have a Windows desktop that is online.

The Linux box has PHP 5.3.3 installed, but I wish to upgrade it to PHP 7.2 (for use with Apache 2.2). I have already downloaded all the php72-php-* rpms that I want through the Windows machine, and I can install them on the Linux box, but it turns out that they are installed as php72, and does not directly replace the base php.

From what I gather, it seems possible to replace the base php by the following method:

1. Install epel-release and remi-release rpms
2. yum-config-manager --enable remi-php72
3. yum install php php-cli php-common ...

The problem is that this method requires an internet connection for my Linux box which I don't have.

What can I do to directly replace the base php with php72 in this situation? Is there any other workaround available?

Or, if this is not possible, how can I make Apache work with php72 if I install them as such?

Any help would be appreciated. Thank you.

Re: Upgrade PHP to 7.2 without internet

Because you have download the php72-php* packages (from "remi", designed for multiple versions) instead of the php-* packages (from "remi-php72" designed for single / default version)

See: https://blog.remirepo.net/pages/English-FAQ#scl

Download the proper packages, and install them offline.
it will work.

Desktop: Fedora 29 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 30 x86_64 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 6.10 x86_64 with EPEL, remi, remi-php72 and remi-php72-test

3 (edited by offline 2019-11-26 10:06:33)

Re: Upgrade PHP to 7.2 without internet

Hi Remi,

Thanks for your swift reply! I didn't realise there were two different repos, my bad.

Just one more question though. I had downloaded the following modules from php72-php-*:

php72-php-soap-7.2.25-1.el6.remi.x86_64.rpm
php72-php-xml-7.2.25-1.el6.remi.x86_64.rpm
php72-php-xmlrpc-7.2.25-1.el6.remi.x86_64.rpm
php72-runtime-2.0-1.el6.remi.x86_64.rpm

But I couldn't find the equivalent packages at:

http://rpms.remirepo.net/enterprise/6/p … /repoview/

Are they included in some of the other packages already? Or, perhaps you haven't prepared them yet? (I noticed the dates of the packages are very recent).

In any case, thank you very much for your hard work!

Edit: Oops, my bad, I found them already. Sorry and thanks!

Re: Upgrade PHP to 7.2 without internet

The repoview list is truncated (only the ~20 recent ones)

See full list
http://rpms.remirepo.net/enterprise/6/php72/x86_64/

php72-runtime is only for php72* packages, php* packages don't need it (it relies on "filesystem" package, always present)

Desktop: Fedora 29 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 30 x86_64 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 6.10 x86_64 with EPEL, remi, remi-php72 and remi-php72-test

5 (edited by offline 2019-11-27 02:14:15)

Re: Upgrade PHP to 7.2 without internet

Thanks for your explanation, Remi!

Unfortunately, I encountered another problem when trying to install phpMyAdmin-4.9.2-1.el6.remi.noarch.rpm, it requires:

php-composer(fedora/autoloader)

But I can't find this package on your site anywhere. I tried downloading the composer.phar file from https://getcomposer.org and renaming it to "php-composer" and placing it in /usr/local/bin for example, but it doesn't work.

How should I resolve this problem?

Thanks.

Re: Upgrade PHP to 7.2 without internet

php-composer(vendor/project) are virtual provides, usually the package is php-vendor-project

So php-fedora-autoloader

Really, you should run the YUM transaction from a test env, with internet.

Desktop: Fedora 29 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 30 x86_64 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 6.10 x86_64 with EPEL, remi, remi-php72 and remi-php72-test

Re: Upgrade PHP to 7.2 without internet

Yeah, I wish I could do that, but it's not possible here at my workplace  sad

Anyway, I have finally managed to install everything I needed, one-by-one neutral

Thank you very much for your help, Remi! smile