PDA

View Full Version : SLES 12 SP1 PHP7 on SLES 12.1



RogerIThomas
03-Oct-2016, 22:21
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 OBS repository but I'm having issues with it and am wondering if there is a better supported option.

Thanks

Roger

smflood
03-Oct-2016, 23:53
RogerIThomas Wrote in message:

> 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
> OBS repository but I'm having issues with it and am wondering if there
> is a better supported option.

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/

RogerIThomas
04-Oct-2016, 09:48
RogerIThomas Wrote in message:

> 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
> OBS repository but I'm having issues with it and am wondering if there
> is a better supported option.

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/

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.

smflood
04-Oct-2016, 10:39
On 04/10/16 09:54, RogerIThomas wrote:

> 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.

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.
------------------------------------------------------------------------

RogerIThomas
04-Oct-2016, 12:57
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.

malcolmlewis
04-Oct-2016, 13:14
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.
Hi
Did it add the Update repo for web scripting modules?



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

RogerIThomas
04-Oct-2016, 14:28
Hi
Did it add the Update repo for web scripting modules?



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


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


# | 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


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

malcolmlewis
04-Oct-2016, 14:44
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.

RogerIThomas
04-Oct-2016, 15:26
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.

smflood
04-Oct-2016, 15:56
On 04/10/16 15:34, RogerIThomas wrote:

> 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.

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
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.
------------------------------------------------------------------------

RogerIThomas
05-Oct-2016, 09:46
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


# | 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 | 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 | 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 | 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 | 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 | 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 | SMT-http_192_168_1_171


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

RogerIThomas
05-Oct-2016, 18:24
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.

malcolmlewis
14-Oct-2016, 14:37
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.
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?