# PHP upgrade

**URL:** <https://forums.suse.com/t/php-upgrade/25738>\
**Category:** SLES Updates\
**Created:** [June 13, 2014, 4:24pm UTC](https://forums.suse.com/t/php-upgrade/25738 "2014-06-13T16:24:20Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmiller](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@dmiller](https://forums.suse.com/u/dmiller)\
**Post date:** [June 13, 2014, 4:24pm UTC](https://forums.suse.com/t/php-upgrade/25738/1 "2014-06-13T16:24:20Z")

</div>

I don’t know if this is the correct location for this. If not where?

The stat auditors complained that one of my web servers had security holes. One of them being PHP. I current have PHP 5.2 that came with the install disk. I cannot figure out how to upgrade the server to php 5.5.

Thanks  
Dave.

---

<div class="post-metadata">

**Author:** ![mikewillis](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@mikewillis](https://forums.suse.com/u/mikewillis)\
**Post date:** [June 13, 2014, 4:39pm UTC](https://forums.suse.com/t/php-upgrade/25738/2 "2014-06-13T16:39:07Z")

</div>

Which version of SLES are you using?

Did these auditors specify what about your PHP installation is insecure, or did they just point at a version number?

Have you installed all outstanding updates? SUSE do release security fixes for PHP. (e.g. [http://download.novell.com/Download?buildid=fEgFplF5M\_0~](http://download.novell.com/Download?buildid=fEgFplF5M_0~))

There are SUSE SLE-11 SP 3 packages for PHP 5.5 available from [http://software.opensuse.org/package/php5](http://software.opensuse.org/package/php5) but they are not supported.

---

<div class="post-metadata">

**Author:** ![dmiller](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@dmiller](https://forums.suse.com/u/dmiller)\
**Post date:** [June 13, 2014, 5:06pm UTC](https://forums.suse.com/t/php-upgrade/25738/3 "2014-06-13T17:06:09Z")

</div>

I am using SUSE SLE-11 SP 3

This is all I have received from the I.T. director.

"  
I need something addressed immediately.  
Our state auditor did a security scan on hosts on our network and found 1 critical, 3 high and 4 medium severity threats on the BCI server:  
[http://bcd.school.edu/dep\_home.php](http://bcd.school.edu/dep_home.php)

I need to have the necessary updates performed on it right away. He will be rerunning this on Monday and will result in an audit comment or finding if it isnÂt resolved.

This includes unsupported versions of PHP and many, vulnerabilities associated with the old version.  
"

This is not a critical server. It is one I use in training interns. I turned off the firewall the other day to do some trouble shooting. I turned it back on today. So that may have fixed a few problems. But with the exception of PHP I have no idea what needs to be fixed. I can’t get anyone to talk to me. Our school is shutdown today.

Thanks

---

<div class="post-metadata">

**Author:** ![ab1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ab1](https://forums.suse.com/u/ab1)\
**Post date:** [June 13, 2014, 6:31pm UTC](https://forums.suse.com/t/php-upgrade/25738/4 "2014-06-13T18:31:43Z")

</div>

You need to get the actual audit report. Many auditors take advantage of  
the easiest way to get exceptions for their reports by scanning for  
versions of software, since vulnerabilities are discovered in version (for  
example) 5.3 and then are known to exist in 5.2, 5.1, etc. By looking and  
seeing you are not yet on 5.5 they can claims you are vulnerable to  
everything pre-5.5 and give you a long list, using lots of pages of a  
document, and seeming to earn lots of money.

The problem is that version numbers are nothing more than integers, and  
enterprise distributions of Linux like SUSE Linux Enterprise backport  
fixes into older version numbers. This is done so that when you get the  
latest patches of SLES you get fixes, even those from future versions of  
packages like PHP, but without getting potentially less-stable code from  
new features in PHP. The result is that auditors who cannot actually test  
for vulnerabilities but can only test for certain versions of software are  
not valuable and are not giving you accurate information, other than “Your  
package version is older than something new.” which of course you know and  
is irrelevant to anything security-related.

On the other hand, if their tests actually attempted to exploit  
vulnerabilities and were able to somehow then there should be bugs open  
with SUSE to backport those fixes into current code, where applicable.

Usually the easiest way to reconcile this type of thing is to get the CVE  
numbers of the applicable vulnerabilities from the auditor. If they  
cannot provide those, fire them for incompetence. Once you have the CVE  
numbers you can check SUSE’s vulnerabilities website, or the PHP package’s  
changelog (rpm -q --changelog packageName) and see if the fixes are  
present. Chances are good that they are since there are teams devoted to  
maintaining these packages in this way for these very reasons.

There are regularly questions in the SLE forums on this topic; feel free  
to review those for similar information and to help move toward the truth  
of the situation.

–  
Good luck.

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

---

<div class="post-metadata">

**Author:** ![mikewillis](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@mikewillis](https://forums.suse.com/u/mikewillis)\
**Post date:** [June 13, 2014, 7:10pm UTC](https://forums.suse.com/t/php-upgrade/25738/5 "2014-06-13T19:10:10Z")

</div>

You can’t fix the issues because they haven’t told you what the issues are. Sounds blindingly obvious doesn’t it, and yetÂ

It might be interesting to see what the auditor’s report says if you remove version numbers from the HTTP headers. E.g.

`HTTP/1.1 200 OK
Date: Fri, 13 Jun 2014 15:48:48 GMT
Server: Apache
Content-Length: 745
`  
Note lack of information about Apache. You can do that by setting

`ServerSignature off
ServerTokens Prod
`  
In /etc/apache2/default-server.conf

You can also remove the ‘X-Powered-By: PHP/5.2.14’ from the HTTP headers. In /etc/php5/apache2/php.ini find the line

```auto
expose_php = On
```

change On to Off then restart apache.

---

<div class="post-metadata">

**Author:** ![dmiller](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@dmiller](https://forums.suse.com/u/dmiller)\
**Post date:** [June 14, 2014, 12:38am UTC](https://forums.suse.com/t/php-upgrade/25738/6 "2014-06-14T00:38:19Z")

</div>

Thanks. Ill give it a try.!!!

---

<div class="post-metadata">

**Author:** ![dmiller](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@dmiller](https://forums.suse.com/u/dmiller)\
**Post date:** [June 14, 2014, 12:41am UTC](https://forums.suse.com/t/php-upgrade/25738/7 "2014-06-14T00:41:18Z")

</div>

I will defanantly ask for the CVE file moday. I have still heard nothing from anyone today. So I will take the server off line until I get more information as what to fix.

Thanks  
for all the info.

---

<div class="post-metadata">

**Author:** ![dmiller](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@dmiller](https://forums.suse.com/u/dmiller)\
**Post date:** [June 16, 2014, 2:25pm UTC](https://forums.suse.com/t/php-upgrade/25738/8 "2014-06-16T14:25:27Z")

</div>

Thanks for your post. But I may have really goobered this up. I am using PHP 5.2.14 and the updates are for 5.3. Also I made a mistake the OS version is this  
SUSE Linux Enterprise Server 11 (x86\_64)  
VERSION = 11  
PTCHLEVEL = 1

When I try to install any of the updates it returns with an error saying it cant find the required install of 5.3

When I try to install the 5.4.2 install, I get billions of dependency errors.

If it is not apparent, I am by far not an expert at Linux I worked in NetWare for 18 years, and the transition is tough.  
What do I need to do to install 5.4. x.

Thanks  
Dave.

---

<div class="post-metadata">

**Author:** ![mikewillis](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@mikewillis](https://forums.suse.com/u/mikewillis)\
**Post date:** [June 16, 2014, 2:44pm UTC](https://forums.suse.com/t/php-upgrade/25738/9 "2014-06-16T14:44:48Z")

</div>

SLES 11 SP1 is End of Life, unless you have purchased Long Term Service Pack Support. If you have Long Term Service Pack Support, just install all outstanding updates. If you don’t have Long Term Service Pack Support you should be concerned about more than just your PHP install. See [https://www.novell.com/support/kb/doc.php?id=7012368](https://www.novell.com/support/kb/doc.php?id=7012368) for how to update to SP3.

I wouldn’t bother with third party PHP packages unless it is explicitly explained to you what about your PHP installation is a security risk. If the SLE PHP packages are subject to some vulnerability, SUSE would probably be interested to know about that.

---

<div class="post-metadata">

**Author:** ![dmiller](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@dmiller](https://forums.suse.com/u/dmiller)\
**Post date:** [June 16, 2014, 3:30pm UTC](https://forums.suse.com/t/php-upgrade/25738/10 "2014-06-16T15:30:02Z")

</div>

I am part of ALA software agreement and still have a year to go on it. But when I download the online updates the screen goes black and I have to revert back to the snapshot. Plus there are a lot of dependacy errors. I don’t know how to answer them, so I just chose the first option.

---

<div class="post-metadata">

**Author:** ![mikewillis](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@mikewillis](https://forums.suse.com/u/mikewillis)\
**Post date:** [June 16, 2014, 4:00pm UTC](https://forums.suse.com/t/php-upgrade/25738/11 "2014-06-16T16:00:53Z")

</div>

Have you attempted to update to SP3 yet or are you still trying to get SP1 up to date?

If you’re trying to apply updates to SP1, can you run

```auto
$ zypper clean -a
```

then post the output of`
$ zypper lr -u
$ zypper up`  
Wrap the output in CODE tags (look for the # button on the toolbar when composing the post), otherwise it will be very difficult to read.  
Otherwise, post exactly what commands you’re running and what the output is.

---

<div class="post-metadata">

**Author:** ![dmiller](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@dmiller](https://forums.suse.com/u/dmiller)\
**Post date:** [June 16, 2014, 4:33pm UTC](https://forums.suse.com/t/php-upgrade/25738/12 "2014-06-16T16:33:53Z")

</div>

I would prefer to update to SP3. Would it be better to reinstall the server?

---

<div class="post-metadata">

**Author:** ![mikewillis](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@mikewillis](https://forums.suse.com/u/mikewillis)\
**Post date:** [June 16, 2014, 5:00pm UTC](https://forums.suse.com/t/php-upgrade/25738/13 "2014-06-16T17:00:28Z")

</div>

> [@dmiller;22018](#):
>
> I would prefer to update to SP3. Would it be better to reinstall the server?

Whether it’s a better to re-install the server is something only you can decide really.

To update to SP3 you first need to bring your SP1 install up to date. That Knowledgeable article I linked says

> [@](#):
>
> There is no supported direct migration path to SLES/SLED 11 SP3… An update hast to be performed from SLES/SLED 11 GA to SP 1, then further to SP 2 by using the respective boot media.

So it’s a bit of a slog to get from SP1 to SP3. Re-installing from scratch with SP3 will probably be quicker, but you have to also consider the time it’ll take you to configure the server as you want it. Another factor is the state of your current installation. Given what you say happens when you try and install updates, it sounds like it might not be in a great state. If you’re not happy with the state of the current install and are confident you can configure the server as you want it after a clean install, probably best to start over with SP3.
