I am running some SLES 12 servers that I have upgraded to SP5. I thought PHP would be getting upgraded along with the service pack, but it appears not to be. The server still lists PHP 7.0.7.
I think I should be on 7.4 according to these two links:
What did I miss? I would appreciate it if someone would point me to the docs for getting PHP upgraded since I don’t seem to find it. I typically use zypper.
Thanks!
zypper in php74*
Refreshing service ‘Containers_Module_12_x86_64’.
Refreshing service ‘SUSE_Linux_Enterprise_Server_12_SP5_x86_64’.
Refreshing service ‘SUSE_Linux_Enterprise_Software_Development_Kit_12_SP5_x86_64’.
Refreshing service ‘Web_and_Scripting_Module_12_x86_64’.
Loading repository data…
Reading installed packages…
Resolving package dependencies…
The following 9 recommended packages were automatically selected:
php74-ctype php74-dom php74-iconv php74-json php74-openssl php74-sqlite php74-tokenizer php74-xmlreader php74-xmlwriter
The following 9 packages have no support information from their vendor:
libsodium23 libtidy-0_99-0 libxml2-devel pcre2-devel php74-APCu php74-devel php74-redis readline-devel xz-devel
82 new packages to install.
Overall download size: 31.4 MiB. Already cached: 0 B. After the operation, additional 130.2 MiB will be used.
Continue? [y/n/…? shows all options] (y):
Maybe I am misunderstanding the docs. From the way it reads, I assumed that applying SP5 should’ve automatically included the latest PHP version. But you mention “zypper in php74*”…does moving to PHP 7.4 require this separate step?
You can easily force the upgrade to 7.4, however, the reason it’s not ‘automatic’ is that if you have it already installed, SUSE does not know if your application(s) supports the latest version. That’s why the readme tells you to review breaking changes, issues, etc. Are you at 7.2 or 7.3 now? What applications are you running via PHP? Do the applications support 7.3/7.4/etc?
I’m just hosting some simple websites (internal) with some basic php scripts. My SLES 12 server is still running PHP 7.0.7. I installed 7.4, but running into issues getting it functioning. I may just stand up a new SLES 15 server and migrate my websites to it. Might be less trouble than trying to get php7.4 functioning on SLES 12. But thanks for the help!