# PHP for SLES 12 question

**URL:** <https://forums.suse.com/t/php-for-sles-12-question/26436>\
**Category:** SLES Configure-Administer\
**Created:** [December 1, 2014, 8:30pm UTC](https://forums.suse.com/t/php-for-sles-12-question/26436 "2014-12-01T20:30:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jurgen73](https://avatars.discourse-cdn.com/v4/letter/j/45deac/32.png) [@jurgen73](https://forums.suse.com/u/jurgen73)\
**Post date:** [December 1, 2014, 8:30pm UTC](https://forums.suse.com/t/php-for-sles-12-question/26436/1 "2014-12-01T20:30:49Z")

</div>

Hey guys,

What happened to PHP in SLES 12?

It’s not there anymore, I even tried to compile it and there is no apxs2 file for Apache (apache2-devel) either, so I’m confused what happened to good old SLES?

---

<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:** [December 1, 2014, 8:48pm UTC](https://forums.suse.com/t/php-for-sles-12-question/26436/2 "2014-12-01T20:48:10Z")

</div>

> [@](#):
>
> On Mon 01 Dec 2014 06:34:02 PM CST, jurgen73 wrote:
> 
> Hey guys,
> 
> What happened to PHP in SLES 12?
> 
> It’s not there anymore, I even tried to compile it and there is no apxs2  
> file for Apache (apache2-devel) either, so I’m confused what happened to  
> good old SLES?

Hi  
Did you add the “SLE-Module-Web-Scripting12” and “SLE-SDK12” repository  
extensions? If not YaST → Add on product.

–  
Cheers Malcolm Â°Â¿Â° LFCS, SUSE Knowledge Partner (Linux Counter #276890)  
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.28-4-default  
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:** ![tbrinkmann](https://avatars.discourse-cdn.com/v4/letter/t/e99b99/32.png) [@tbrinkmann](https://forums.suse.com/u/tbrinkmann)\
**Post date:** [December 3, 2014, 3:36pm UTC](https://forums.suse.com/t/php-for-sles-12-question/26436/3 "2014-12-03T15:36:22Z")

</div>

zypper info php5  
Refreshing service ‘SUSE\_Linux\_Enterprise\_Server\_12\_x86\_64’.  
Refreshing service ‘SUSE\_Linux\_Enterprise\_Software\_Development\_Kit\_12\_x86\_64’.  
Refreshing service ‘Web\_and\_Scripting\_Module\_12\_x86\_64’.  
Loading repository data…  
Reading installed packages…

## Information for package php5:

Repository: SLE-Module-Web-Scripting12-Updates  
Name: php5  
Version: 5.5.14-7.1  
Arch: x86\_64  
Vendor: SUSE LLC [https://www.suse.com/](https://www.suse.com/)  
Installed: No  
Status: not installed  
Installed Size: 10.0 MiB  
Summary: PHP5 Core Files  
Description:  
This package contains the PHP5 core files, including PHP binary (CLI)  
and PHP configuration (php.ini). This package must be installed in  
order to use PHP. Additionally, extension modules and server modules  
(e.g. for Apache) may be installed.

Additional documentation is available in package php-doc.

#\> zypper install sle-module-web-scripting-release

---

<div class="post-metadata">

**Author:** ![rvillafafila](https://avatars.discourse-cdn.com/v4/letter/r/958977/32.png) [@rvillafafila](https://forums.suse.com/u/rvillafafila)\
**Post date:** [December 3, 2014, 5:50pm UTC](https://forums.suse.com/t/php-for-sles-12-question/26436/4 "2014-12-03T17:50:16Z")

</div>

You can find apx2 installing apache2-devel package. This package is included in SUSE Linux Enterprise SDK 12 extension.  
Regards

---

<div class="post-metadata">

**Author:** ![jurgen73](https://avatars.discourse-cdn.com/v4/letter/j/45deac/32.png) [@jurgen73](https://forums.suse.com/u/jurgen73)\
**Post date:** [December 5, 2014, 4:40pm UTC](https://forums.suse.com/t/php-for-sles-12-question/26436/5 "2014-12-05T16:40:40Z")

</div>

Thanks all for your replies, but I decided to build it using my private OBS appliance and I have 5.6.3 on SLE 12 up and running.

---

<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:** [December 5, 2014, 5:51pm UTC](https://forums.suse.com/t/php-for-sles-12-question/26436/6 "2014-12-05T17:51:54Z")

</div>

On 05/12/2014 14:44, jurgen73 wrote:  
[color=blue]

> Thanks all for your replies, but I decided to build it using my private  
> OBS appliance and I have 5.6.3 on SLE 12 up and running.[/color]

Note that the Web and Scripting Module currently provides PHP 5.5.14  
which is supported by SUSE - if you have an issue relating to your own  
PHP 5.6.3 packages you will not be supported.

## 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:** ![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:51am UTC](https://forums.suse.com/t/php-for-sles-12-question/26436/7 "2018-09-11T09:51:26Z")

</div>

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:** ![KEVIN1](https://avatars.discourse-cdn.com/v4/letter/k/a9adbd/32.png) [@KEVIN1](https://forums.suse.com/u/KEVIN1)\
**Post date:** [September 11, 2018, 5:43pm UTC](https://forums.suse.com/t/php-for-sles-12-question/26436/8 "2018-09-11T17:43:16Z")

</div>

[QUOTE=mnordesigner;54354]  
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)

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)[/QUOTE]

[COLOR=#333333][FONT=Arial]Note: [/FONT][/COLOR]mnordesigner has replied to a post that is almost 4 years old!  
[COLOR=#333333][FONT=Arial]  
Adding the external opensuse repositories to your server will void your support![/FONT][/COLOR]

Please refer to this post by [jmozden](https://forums.suse.com/showthread.php?9405-Install-PHP-5-6&p=54360#post54360) for additional details.
