# Upgrading PHP 5.2.14 to 5.3.3

**URL:** <https://forums.suse.com/t/upgrading-php-5-2-14-to-5-3-3/27872>\
**Category:** SLES Virtualization\
**Created:** [February 5, 2016, 11:19pm UTC](https://forums.suse.com/t/upgrading-php-5-2-14-to-5-3-3/27872 "2016-02-05T23:19:36Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![KingGoon](https://avatars.discourse-cdn.com/v4/letter/k/ac91a4/32.png) [@KingGoon](https://forums.suse.com/u/KingGoon)\
**Post date:** [February 5, 2016, 11:19pm UTC](https://forums.suse.com/t/upgrading-php-5-2-14-to-5-3-3/27872/1 "2016-02-05T23:19:36Z")

</div>

Hi Folks,

I am in the middle of getting dokuwiki up and running on my SUSE 11 server, but ran into a php problem.

I followed a php guide to install php, and that pretty much said to:

zypper in php5 php5-mysql apache2-mod\_php5 THEN use a2enmod php5( to enable the mod)

Everything works. and now I currently have php 5.2.14 installed. I went to try to install dokuwiki, and it says I need 5.3.3. I searched everywhere for a tutorial or guide or something to help me in upgrading and I cannot find anything. At this point, I am debating whether I should continue with the upgrade, or remove the old version and install a newer version. I am fine with either, but just wanted some more expert advice, or some good links to follow on doing either the upgrade or installing brand new.

Let me know if you guys need me to clarify anything.

Thanks in advance for you’re help.

---

<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:** [February 7, 2016, 12:12am UTC](https://forums.suse.com/t/upgrading-php-5-2-14-to-5-3-3/27872/2 "2016-02-07T00:12:20Z")

</div>

Hi  
Have you added the SLE 11 SDK SP4 ‘Add On’ repositories? If not, you need to add this repo and the update one, then upgrade to the php53-\* packages.

---

<div class="post-metadata">

**Author:** ![KingGoon](https://avatars.discourse-cdn.com/v4/letter/k/ac91a4/32.png) [@KingGoon](https://forums.suse.com/u/KingGoon)\
**Post date:** [February 8, 2016, 5:13pm UTC](https://forums.suse.com/t/upgrading-php-5-2-14-to-5-3-3/27872/3 "2016-02-08T17:13:05Z")

</div>

I’m not too familiar with where the repositories are on SUSE. I know ubuntu, its sources.list, but what is it on SUSE?

Also, is there a guide/tutorial or something that I can look at while I do so, so I know what exactly to add and where to add. Also, is there a guide for the upgrade process?

Thanks for you’re time and response, malcolmlewis

---

<div class="post-metadata">

**Author:** ![KingGoon](https://avatars.discourse-cdn.com/v4/letter/k/ac91a4/32.png) [@KingGoon](https://forums.suse.com/u/KingGoon)\
**Post date:** [February 8, 2016, 5:57pm UTC](https://forums.suse.com/t/upgrading-php-5-2-14-to-5-3-3/27872/4 "2016-02-08T17:57:55Z")

</div>

[QUOTE=malcolmlewis;31419]Hi  
Have you added the SLE 11 SDK SP4 ‘Add On’ repositories? If not, you need to add this repo and the update one, then upgrade to the php53-\* packages.[/QUOTE]

So I went ahead and tried to install the SLE 11 SDK SP4 repositories, and it said they were already installed.

I then followed another link and it said to just simple run `zypper in php53*` to upgrade the php version. It ran into some conflicts for the previous version, but it pretty much said to remove them so I did.

I now run `php -v `, and the version installed is 5.3.17, except I am getting two errors when I run that command. Here are the errors.

```auto
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php5/extensions/pdo_pgsql.so' - libpq.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php5/extensions/pgsql.so' - libpq.so.5: cannot open shared object file: No such file or directory in Unknown on line 0

```

---

<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:** [February 8, 2016, 6:21pm UTC](https://forums.suse.com/t/upgrading-php-5-2-14-to-5-3-3/27872/5 "2016-02-08T18:21:52Z")

</div>

> [@](#):
>
> On Mon 08 Feb 2016 04:04:01 PM CST, KingGoon wrote:
> 
> malcolmlewis;31419 Wrote:[color=blue]
> 
> > Hi  
> > Have you added the SLE 11 SDK SP4 ‘Add On’ repositories? If not, you  
> > need to add this repo and the update one, then upgrade to the php53-\*  
> > packages.[/color]
> 
> So I went ahead and tried to install the SLE 11 SDK SP4 repositories,  
> and it said they were already installed.
> 
> ## I then followed another link and it said to just simple run Code:
> 
> ## zypper in php53\*
> 
> to upgrade the php version. It ran into some conflicts for the previous  
> version, but it pretty much said to remove them so I did.
> 
> ## I now run Code:
> 
> ## php -v
> 
> , and the version installed is 5.3.17, except I am getting two errors  
> when I run that command. Here are the errors.
> 
> ## Code:
> 
> ## PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib64/php5/extensions/pdo\_pgsql.so’ - libpq.so.5: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib64/php5/extensions/pgsql.so’ - libpq.so.5: cannot open shared object file: No such file or directory in Unknown on line 0

Hi  
Have you installed php53-pgsql?

–  
Cheers Malcolm Â°Â¿Â° LFCS, SUSE Knowledge Partner (Linux Counter #276890)  
SUSE Linux Enterprise Desktop 12 SP1|GNOME 3.10.4|3.12.51-60.25-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:** ![KingGoon](https://avatars.discourse-cdn.com/v4/letter/k/ac91a4/32.png) [@KingGoon](https://forums.suse.com/u/KingGoon)\
**Post date:** [February 8, 2016, 6:43pm UTC](https://forums.suse.com/t/upgrading-php-5-2-14-to-5-3-3/27872/6 "2016-02-08T18:43:29Z")

</div>

```auto
zypper in php53-pgsql
```

with results :

```auto
OFPlayGround:/etc/products.d # zypper in php53-pgsql
Refreshing service 'spacewalk'.
Loading repository data...
Reading installed packages...
'php53-pgsql' is already installed.
No update candidate for 'php53-pgsql-5.3.17-48.1.x86_64'. The highest available version is already installed.
Resolving package dependencies...

Nothing to do.
```

---

<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:** [February 8, 2016, 7:02pm UTC](https://forums.suse.com/t/upgrading-php-5-2-14-to-5-3-3/27872/7 "2016-02-08T19:02:14Z")

</div>

> [@](#):
>
> On Mon 08 Feb 2016 04:44:01 PM CST, KingGoon wrote:
> 
> ## Code:
> 
> zypper in php53-pgsql
> 
> * * *
> 
> with results :
> 
> ## Code:
> 
> OFPlayGround:/etc/products.d # zypper in php53-pgsql  
> Refreshing service ‘spacewalk’.  
> Loading repository data…  
> Reading installed packages…  
> ‘php53-pgsql’ is already installed.  
> No update candidate for ‘php53-pgsql-5.3.17-48.1.x86\_64’. The highest  
> available version is already installed. Resolving package  
> dependencies…  
> Nothing to do.
> 
> * * *

Hi  
OK, so did libpq5 get updated?

Can you run;

```auto
zypper ref
zypper ve
```

Just to verify everything is ok?

–  
Cheers Malcolm Â°Â¿Â° LFCS, SUSE Knowledge Partner (Linux Counter #276890)  
SUSE Linux Enterprise Desktop 12 SP1|GNOME 3.10.4|3.12.51-60.25-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:** ![KingGoon](https://avatars.discourse-cdn.com/v4/letter/k/ac91a4/32.png) [@KingGoon](https://forums.suse.com/u/KingGoon)\
**Post date:** [February 8, 2016, 9:20pm UTC](https://forums.suse.com/t/upgrading-php-5-2-14-to-5-3-3/27872/8 "2016-02-08T21:20:12Z")

</div>

```auto
zypper ref
```

```auto
Refreshing service 'spacewalk'.
Repository 'sle11-sdk-sp1-pool-x86_64-sdk-sp3-20151208' is up to date.
Repository 'sle11-sdk-sp1-updates-x86_64-sdk-sp3-20151208' is up to date.
Repository 'sle11-sdk-sp2-core-x86_64-sdk-sp3-20151208' is up to date.
Repository 'sle11-sdk-sp2-updates-x86_64-sdk-sp3-20151208' is up to date.
Repository 'sle11-sdk-sp3-pool-x86_64-20151208' is up to date.
Repository 'sle11-sdk-sp3-updates-x86_64-20151208' is up to date.
Repository 'sles11-sp1-pool-x86_64-sles-sp3-20151208' is up to date.
Repository 'sles11-sp1-updates-x86_64-sles-sp3-20151208' is up to date.
Repository 'sles11-sp2-core-x86_64-sles-sp3-20151208' is up to date.
Repository 'sles11-sp2-suse-manager-tools-x86_64-sp3-20151208' is up to date.
Repository 'sles11-sp2-updates-x86_64-sles-sp3-20151208' is up to date.
Repository 'sles11-sp3-adp-x86_64-20151208' is up to date.
Repository 'sles11-sp3-pool-x86_64-20151208' is up to date.
Repository 'sles11-sp3-updates-x86_64-20151208' is up to date.
All repositories have been refreshed.
```

```auto
zypper ve
```

products code

```auto
Refreshing service 'spacewalk'.
Loading repository data...
Reading installed packages...

Problem: rhncfg-client-5.10.27.12-0.5.1.noarch requires rhncfg = 5.10.27.12-0.5.1, but this requirement cannot be provided
  uninstallable providers: rhncfg-5.10.27.12-0.5.1.noarch[spacewalk:sles11-sp2-suse-manager-tools-x86_64-sp3-20151208]
 Solution 1: Following actions will be done:
  downgrade of rhnlib-2.5.69.7-0.7.1.x86_64 to rhnlib-2.5.51.5-0.5.1.x86_64
  downgrade of spacewalk-client-tools-2.1.16.9-12.1.noarch to spacewalk-client-tools-1.7.14.19-0.5.3.noarch
  downgrade of spacewalk-client-setup-2.1.16.9-12.1.noarch to spacewalk-client-setup-1.7.14.19-0.5.3.noarch
  downgrade of spacewalk-check-2.1.16.9-12.1.noarch to spacewalk-check-1.7.14.19-0.5.3.noarch
 Solution 2: deinstallation of rhncfg-client-5.10.27.12-0.5.1.noarch
 Solution 3: break rhncfg-client-5.10.27.12-0.5.1.noarch by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/3/c] (c): 
```

---

<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:** [February 8, 2016, 11:23pm UTC](https://forums.suse.com/t/upgrading-php-5-2-14-to-5-3-3/27872/9 "2016-02-08T23:23:20Z")

</div>

> [@](#):
>
> On Mon 08 Feb 2016 07:24:01 PM CST, KingGoon wrote:
> 
> ```auto
> Refreshing service 'spacewalk'.
> Repository 'sle11-sdk-sp1-pool-x86_64-sdk-sp3-20151208' is up to date.
> Repository 'sle11-sdk-sp1-updates-x86_64-sdk-sp3-20151208' is up to
> date. Repository 'sle11-sdk-sp2-core-x86_64-sdk-sp3-20151208' is up to
> date. Repository 'sle11-sdk-sp2-updates-x86_64-sdk-sp3-20151208' is up
> to date. Repository 'sle11-sdk-sp3-pool-x86_64-20151208' is up to date.
> Repository 'sle11-sdk-sp3-updates-x86_64-20151208' is up to date.
> Repository 'sles11-sp1-pool-x86_64-sles-sp3-20151208' is up to date.
> Repository 'sles11-sp1-updates-x86_64-sles-sp3-20151208' is up to
> date. Repository 'sles11-sp2-core-x86_64-sles-sp3-20151208' is up to
> date. Repository 'sles11-sp2-suse-manager-tools-x86_64-sp3-20151208' is
> up to date. Repository 'sles11-sp2-updates-x86_64-sles-sp3-20151208' is
> up to date. Repository 'sles11-sp3-adp-x86_64-20151208' is up to date.
> Repository 'sles11-sp3-pool-x86_64-20151208' is up to date.
> Repository 'sles11-sp3-updates-x86_64-20151208' is up to date.
> All repositories have been refreshed.
> 
> ```

Hi  
This is a pure SLES 11 SP3 system (Not OES?), with active older  
repositories?

And the status of libpq5?

–  
Cheers Malcolm Â°Â¿Â° LFCS, SUSE Knowledge Partner (Linux Counter #276890)  
SUSE Linux Enterprise Desktop 12 SP1|GNOME 3.10.4|3.12.51-60.25-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:** ![KingGoon](https://avatars.discourse-cdn.com/v4/letter/k/ac91a4/32.png) [@KingGoon](https://forums.suse.com/u/KingGoon)\
**Post date:** [February 9, 2016, 5:15pm UTC](https://forums.suse.com/t/upgrading-php-5-2-14-to-5-3-3/27872/10 "2016-02-09T17:15:48Z")

</div>

Yes this is an SLES 11 SP3 system. I decided this is too much trouble, so I am going to try the same on my SUSE 12 box. I will create a new thread for help .
