# Php upgrades on SLES 12

**URL:** <https://forums.suse.com/t/php-upgrades-on-sles-12/37038>\
**Category:** SLES Updates\
**Created:** [February 18, 2022, 6:29pm UTC](https://forums.suse.com/t/php-upgrades-on-sles-12/37038 "2022-02-18T18:29:02Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ketter](https://avatars.discourse-cdn.com/v4/letter/k/2bfe46/32.png) [@ketter](https://forums.suse.com/u/ketter)\
**Post date:** [February 18, 2022, 6:29pm UTC](https://forums.suse.com/t/php-upgrades-on-sles-12/37038/1 "2022-02-18T18:29:02Z")

</div>

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:

> **[Release Notes | SUSE Linux Enterprise Server 12 SP5](https://www.suse.com/releasenotes/x86_64/SUSE-SLES/12-SP5/index.html)**
>
> This document provides guidance and an overview to high-level general features and updates for SUSE Linux Enterprise Server 12 SP5. Besides architecture or product-specific information, it also describes the capabilities and limitations of SUSE Linux...

[https://scc.suse.com/docs/lifecycle/sle/12/modules](https://scc.suse.com/docs/lifecycle/sle/12/modules)

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!

---

<div class="post-metadata">

**Author:** ![salisburyk](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@salisburyk](https://forums.suse.com/u/salisburyk)\
**Post date:** [February 22, 2022, 4:22pm UTC](https://forums.suse.com/t/php-upgrades-on-sles-12/37038/2 "2022-02-22T16:22:23Z")

</div>

You’re sure you have activated the Web and Scripting Module?

What does ‘SUSEConnect --list-extensions’ show you?

---

<div class="post-metadata">

**Author:** ![ketter](https://avatars.discourse-cdn.com/v4/letter/k/2bfe46/32.png) [@ketter](https://forums.suse.com/u/ketter)\
**Post date:** [February 22, 2022, 4:41pm UTC](https://forums.suse.com/t/php-upgrades-on-sles-12/37038/3 "2022-02-22T16:41:52Z")

</div>

Web and Scripting Module 12 x86\_64 (Activated)

---

<div class="post-metadata">

**Author:** ![salisburyk](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@salisburyk](https://forums.suse.com/u/salisburyk)\
**Post date:** [February 22, 2022, 5:43pm UTC](https://forums.suse.com/t/php-upgrades-on-sles-12/37038/4 "2022-02-22T17:43:03Z")

</div>

Strange. I’m showing 7.4.x installed on my 12 SP 5 systems. zypper info php74-devel for example;

> ## Information for package php74-devel:
> 
> Repository : SLE-SDK12-SP5-Updates  
> Name : php74-devel  
> Version : 7.4.6-1.33.1  
> Arch : x86\_64  
> Vendor : SUSE LLC [https://www.suse.com/](https://www.suse.com/)  
> Support Level : unknown  
> Installed Size : 5.1 MiB  
> Installed : No  
> Status : not installed  
> Source package : php74-7.4.6-1.33.1.src  
> Summary : PHP7 development files for C/C++ extensions

What have you tried? If you clear the zypper cache and refresh, what does ‘zypper up’ and ‘zypper dup’ offer you?

---

<div class="post-metadata">

**Author:** ![salisburyk](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@salisburyk](https://forums.suse.com/u/salisburyk)\
**Post date:** [February 22, 2022, 5:50pm UTC](https://forums.suse.com/t/php-upgrades-on-sles-12/37038/6 "2022-02-22T17:50:55Z")

</div>

If I ask for 74, I will get 74;

> 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 82 NEW packages are going to be installed:  
> gcc gcc-c++ gcc48 gcc48-c++ libasan0 libatomic1 libgomp1 libitm1 liblmdb-0\_9\_11 libmemcached11 libonig2 libpcre2-16-0 libpcre2-32-0 libpcre2-8-0 libpcre2-posix2 libpq5 libsodium23 libtidy-0\_99-0 libtsan0  
> libxml2-devel libzip2 ncurses-devel pcre2-devel php74 php74-APCu php74-bcmath php74-bz2 php74-calendar php74-ctype php74-curl php74-dba php74-devel php74-dom php74-enchant php74-exif php74-fastcgi php74-fileinfo  
> php74-fpm php74-ftp php74-gd php74-gettext php74-gmp php74-iconv php74-intl php74-json php74-ldap php74-mbstring php74-memcached php74-mysql php74-odbc php74-opcache php74-openssl php74-pcntl php74-pdo php74-pear  
> php74-pecl php74-pgsql php74-phar php74-posix php74-readline php74-redis php74-shmop php74-snmp php74-soap php74-sockets php74-sodium php74-sqlite php74-sysvmsg php74-sysvsem php74-sysvshm php74-tidy  
> php74-tokenizer php74-xmlreader php74-xmlrpc php74-xmlwriter php74-xsl php74-zip php74-zlib readline-devel tack unixODBC xz-devel
> 
> 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):

---

<div class="post-metadata">

**Author:** ![ketter](https://avatars.discourse-cdn.com/v4/letter/k/2bfe46/32.png) [@ketter](https://forums.suse.com/u/ketter)\
**Post date:** [February 22, 2022, 7:03pm UTC](https://forums.suse.com/t/php-upgrades-on-sles-12/37038/7 "2022-02-22T19:03:57Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![salisburyk](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@salisburyk](https://forums.suse.com/u/salisburyk)\
**Post date:** [February 22, 2022, 8:05pm UTC](https://forums.suse.com/t/php-upgrades-on-sles-12/37038/8 "2022-02-22T20:05:00Z")

</div>

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?

[[PHP: PHP 7.4.0 Release Announcement](https://www.php.net/releases/7_4_0.php)](PHP 7.4 Potential Breaking Changes)

---

<div class="post-metadata">

**Author:** ![ketter](https://avatars.discourse-cdn.com/v4/letter/k/2bfe46/32.png) [@ketter](https://forums.suse.com/u/ketter)\
**Post date:** [February 23, 2022, 8:24pm UTC](https://forums.suse.com/t/php-upgrades-on-sles-12/37038/9 "2022-02-23T20:24:05Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Donald\_Agustino](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/donald_agustino/32/10475_2.png) [@Donald\_Agustino](https://forums.suse.com/u/Donald_Agustino)\
**Post date:** [August 25, 2024, 11:17am UTC](https://forums.suse.com/t/php-upgrades-on-sles-12/37038/10 "2024-08-25T11:17:46Z")

</div>

Hi sorry for asking. Does OpenSUSE12 SP5 supports PHP8?

I could get the PHP8 installed, but it cannot run due to the lack of the devel module which is not available for OpenSUSE 12.
