# PHP7 on SLES 12.1

**URL:** <https://forums.suse.com/t/php7-on-sles-12-1/28726>\
**Category:** SLES Updates\
**Created:** [October 4, 2016, 12:21am UTC](https://forums.suse.com/t/php7-on-sles-12-1/28726 "2016-10-04T00:21:03Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![RogerIThomas](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@RogerIThomas](https://forums.suse.com/u/RogerIThomas)\
**Post date:** [October 4, 2016, 12:21am UTC](https://forums.suse.com/t/php7-on-sles-12-1/28726/1 "2016-10-04T00:21:03Z")

</div>

What is the correct way to install PHP7? It does not seem to be in any of the main SLES Repositories. There is a version in the [opensuse.org](http://opensuse.org) OBS repository but I’m having issues with it and am wondering if there is a better supported option.

Thanks

Roger

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [October 4, 2016, 1:53am UTC](https://forums.suse.com/t/php7-on-sles-12-1/28726/2 "2016-10-04T01:53:34Z")

</div>

RogerIThomas Wrote in message:  
[color=blue]

> What is the correct way to install PHP7? It does not seem to be in any  
> of the main SLES Repositories. There is a version in the [opensuse.org](http://opensuse.org)  
> OBS repository but I’m having issues with it and am wondering if there  
> is a better supported option.[/color]

You need to add the Web Scripting module and then you’ll be able  
to install PHP7 from the repository which is added.

## HTH.

Simon Flood  
SUSE Knowledge Partner

----Android NewsGroup Reader----  
[http://usenet.sinaapp.com/](http://usenet.sinaapp.com/)

---

<div class="post-metadata">

**Author:** ![RogerIThomas](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@RogerIThomas](https://forums.suse.com/u/RogerIThomas)\
**Post date:** [October 4, 2016, 11:48am UTC](https://forums.suse.com/t/php7-on-sles-12-1/28726/3 "2016-10-04T11:48:44Z")

</div>

[QUOTE=smflood;34549]RogerIThomas Wrote in message:  
[color=blue]

> What is the correct way to install PHP7? It does not seem to be in any  
> of the main SLES Repositories. There is a version in the [opensuse.org](http://opensuse.org)  
> OBS repository but I’m having issues with it and am wondering if there  
> is a better supported option.[/color]

You need to add the Web Scripting module and then you’ll be able  
to install PHP7 from the repository which is added.

## HTH.

Simon Flood  
SUSE Knowledge Partner

----Android NewsGroup Reader----  
[http://usenet.sinaapp.com/](http://usenet.sinaapp.com/)[/QUOTE]

Thanks for the reply

This is the strange thing, I have that module (Add-on Product) added to my base system, but only php5 is listed in YAST2-\>Software Management. As php5 is held within the same module/repository I know that it is at least being read correctly.

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [October 4, 2016, 12:39pm UTC](https://forums.suse.com/t/php7-on-sles-12-1/28726/4 "2016-10-04T12:39:07Z")

</div>

On 04/10/16 09:54, RogerIThomas wrote:  
[color=blue]

> This is the strange thing, I have that module (Add-on Product) added to  
> my base system, but only php5 is listed in YAST2-\>Software Management.  
> As php5 is held within the same module/repository I know that it is at  
> least being read correctly.[/color]

Is the server really running SLES12 SP1 or perhaps SLES12 (SP0)? I  
believe PHP7 is available via the Web and Scripting module for the  
former but not for the latter.

If it is running SLES12 SP1 was it perhaps upgraded from SLES12 (SP0)?

## HTH.

Simon  
SUSE Knowledge Partner

* * *

## If you find this post helpful and are logged into the web interface, please show your appreciation and click on the star below. Thanks.

---

<div class="post-metadata">

**Author:** ![RogerIThomas](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@RogerIThomas](https://forums.suse.com/u/RogerIThomas)\
**Post date:** [October 4, 2016, 2:57pm UTC](https://forums.suse.com/t/php7-on-sles-12-1/28726/5 "2016-10-04T14:57:49Z")

</div>

Definitely SLES12 SP1 as I am using the following downloaded ISOs

SLE-12-SP1-Server-DVD-x86\_64-GM-DVD1.iso  
SLE-12-SP1-Server-DVD-x86\_64-GM-DVD2.iso

And then registered so that I could fully patch and add in the SDK and Web Scripting modules.

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [October 4, 2016, 3:14pm UTC](https://forums.suse.com/t/php7-on-sles-12-1/28726/6 "2016-10-04T15:14:36Z")

</div>

[QUOTE=RogerIThomas;34557]Definitely SLES12 SP1 as I am using the following downloaded ISOs

SLE-12-SP1-Server-DVD-x86\_64-GM-DVD1.iso  
SLE-12-SP1-Server-DVD-x86\_64-GM-DVD2.iso

And then registered so that I could fully patch and add in the SDK and Web Scripting modules.[/QUOTE]  
Hi  
Did it add the Update repo for web scripting modules?

```auto
zypper lr

zypper if php7

Information for package php7:
-----------------------------
Repository: SLE-Module-Web-Scripting12-Updates for x86_64 SP1
Name: php7
Version: 7.0.7-6.2
```

---

<div class="post-metadata">

**Author:** ![RogerIThomas](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@RogerIThomas](https://forums.suse.com/u/RogerIThomas)\
**Post date:** [October 4, 2016, 4:28pm UTC](https://forums.suse.com/t/php7-on-sles-12-1/28726/7 "2016-10-04T16:28:31Z")

</div>

[QUOTE=malcolmlewis;34558]Hi  
Did it add the Update repo for web scripting modules?

[CODE]  
zypper lr

zypper if php7

## Information for package php7:

Repository: SLE-Module-Web-Scripting12-Updates for x86\_64 SP1  
Name: php7  
Version: 7.0.7-6.2  
[/CODE][/QUOTE]

With the info you have provided I now have an even more interesting issue. While this is a SP1 installation, with the extra modules having been selected during the registration process I have additional developer repositories added with SP1 in their titles, but the scripting repositories do not have SP1 within their titles (unlike your example). This would indicate that the install process is not selecting the most upto date repositories, but of course I’m not seeing any information to indicate that there are newer options. So I currenty have the following configuration

[QUOTE]# | Alias | Name | Enabled | GPG Check | Refresh  
—±---------------------------------------------------------------------------------------------±---------------------------------------------±--------±----------±-------  
1 | SLES12-SP1-12.1-0 | SLES12-SP1-12.1-0 | Yes | (r ) Yes | No  
2 | SUSE\_Linux\_Enterprise\_Server\_12\_SP1\_x86\_64:SLES12-SP1-Debuginfo-Pool | SLES12-SP1-Debuginfo-Pool | No | ---- | No  
3 | SUSE\_Linux\_Enterprise\_Server\_12\_SP1\_x86\_64:SLES12-SP1-Debuginfo-Updates | SLES12-SP1-Debuginfo-Updates | No | ---- | Yes  
4 | SUSE\_Linux\_Enterprise\_Server\_12\_SP1\_x86\_64:SLES12-SP1-Pool | SLES12-SP1-Pool | Yes | (r ) Yes | No  
5 | SUSE\_Linux\_Enterprise\_Server\_12\_SP1\_x86\_64:SLES12-SP1-Source-Pool | SLES12-SP1-Source-Pool | No | ---- | No  
6 | SUSE\_Linux\_Enterprise\_Server\_12\_SP1\_x86\_64:SLES12-SP1-Updates | SLES12-SP1-Updates | Yes | (r ) Yes | Yes  
7 | SUSE\_Linux\_Enterprise\_Software\_Development\_Kit\_12\_SP1\_x86\_64:SLE-SDK12-SP1-Debuginfo-Pool | SLE-SDK12-SP1-Debuginfo-Pool | No | ---- | No  
8 | SUSE\_Linux\_Enterprise\_Software\_Development\_Kit\_12\_SP1\_x86\_64:SLE-SDK12-SP1-Debuginfo-Updates | SLE-SDK12-SP1-Debuginfo-Updates | No | ---- | Yes  
9 | SUSE\_Linux\_Enterprise\_Software\_Development\_Kit\_12\_SP1\_x86\_64:SLE-SDK12-SP1-Pool | SLE-SDK12-SP1-Pool | Yes | (r ) Yes | No  
10 | SUSE\_Linux\_Enterprise\_Software\_Development\_Kit\_12\_SP1\_x86\_64:SLE-SDK12-SP1-Source-Pool | SLE-SDK12-SP1-Source-Pool | No | ---- | No  
11 | SUSE\_Linux\_Enterprise\_Software\_Development\_Kit\_12\_SP1\_x86\_64:SLE-SDK12-SP1-Updates | SLE-SDK12-SP1-Updates | Yes | (r ) Yes | Yes  
12 | Web\_and\_Scripting\_Module\_12\_x86\_64:SLE-Module-Web-Scripting12-Debuginfo-Pool | SLE-Module-Web-Scripting12-Debuginfo-Pool | No | ---- | No  
13 | Web\_and\_Scripting\_Module\_12\_x86\_64:SLE-Module-Web-Scripting12-Debuginfo-Updates | SLE-Module-Web-Scripting12-Debuginfo-Updates | No | ---- | Yes  
14 | Web\_and\_Scripting\_Module\_12\_x86\_64:SLE-Module-Web-Scripting12-Pool | SLE-Module-Web-Scripting12-Pool | Yes | (r ) Yes | Yes  
15 | Web\_and\_Scripting\_Module\_12\_x86\_64:SLE-Module-Web-Scripting12-Source-Pool | SLE-Module-Web-Scripting12-Source-Pool | No | ---- | No  
16 | Web\_and\_Scripting\_Module\_12\_x86\_64:SLE-Module-Web-Scripting12-Updates | SLE-Module-Web-Scripting12-Updates | Yes | (r ) Yes | Yes  
[/QUOTE]

What path(s) are you using with ‘zypper addrepo’ to gain access to “SLE-Module-Web-Scripting12-Updates for x86\_64 SP1”

Thanks in advance

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [October 4, 2016, 4:44pm UTC](https://forums.suse.com/t/php7-on-sles-12-1/28726/8 "2016-10-04T16:44:25Z")

</div>

> [@RogerIThomas;34561](#):
>
> What path(s) are you using with ‘zypper addrepo’ to gain access to “SLE-Module-Web-Scripting12-Updates for x86\_64 SP1”

Hi  
I use SUSE Manager (so it’s a local repo), but if you log into SCC and check the system subscription it will show the mirror credentials and URL’s.

Maybe subscribed to the wrong channel…

Might be easier to nuke the current Web Subscription repos and add the product back with SUSEConnect pointing at SP1.

---

<div class="post-metadata">

**Author:** ![RogerIThomas](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@RogerIThomas](https://forums.suse.com/u/RogerIThomas)\
**Post date:** [October 4, 2016, 5:26pm UTC](https://forums.suse.com/t/php7-on-sles-12-1/28726/9 "2016-10-04T17:26:07Z")

</div>

Well thanks for you replies, at least they have helped me prove that I’m not going mad.

Within SCC I have my active subscription for “SUSE Linux Enterprise Server for x86/AMD64/Intel64”, but under the available extension products I only have “Web and Scripting Module 12” listed and not a SP1 release. So the installation process is correctly connecting to the only possible repo, its just that its an out of date repo.

If you have the time could you check your SCC to see if you see a later repo listed, it maybe that SUSE have only published to accounts with SUSE Manager in place at this time. I do see downloadable rpm patch files so I can a least do a deployment by hand.

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [October 4, 2016, 5:56pm UTC](https://forums.suse.com/t/php7-on-sles-12-1/28726/10 "2016-10-04T17:56:05Z")

</div>

On 04/10/16 15:34, RogerIThomas wrote:  
[color=blue]

> Well thanks for you replies, at least they have helped me prove that I’m  
> not going mad.
> 
> Within SCC I have my active subscription for “SUSE Linux Enterprise  
> Server for x86/AMD64/Intel64”, but under the available extension  
> products I only have “Web and Scripting Module 12” listed and not a SP1  
> release. So the installation process is correctly connecting to the only  
> possible repo, its just that its an out of date repo.
> 
> If you have the time could you check your SCC to see if you see a later  
> repo listed, it maybe that SUSE have only published to accounts with  
> SUSE Manager in place at this time. I do see downloadable rpm patch  
> files so I can a least do a deployment by hand.[/color]

Don’t get stuck on the lack of SP1 in the repo name for SLE12 Web and  
Scripting Module on SLES12 SP1 - SCC and my test SLES12 SP1 don’t show  
SP1 in the name.

I now recall  
[https://forums.suse.com/showthread.php?8102-zypper-lu-doesnt-show-php7-needed-but-zypper-up-installs-it](https://forums.suse.com/showthread.php?8102-zypper-lu-doesnt-show-php7-needed-but-zypper-up-installs-it)  
which asked about PHP5 vs PHP7.

## HTH.

Simon  
SUSE Knowledge Partner

* * *

## If you find this post helpful and are logged into the web interface, please show your appreciation and click on the star below. Thanks.

---

<div class="post-metadata">

**Author:** ![RogerIThomas](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@RogerIThomas](https://forums.suse.com/u/RogerIThomas)\
**Post date:** [October 5, 2016, 11:46am UTC](https://forums.suse.com/t/php7-on-sles-12-1/28726/11 "2016-10-05T11:46:45Z")

</div>

Well I’m still not getting anywhere fast here. I have now deployed an SMT instance and allowed it to download all the repos. The result is the following config

[QUOTE]# | Alias | Name | Enabled | GPG Check | Refresh | Priority | Type | URI | Service  
–±----------------------------------------------------------±-----------------------------------±--------±----------±--------±---------±-------±----------------------------------------------------------------------------------------------------------------------±------------------------  
1 | SMT-http\_192\_168\_1\_171:SLE-Module-Web-Scripting12-Pool | SLE-Module-Web-Scripting12-Pool | Yes | (r ) Yes | No | 99 | rpm-md | [http://192.168.1.171/repo/SUSE/Products/SLE-Module-Web-Scripting/12/x86\_64/product?credentials=SMT-http\_192\_168\_1\_171](http://192.168.1.171/repo/SUSE/Products/SLE-Module-Web-Scripting/12/x86_64/product?credentials=SMT-http_192_168_1_171) | SMT-http\_192\_168\_1\_171  
2 | SMT-http\_192\_168\_1\_171:SLE-Module-Web-Scripting12-Updates | SLE-Module-Web-Scripting12-Updates | Yes | (r ) Yes | Yes | 99 | rpm-md | [http://192.168.1.171/repo/SUSE/Updates/SLE-Module-Web-Scripting/12/x86\_64/update?credentials=SMT-http\_192\_168\_1\_171](http://192.168.1.171/repo/SUSE/Updates/SLE-Module-Web-Scripting/12/x86_64/update?credentials=SMT-http_192_168_1_171) | SMT-http\_192\_168\_1\_171  
3 | SMT-http\_192\_168\_1\_171:SLE-SDK12-SP1-Pool | SLE-SDK12-SP1-Pool | Yes | (r ) Yes | No | 99 | rpm-md | [http://192.168.1.171/repo/SUSE/Products/SLE-SDK/12-SP1/x86\_64/product?credentials=SMT-http\_192\_168\_1\_171](http://192.168.1.171/repo/SUSE/Products/SLE-SDK/12-SP1/x86_64/product?credentials=SMT-http_192_168_1_171) | SMT-http\_192\_168\_1\_171  
4 | SMT-http\_192\_168\_1\_171:SLE-SDK12-SP1-Updates | SLE-SDK12-SP1-Updates | Yes | (r ) Yes | Yes | 99 | rpm-md | [http://192.168.1.171/repo/SUSE/Updates/SLE-SDK/12-SP1/x86\_64/update?credentials=SMT-http\_192\_168\_1\_171](http://192.168.1.171/repo/SUSE/Updates/SLE-SDK/12-SP1/x86_64/update?credentials=SMT-http_192_168_1_171) | SMT-http\_192\_168\_1\_171  
5 | SMT-http\_192\_168\_1\_171:SLES12-SP1-Pool | SLES12-SP1-Pool | Yes | (r ) Yes | No | 99 | rpm-md | [http://192.168.1.171/repo/SUSE/Products/SLE-SERVER/12-SP1/x86\_64/product?credentials=SMT-http\_192\_168\_1\_171](http://192.168.1.171/repo/SUSE/Products/SLE-SERVER/12-SP1/x86_64/product?credentials=SMT-http_192_168_1_171) | SMT-http\_192\_168\_1\_171  
6 | SMT-http\_192\_168\_1\_171:SLES12-SP1-Updates | SLES12-SP1-Updates | Yes | (r ) Yes | Yes | 99 | rpm-md | [http://192.168.1.171/repo/SUSE/Updates/SLE-SERVER/12-SP1/x86\_64/update?credentials=SMT-http\_192\_168\_1\_171](http://192.168.1.171/repo/SUSE/Updates/SLE-SERVER/12-SP1/x86_64/update?credentials=SMT-http_192_168_1_171) | SMT-http\_192\_168\_1\_171  
[/QUOTE]

and still no PHP7, with this configuration I can now search all the repo directory structures for the rpms, but still no luck.

---

<div class="post-metadata">

**Author:** ![RogerIThomas](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@RogerIThomas](https://forums.suse.com/u/RogerIThomas)\
**Post date:** [October 5, 2016, 8:24pm UTC](https://forums.suse.com/t/php7-on-sles-12-1/28726/12 "2016-10-05T20:24:18Z")

</div>

After downloading a lot more of the repos to my SMT server it seems that the only reference to php7 can be found in

```
SLE-Module-Web-Scripting12-Debuginfo-Updates

```

As such php7 seems to be missing from the repos at the moment.

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [October 14, 2016, 4:37pm UTC](https://forums.suse.com/t/php7-on-sles-12-1/28726/13 "2016-10-14T16:37:15Z")

</div>

[QUOTE=RogerIThomas;34632]After downloading a lot more of the repos to my SMT server it seems that the only reference to php7 can be found in

```
SLE-Module-Web-Scripting12-Debuginfo-Updates

```

As such php7 seems to be missing from the repos at the moment.[/QUOTE]  
Hi  
I see 106 php7 packages in SLE-Module-Web-Scripting12-Updates for x86\_64 SP1 and SLE-Module-Web-Scripting12-Updates for x86\_64 (Note lack of SP1).

Are you sure the SMT server has synced?
