Sie sind hier : Homepage →  Linux (6e) PHP 5.6 / opensuse 15.1

Juni 2020 - Es gibt Zwänge, ein PHP5 Umfeld zu haben.

Will man alte Software - meist in mehreren Schritten - updaten, muß man die vorhandene Grundversion auf einem möglichst aktuellen Betriebssystem zum Laufen bringen. Das ist nicht einfach und erfordert jede Menge Grips.
.

Zuerst mal, es gibt mehrere "opensuse" Foren

Das offizielle opensuse Form findet man unter https://forums.opensuse.org.

Ein weiteres von weltweit weiteren anderen Foren ist ein privates deutsches Forum unter https://www.opensuse-forum.de.

In dem offiziellen Suse-Forum betreuen professionelle EDV- und (altgediente) SUSE-Linux- Spezialisten die Anfragen und geben professionelle Hilfestellung, allermeist in englisch, abe auch in/auf Deutsch. Deshalb gibt es nur wenige Ausrutscher.

In dem privaten deutschen opensuse Forum gibt es (leider) sehr viele sogenannte "Erleuchtete" (Spinner), die mit den skurrielsten (und teilweise sogar ziemlich blöden) Antworten jede seriöse Anfrage und jedes ernsthafte Problem als Scharlatanerie abtun.

Mich (als NICHT Erleuchteter) hat es ernsthaft geschockt, wie eine ganz normale seriöse Anfrage nach "Leap 15: Downgrade auf PHP 5.6" dermaßen unqualifiziert und blöde - gleich von mehreren Teilnehmern - beantwortet (abgebügelt) wurde und der Fragende sogleich in die Frust-Ecke abgeschoben wurde.

Das ist dermaßen dämlich abgelaufen und für den ganzen Linux Bereich so sehr kontraproduktiv (der ja immer noch nach Akzeptanz dürstet), daß ich dieses Forum bei mir gesperrt habe. So geht es auf jeden Fall nicht.
.

Also es geht : "Leap 15: Downgrade auf PHP 5.6"

Das aktuelle opensuse Leap 15.1 wird nur noch mit php7 ausgeliefert. Doch auch ich habe das aktuelle Problem, ich muß noch(ein)mal die php 5.x Version bereitstellen.

Das "Warum" sollte bei solchen Anfragen erstmal überhaupt keine Rolle spielen. Wer so weit gediehen ist, daß er überhaupt weiß, was php ist und daß es nach der 5.3 bis 5.6 die 7.x gibt, (wo denn nur die 6.x abgeblieben ist ?), der weiß doch schon, wovon er spricht.

Also es geht und es geht ganz einfach, wenn man weiß, wie.
.

Der Weg zurück zu php 5.6 auf Leap 15.1

Ich brauche eine grafische Oberfläche über VNC oder direkt am PC. Ob ich VNC über den XEN/KVM Host bereitstelle oder in einer VM installiere, ist dabei nebensächlich.

Dann brauche ich yast2 und den "miori" Brower aus dem ganz normalen "15.1 oss" Repository. Dann geht es nämlich am schnellsten. Nebenbei habe ich immer ein oder 2 "ssl/putty" Terminals mit der Kommandozeile (mit)laufen.

Bei mír hatte ich mit yast2 (vorher bereits) alle Module mit php7*.* am Anfang wieder gelöscht, denn das brauche ich zur Zeit nicht. Vermutlich aus Namensgleicheit von den Libraries kann man php5 und php7 nicht mehr gleichzeitig betreiben. Jedenfalls hatte ich bislang dazu nichts gefunden. Vielleicht gibt es ja einen Weg.
.

Es gibt da ein (neues) Repository, da ist alles drinnen !!

Also - auf der laufenden 15.1 Installation den midori Browser installieren (bei mir ist es eine Leap 15.1 Virtuelle Maschine unter XEN) und dann diese Web-Seite aufrufen :

https://software.opensuse.org/download/package?package=php5&project=home%3Aaledr%3Abranches#manualopenSUSE

Dieses Repository mit nur einem Klick auf dieser Webseite ganz einfach der aktuellen 15.1 Installation hinzufügen - oder auch nach Anweisung auf der Webseite manuell mit der Kommandozeile installieren - so habe ich es gemacht und so geht es :

Führen Sie für openSUSE Leap 15.1 das Folgende als root aus:

(1) zypper addrepo

(2) https://download.opensuse.org/repositories/home:aledr:branches/openSUSE_Leap_15.1/home:aledr:branches.repo

(3) zypper refresh

(4) zypper install php5

Am Ende - damit ist php 7 weg und php 5.6 installiert - also - es geht.
.

Hier die Protokolle von der Kommandozeile (CLI)

=====================================================


[md4-ftp-Gast- root] /opt $ zypper addrepo https://download.opensuse.org/repositories/home:aledr:branches/openSUSE_Leap_15.1/home:aledr:branches.repo

Adding repository 'home:aledr:branches (openSUSE_Leap_15.1)' ...................................................................................................................[done]
Repository 'home:aledr:branches (openSUSE_Leap_15.1)' successfully added

URI         : https://download.opensuse.org/repositories/home:/aledr:/branches/openSUSE_Leap_15.1/
Enabled     : Yes
GPG Check   : Yes
Autorefresh : No
Priority    : 99 (default priority)

Repository priorities are without effect. All enabled repositories share the same priority.

=====================================================

[md4-ftp-Gast- root] /opt $ zypper refresh

Retrieving repository 'home:aledr:branches (openSUSE_Leap_15.1)' metadata ---------------------------------------------------------------------------------------------------------[\]

New repository or package signing key received:

  Repository:       home:aledr:branches (openSUSE_Leap_15.1)
  Key Name:         home:aledr OBS Project <home:aledr@build.opensuse.org>
  Key Fingerprint:  400755A7 35E6E242 65793A54 42EC7B7F 9C076B15
  Key Created:      Wed Nov  7 15:47:10 2018
  Key Expires:      Fri Jan 15 15:47:10 2021
  Rpm Name:         gpg-pubkey-9c076b15-5be2faee


Do you want to reject the key, trust temporarily, or trust always? [r/t/a/?] (r): a
Retrieving repository 'home:aledr:branches (openSUSE_Leap_15.1)' metadata ......................................................................................................[done]
Building repository 'home:aledr:branches (openSUSE_Leap_15.1)' cache ...........................................................................................................[done]
Repository 'openSUSE-Leap-15.1-1' is up to date.
Repository 'Non-OSS Repository' is up to date.
Retrieving repository 'Main Update Repository' metadata ........................................................................................................................[done]
Building repository 'Main Update Repository' cache .............................................................................................................................[done]
Repository 'Update Repository (Non-Oss)' is up to date.

All repositories have been refreshed.

=====================================================
.

Jetzt die Installation :

=====================================================

[md4-ftp-Gast- root] /opt $ zypper install php5

Loading repository data...
Reading installed packages...
Resolving package dependencies...

Problem: installed php7-test-7.2.5-lp151.6.25.1.x86_64 obsoletes php5 provided by php5-5.6.40-lp151.13.2.x86_64
 Solution 1: deinstallation of php7-test-7.2.5-lp151.6.25.1.x86_64
 Solution 2: do not install php5-5.6.40-lp151.13.2.x86_64

Choose from above solutions by number or cancel [1/2/c/d/?] (c): 1
Resolving dependencies...
Resolving package dependencies...

The following 12 NEW packages are going to be installed:
  apache2-mod_php5 libopenssl1_0_0 php5 php5-ctype php5-dom php5-iconv php5-json php5-pdo php5-sqlite php5-tokenizer php5-xmlreader php5-xmlwriter

The following package is going to be REMOVED:
  php7-test

The following 8 recommended packages were automatically selected:
  php5-ctype php5-dom php5-iconv php5-json php5-sqlite php5-tokenizer php5-xmlreader php5-xmlwriter

The following 6 packages are suggested, but will not be installed:
  php5-gd php5-gettext php5-mbstring php5-mysql php5-pear php5-suhosin

The following package requires a system reboot:
  libopenssl1_0_0

12 new packages to install, 1 to remove.
Overall download size: 4.6 MiB. Already cached: 0 B. After the operation, additional 20.2 MiB will be used.

    Note: System reboot required.
Continue? [y/n/v/...? shows all options] (y):
Retrieving package libopenssl1_0_0-1.0.2p-lp151.5.13.1.x86_64                                                                                   (1/12),   1.1 MiB (  2.9 MiB unpacked)
Retrieving: libopenssl1_0_0-1.0.2p-lp151.5.13.1.x86_64.rpm .....................................................................................................................[done]
Retrieving package php5-5.6.40-lp151.13.2.x86_64                                                                                                (2/12),   1.7 MiB (  9.9 MiB unpacked)
Retrieving: php5-5.6.40-lp151.13.2.x86_64.rpm ..................................................................................................................................[done]
Retrieving package php5-ctype-5.6.40-lp151.13.2.x86_64                                                                                          (3/12),  21.2 KiB ( 17.2 KiB unpacked)
Retrieving: php5-ctype-5.6.40-lp151.13.2.x86_64.rpm ............................................................................................................................[done]
Retrieving package php5-dom-5.6.40-lp151.13.2.x86_64                                                                                            (4/12),  75.8 KiB (228.8 KiB unpacked)
Retrieving: php5-dom-5.6.40-lp151.13.2.x86_64.rpm ..............................................................................................................................[done]
Retrieving package php5-iconv-5.6.40-lp151.13.2.x86_64                                                                                          (5/12),  35.9 KiB ( 53.7 KiB unpacked)
Retrieving: php5-iconv-5.6.40-lp151.13.2.x86_64.rpm ............................................................................................................................[done]
Retrieving package php5-json-5.6.40-lp151.13.2.x86_64                                                                                           (6/12),  33.3 KiB ( 51.3 KiB unpacked)
Retrieving: php5-json-5.6.40-lp151.13.2.x86_64.rpm .............................................................................................................................[done]
Retrieving package php5-tokenizer-5.6.40-lp151.13.2.x86_64                                                                                      (7/12),  23.0 KiB ( 21.3 KiB unpacked)
Retrieving: php5-tokenizer-5.6.40-lp151.13.2.x86_64.rpm ........................................................................................................................[done]
Retrieving package php5-xmlreader-5.6.40-lp151.13.2.x86_64                                                                                      (8/12),  28.9 KiB ( 44.9 KiB unpacked)
Retrieving: php5-xmlreader-5.6.40-lp151.13.2.x86_64.rpm ........................................................................................................................[done]
Retrieving package php5-xmlwriter-5.6.40-lp151.13.2.x86_64                                                                                      (9/12),  30.1 KiB ( 66.7 KiB unpacked)
Retrieving: php5-xmlwriter-5.6.40-lp151.13.2.x86_64.rpm ........................................................................................................................[done]
Retrieving package php5-pdo-5.6.40-lp151.13.2.x86_64                                                                                           (10/12),  62.2 KiB (149.1 KiB unpacked)
Retrieving: php5-pdo-5.6.40-lp151.13.2.x86_64.rpm ..............................................................................................................................[done]
Retrieving package php5-sqlite-5.6.40-lp151.13.2.x86_64                                                                                        (11/12),  44.0 KiB (102.9 KiB unpacked)
Retrieving: php5-sqlite-5.6.40-lp151.13.2.x86_64.rpm ...........................................................................................................................[done]
Retrieving package apache2-mod_php5-5.6.40-lp151.13.2.x86_64                                                                                   (12/12),   1.5 MiB (  9.2 MiB unpacked)
Retrieving: apache2-mod_php5-5.6.40-lp151.13.2.x86_64.rpm ......................................................................................................................[done]

Checking for file conflicts: ...................................................................................................................................................[done]
( 1/13) Removing php7-test-7.2.5-lp151.6.25.1.x86_64 ...........................................................................................................................[done]
( 2/13) Installing: libopenssl1_0_0-1.0.2p-lp151.5.13.1.x86_64 .................................................................................................................[done]
( 3/13) Installing: php5-5.6.40-lp151.13.2.x86_64 ..............................................................................................................................[done]
( 4/13) Installing: php5-ctype-5.6.40-lp151.13.2.x86_64 ........................................................................................................................[done]
( 5/13) Installing: php5-dom-5.6.40-lp151.13.2.x86_64 ..........................................................................................................................[done]
( 6/13) Installing: php5-iconv-5.6.40-lp151.13.2.x86_64 ........................................................................................................................[done]
( 7/13) Installing: php5-json-5.6.40-lp151.13.2.x86_64 .........................................................................................................................[done]
( 8/13) Installing: php5-tokenizer-5.6.40-lp151.13.2.x86_64 ....................................................................................................................[done]
( 9/13) Installing: php5-xmlreader-5.6.40-lp151.13.2.x86_64 ....................................................................................................................[done]
(10/13) Installing: php5-xmlwriter-5.6.40-lp151.13.2.x86_64 ....................................................................................................................[done]
(11/13) Installing: php5-pdo-5.6.40-lp151.13.2.x86_64 ..........................................................................................................................[done]
(12/13) Installing: php5-sqlite-5.6.40-lp151.13.2.x86_64 .......................................................................................................................[done]
(13/13) Installing: apache2-mod_php5-5.6.40-lp151.13.2.x86_64 ..................................................................................................................[done]
Executing %posttrans scripts ...................................................................................................................................................[done]
There are running programs which still use files and libraries deleted or updated by recent upgrades. They should be restarted to benefit from the latest updates. Run 'zypper ps -s' to list these programs.

Core libraries or services have been updated.
Reboot is required to ensure that your system benefits from these updates.


=====================================================

und das wars !!

Jetzt starte ich ein "reboot", damit der Apache Webserver die php5 Funktionen kennt.
.

Startseite -- © 2001/2022 - Copyright by Dipl.-Ing. Gert Redlich / Germany - D-65191 Wiesbaden - Telefon-Nummer - Impressum