Topic: php upgrade to ver 5.2.5 problem

Hi,

I am running PHP 5.16 in CentOS 5.4 and tried to upgrade php to ver 5.2.5.

I have downloaded two rpm files:

remi-release-5.rpm
epel-release-5-3.noarch.rpm

I have run the following command successfully:

"rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm"

However when I run the following command:

"yum --enablerepo=remi update php"

I got error like following:


*********************************************

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

Cannot find a valid baseurl for repo:addons

*********************************************

Can anyone please help? I am highly appreciated.

Re: php upgrade to ver 5.2.5 problem

Have you a direct internet connection ?
Have you configured a proxy ?

Try with addons repo disabled

+

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: php upgrade to ver 5.2.5 problem

No, I don't have the direct internet connection or a proxy configured. The server is blocked.  How do I disable the addons repo? Thanks.

Re: php upgrade to ver 5.2.5 problem

I don't have the direct internet connection

So, you can't use Yum.

You must download each package and install it manually with the rpm command.

+

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: php upgrade to ver 5.2.5 problem

Remi,

I have downloaded remi-release-5.rpm and epel-release-5-3.noarch.rpm to the linux server and run rpm -ivh two files.rpm successfully. How come the php version is still 5.1.6 when I issue php -v? I thought after running the two rpm files, they upgrade php to 5.2.5 already. What else do I need to do? Or these two rpm files are not the right one. I should download other files to do the php upgrade. If so, can you please tell me what and where to download? Sorry. I am a bit desperate after doing this for a week and no result. Thanks for your help and advice.

Regards,

Re: php upgrade to ver 5.2.5 problem

The remi-release RPM is only the yum auto-configuration package for the remi repository.
It doesn't update anything.

You must

- get the installed RPM list

rpm -qa php\*

- download the php* package you need from the repository (can't give you a direct link, as I don't know your arch)

- install the RPM in a single transaction

cd /path/to/your/download/dir
rpm -Uvh php*.rpm

You probably need more packages for dependencies.

+

P.S. php 5.2.5 is very old version which is not available in remi repository.
You'll find the latest 5.3.2 (or some old 5.2.x versions in the archives folder)

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: php upgrade to ver 5.2.5 problem

Remi,

Thanks a lot for the advice. Once I got the "get the installed RPM list" by running "rpm -qa php\*", how do I know which php* package I need from repository? For the repository, do you mean you have it at your website or I should search the internet? Right now, since php 5.2.5 is old, I think I need 5.2.10 or maybe 5.3.2. Would you give me a direct link? What is the purpose of yum repository? When I run "yum check update" or other yum command, I always get bad baseurl...  I believe this is due to my centos server is not connected to internet, right? Can I do something on the yum configuration file so that it won't ask for the baseurl and won't giver error when run yum command? Thanks.

Regards,

Re: php upgrade to ver 5.2.5 problem

Remi,

Sorry one more question. After I run "cd /path/to/your/download/dir" and "rpm -Uvh php*.rpm", do I need to compile? Thanks again.

Regards,

Re: php upgrade to ver 5.2.5 problem

I think you really need to read some documentation, before doing things you don't understand.

Once I got the "get the installed RPM list" by running "rpm -qa php\*", how do I know which php* package I need from repository?

You have the list, int the previous command result.

For the repository, do you mean you have it at your website or I should search the internet?

The Dépôt link on the top of this page.

What is the purpose of yum repository?

Yum if useless without internet connection (well you can use it to install package from the installation media).

+

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: php upgrade to ver 5.2.5 problem

Remi,

I am trying to run "rpm -Vuh remi-release-5.rpm"  and I got dependencies error required
epel-release>=5  . Where can I down this file? Please let me know. Thanks.

Regards,

Re: php upgrade to ver 5.2.5 problem

Have you read Repository Configuration ?

Reading your first post... it seems you already have it...

+

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: php upgrade to ver 5.2.5 problem

Yes, I think I have it already. But why it gave dependencies error for this file?

Re: php upgrade to ver 5.2.5 problem

Remi,

Wait, I think I already installed the remi-release-5.rpm in the first post. So I guess I have downloaded the wrong file. As according to the previous post referred to the URL http://rpms.famillecollet.com/, which package I should download in order to upgrade my php to ver 5.2.13? Please advise me. Thanks a lot.

Re: php upgrade to ver 5.2.5 problem

Sorry, but I think I can't help you more.

- read previous post
- read documentation
- read man page
- read documentation

+

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi