# Install PHP 5.6

**URL:** <https://forums.suse.com/t/install-php-5-6/29767>\
**Category:** SLES Configure-Administer\
**Created:** [May 8, 2017, 2:40pm UTC](https://forums.suse.com/t/install-php-5-6/29767 "2017-05-08T14:40:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sistemi\_yacme](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@sistemi\_yacme](https://forums.suse.com/u/sistemi_yacme)\
**Post date:** [May 8, 2017, 2:40pm UTC](https://forums.suse.com/t/install-php-5-6/29767/1 "2017-05-08T14:40:02Z")

</div>

Hello,  
is there a way to install PHP 5.6 on SLES 12 SP2? If I search with Yast I can only find php 5.5 or php 7. I found this repository [http://download.opensuse.org/repositories/devel:/languages:/php/SLE\_12\_SP2/x86\_64/](http://download.opensuse.org/repositories/devel:/languages:/php/SLE_12_SP2/x86_64/) that contains PHP 5.6 , I added it to yast but if I search for PHP I do not find the main package php5-5.6.30-368.1.x86\_64.rpm .  
Do you have any clue?

---

<div class="post-metadata">

**Author:** ![Automatic\_Reply](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@Automatic\_Reply](https://forums.suse.com/u/Automatic_Reply)\
**Post date:** [May 15, 2017, 7:30am UTC](https://forums.suse.com/t/install-php-5-6/29767/2 "2017-05-15T07:30:17Z")

</div>

sistemi,

It appears that in the past few days you have not received a response to your  
posting. That concerns us, and has triggered this automated reply.

These forums are peer-to-peer, best effort, volunteer run and that if your issue  
is urgent or not getting a response, you might try one of the following options:

- Visit [http://www.suse.com/support](http://www.suse.com/support) and search the knowledgebase and/or check all  
the other support options available.
- Open a service request: [https://www.suse.com/support](https://www.suse.com/support)
- You could also try posting your message again. Make sure it is posted in the  
correct newsgroup. ([http://forums.suse.com](http://forums.suse.com))

Be sure to read the forum FAQ about what to expect in the way of responses:  
[http://forums.suse.com/faq.php](http://forums.suse.com/faq.php)

If this is a reply to a duplicate posting or otherwise posted in error, please  
ignore and accept our apologies and rest assured we will issue a stern reprimand  
to our posting bot…

Good luck!

Your SUSE Forums Team  
[http://forums.suse.com](http://forums.suse.com)

---

<div class="post-metadata">

**Author:** ![mnordesigner](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@mnordesigner](https://forums.suse.com/u/mnordesigner)\
**Post date:** [September 11, 2018, 9:44am UTC](https://forums.suse.com/t/install-php-5-6/29767/3 "2018-09-11T09:44:05Z")

</div>

[QUOTE=sistemi\_yacme;37763]Hello,  
is there a way to install PHP 5.6 on SLES 12 SP2? If I search with Yast I can only find php 5.5 or php 7. I found this repository [http://download.opensuse.org/repositories/devel:/languages:/php/SLE\_12\_SP2/x86\_64/](http://download.opensuse.org/repositories/devel:/languages:/php/SLE_12_SP2/x86_64/) that contains PHP 5.6 , I added it to yast but if I search for PHP I do not find the main package php5-5.6.30-368.1.x86\_64.rpm .  
Do you have any clue?[/QUOTE]

Hi  
For installing PHP version 5 or 7 in Suse server (Sles12SP1-3) you must add php repository to server. For example add php5.6 repository to SLES12SP3 you must add below command:

zypper addrepo [http://download.opensuse.org/repositories/devel:/languages:/php:/php56/SLE\_12\_SP3/devel:languages:php:php56.repo](http://download.opensuse.org/repositories/devel:/languages:/php:/php56/SLE_12_SP3/devel:languages:php:php56.repo)

or for add php7.1 repository to SLES12 Sp3 run this command:  
zypper addrepo [http://download.opensuse.org/repositories/devel:/languages:/php:/php71/SLE\_12\_SP3/devel:languages:php:php71.repo](http://download.opensuse.org/repositories/devel:/languages:/php:/php71/SLE_12_SP3/devel:languages:php:php71.repo)

after that go to software management by yast and install php

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [September 11, 2018, 3:17pm UTC](https://forums.suse.com/t/install-php-5-6/29767/4 "2018-09-11T15:17:05Z")

</div>

Hi,

just for completeness sake:

[QUOTE=mnordesigner;54353]Hi  
For installing PHP version 5 or 7 in Suse server (Sles12SP1-3) you must add php repository to server. For example add php5.6 repository to SLES12SP3 you must add below command:

zypper addrepo [http://download.opensuse.org/repositories/devel:/languages:/php:/php56/SLE\_12\_SP3/devel:languages:php:php56.repo](http://download.opensuse.org/repositories/devel:/languages:/php:/php56/SLE_12_SP3/devel:languages:php:php56.repo)

or for add php7.1 repository to SLES12 Sp3 run this command:  
zypper addrepo [http://download.opensuse.org/repositories/devel:/languages:/php:/php71/SLE\_12\_SP3/devel:languages:php:php71.repo](http://download.opensuse.org/repositories/devel:/languages:/php:/php71/SLE_12_SP3/devel:languages:php:php71.repo)

after that go to software management by yast and install php[/QUOTE]

this will add external repositories to the server and void the support status.

php7 is part of the SLE “web and scripting module”, supported on SLES12.

The original question was for PHP 5.6 onSLES12SP2, though. I could not find a supported source for that for SLES12.

[QUOTE=sistemi\_yacme;37763]I found this repository [http://download.opensuse.org/repositories/devel:/languages:/php/SLE\_12\_SP2/x86\_64/](http://download.opensuse.org/repositories/devel:/languages:/php/SLE_12_SP2/x86_64/) that contains PHP 5.6 , I added it to yast but if I search for PHP I do not find the main package php5-5.6.30-368.1.x86\_64.rpm .  
Do you have any clue?[/QUOTE]  
By now there aren’t PHP 5.6 packages in there any longer - currently it’s PHP 7. If support from SUSE for such a server is a non-issue, you today might want to add the PHP56 repos via i.e. CLI: “zypper ar -fc [http://download.opensuse.org/repositories/devel:/languages:/php:/php56/SLE\_12\_SP2/](http://download.opensuse.org/repositories/devel:/languages:/php:/php56/SLE_12_SP2/) php56”.

Regards,  
J
