What is the proper way to install php 5.2 in opensuse 11.2

Hello,
I wonder if there is any way to have php 5.2 installed instead of php 5.3 in opensuse 11.2 Many currently running websites are not working with php 5.3 At this moment I am building website based on drupal6 and this is nightmare. Many modules and core functions are not working in the right way or pour out warnings errors etc.

Wouldn’t it be better to apply the patches to drupal6 to make it compatible with 5.3?

PHP 5.3 Compatibility | drupal.org

You could I suppose build a set of 5.2 packages yourself, but it might be better to bite the bullet now and convert as PHP might stop supporting 5.2 with security fixes at some point, and what’s more you would be responsible for keeping your 5.2 up to date instead of using openSUSE updates.

I never heard about paches to drupal to make it compatible with php 5.3. Thank you for your help

latest patch avaialble at PHP 5.3 Compatibility | drupal.org does not get rid of warnings.

Example: get a fresh new 5.20 drupal, apply patch above, simply save a node and you’ll get:

 warning: date_default_timezone_set() expects exactly 1 parameter, 0 given in /srv/....../modules/node/node.module on line 2035.

I really think we should be able have previous php releases inside our opensuse 11.2 boxes.

Any suggestion to get php 5.2 on opensuse 11.2
thanks

I compiled php-5.2 (from SLES10) against openSUSE 11.2,
Build service repo is located :
Index of /repositories/home:/paca/openSUSE_11.2

Add that repo with higher priority and you are done.

Paca,

after using your repository, the update-cronjob always tries to update to the new version:


SCRIPT: opensuse.org-online_update exited with RETURNCODE = 4.
SCRIPT: output (stdout && stderr) follows

Problem: patch:apache2-mod_php5-1993.noarch conflicts with php5-zip.i586 < 5.3.1-0.1.1 provided by php5-zip-5.2.6-55.1.i586  Solution 1: Following actions will be done:
  install php5-zip-5.3.1-0.1.1.i586 (with vendor change)
    obs://build.opensuse.org/home:paca  -->  openSUSE
  install php5-xmlwriter-5.3.1-0.1.1.i586 (with vendor change)
    obs://build.opensuse.org/home:paca  -->  openSUSE
  install php5-xmlreader-5.3.1-0.1.1.i586 (with vendor change)
    obs://build.opensuse.org/home:paca  -->  openSUSE
  install php5-tokenizer-5.3.1-0.1.1.i586 (with vendor change)
    obs://build.opensuse.org/home:paca  -->  openSUSE
  install php5-pdo-5.3.1-0.1.1.i586 (with vendor change)
    obs://build.opensuse.org/home:paca  -->  openSUSE
  install php5-mysql-5.3.1-0.1.1.i586 (with vendor change)
    obs://build.opensuse.org/home:paca  -->  openSUSE
  install php5-mbstring-5.3.1-0.1.1.i586 (with vendor change)
    obs://build.opensuse.org/home:paca  -->  openSUSE
  install php5-json-5.3.1-0.1.1.i586 (with vendor change)
    obs://build.opensuse.org/home:paca  -->  openSUSE
  install php5-iconv-5.3.1-0.1.1.i586 (with vendor change)
    obs://build.opensuse.org/home:paca  -->  openSUSE
  install php5-hash-5.3.1-0.1.1.i586 (with vendor change)
    obs://build.opensuse.org/home:paca  -->  openSUSE
  install php5-dom-5.3.1-0.1.1.i586 (with vendor change)
    obs://build.opensuse.org/home:paca  -->  openSUSE
  install php5-curl-5.3.1-0.1.1.i586 (with vendor change)
    obs://build.opensuse.org/home:paca  -->  openSUSE
  install php5-ctype-5.3.1-0.1.1.i586 (with vendor change)
    obs://build.opensuse.org/home:paca  -->  openSUSE
  install php5-5.3.1-0.1.1.i586 (with vendor change)
    obs://build.opensuse.org/home:paca  -->  openSUSE
  install apache2-mod_php5-5.3.1-0.1.1.i586 (with vendor change)
    obs://build.opensuse.org/home:paca  -->  openSUSE  Solution 2: do not install patch:apache2-mod_php5-1993.noarch

Choose from above solutions by number or cancel [1/2/c] (c): c
SCRIPT: opensuse.org-online_update
------- END OF OUTPUT


How can I prevent these errors?

Thanks in advance,
Andi

Hi,

Repo is not found anymore. Anyway, do anyone know of a 5.2 repo for opensuse 11.3 and/or 11.4?

On Tue, 12 Jul 2011 12:06:03 +0530, Floppe
<Floppe@no-mx.forums.opensuse.org> wrote:

>
> paca;2112811 Wrote:
>> I compiled php-5.2 (from SLES10) against openSUSE 11.2,
>> Build service repo is located :
>> ‘Index of /repositories/home:/paca/openSUSE_11.2’
>> (http://download.opensuse.org/repositories/home:/paca/openSUSE_11.2/)
>>
>> Add that repo with higher priority and you are done.
>
> Hi,
>
> Repo is not found anymore. Anyway, do anyone know of a 5.2 repo for
> opensuse 11.3 and/or 11.4?
>

not available as far as i know. when i needed PHP 5.2 i had to compile
from source, which is a pretty painless process.


phani.