Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: php7 is only available whith version 7.2 and i don't find way to install 7.1 version

  1. #1

    Default php7 is only available whith version 7.2 and i don't find way to install 7.1 version

    hi to all,

    i need install php 7.1 for a project

    so i have installed php7 with:
    zypper install php7

    I have installed php 7.2
    Code:
    php -v
    PHP 7.2.2 (cli) ( NTS )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    i can't use php 7.2 instead 7.1 bucause this incompatibilities: http://be2.php.net/manual/en/migrati...compatible.php

    i have undestand php7 package have the same name for each version.
    https://forums.opensuse.org/showthre...nstall-PHP-7-1


    i have this repo installed:

    Code:
    # | Alias                               | Nome                        | Abilitato | Controllo GPG | Aggiornamento--+-------------------------------------+-----------------------------+-----------+---------------+--------------
    1 | Games                               | Games                       | Sì        | (r ) Sì       | No           
    2 | Mozilla                             | Mozilla                     | No        | ----          | ----         
    3 | code                                | Visual Studio Code          | Sì        | (r ) Sì       | No           
    4 | google-chrome                       | google-chrome               | Sì        | (r ) Sì       | Sì           
    5 | http-download.opensuse.org-54848f9d | home:opensuseitalia         | Sì        | (r ) Sì       | Sì           
    6 | http-download.videolan.org-d7a88967 | SuSE                        | Sì        | (r ) Sì       | Sì           
    7 | repo-non-oss                        | openSUSE-Tumbleweed-Non-Oss | Sì        | (r ) Sì       | Sì           
    8 | repo-oss                            | openSUSE-Tumbleweed-Oss     | Sì        | (r ) Sì       | Sì           
    9 | repo-update                         | openSUSE-Tumbleweed-Update  | Sì        | (r ) Sì       | Sì    

    If i search different version of php7

    Code:
    sudo zypper search -s php7
    
    
    Caricamento dati del repository in corso...
    Lettura dei pacchetti installati in corso...
    
    
    S  | Nome                         | Tipo      | Versione        | Arch.  | Repository             
    ---+------------------------------+-----------+-----------------+--------+------------------------
    i+ | apache2-mod_php7             | pacchetto | 7.2.2-2.1       | x86_64 | openSUSE-Tumbleweed-Oss
    v  | apache2-mod_php7             | pacchetto | 7.2.2-2.1       | i586   | openSUSE-Tumbleweed-Oss
    i+ | php7                         | pacchetto | 7.2.2-2.1       | x86_64 | openSUSE-Tumbleweed-Oss
    v  | php7                         | pacchetto | 7.2.2-2.1       | i586   | openSUSE-Tumbleweed-Oss
       | php7-APCu                    | pacchetto | 5.1.9-1.1       | x86_64 | openSUSE-Tumbleweed-Oss
    i have also search on on line packages here https://software.opensuse.org/package/php7 but is the same only version available is 7.2




    is possible opensuse thumbleweed don't make avilable previous version of a packages? i think i'm do same mistake but i don't undertand where...

    I have search a lot on google but i have find solution only for apt-get based sistem like ubuntu where different version of php are named different.

  2. #2

    Default Re: php7 is only available whith version 7.2 and i don't find way to install 7.1 version

    i post a yast image where onli version available is 7.2 https://ibb.co/eB4DfH

  3. #3
    Join Date
    Jan 2018
    Location
    Canada
    Posts
    124

    Default Re: php7 is only available whith version 7.2 and i don't find way to install 7.1 version

    I think you will have to uninstall php7 and mark the package not to update. Then see
    https://help.nextcloud.com/t/opensus...-do-i-do/25127

    If you install any software that needs 7.2 there may be issues.

    Don't use this as expert advice, just a another item in your research.

  4. #4

    Default Re: php7 is only available whith version 7.2 and i don't find way to install 7.1 version

    i have find php7 version 7.1 under expermentals packages at https://software.opensuse.org/package/php7
    image here https://ibb.co/gbKAuc


    Code:
    php -v
    
    
    PHP 7.1.15 (cli) ( NTS )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies

  5. #5
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,487
    Blog Entries
    2

    Default Re: php7 is only available whith version 7.2 and i don't find way to install 7.1 version

    Quote Originally Posted by nikkopala View Post
    i have find php7 version 7.1 under expermentals packages at https://software.opensuse.org/package/php7
    image here https://ibb.co/gbKAuc


    Code:
    php -v
    
    
    PHP 7.1.15 (cli) ( NTS )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
    Yes,
    And although is not labeled a "community repo" I think that the profile of the owner/maintainer of the repo is solid
    https://build.opensuse.org/user/show/pgajdos

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  6. #6

    Default Re: php7 is only available whith version 7.2 and i don't find way to install 7.1 version

    Quote Originally Posted by tsu2 View Post
    Yes,
    And although is not labeled a "community repo" I think that the profile of the owner/maintainer of the repo is solid
    https://build.opensuse.org/user/show/pgajdos

    TSU
    I don't see any php71 repo for Tumbleweed. I've updated to php7.2 by mistake, and there is no repo (even experimental) to switch back to php7.1.
    What should I do? Is Tumbleweed going to support only 7.2 from now on?

    Thx

  7. #7
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,053
    Blog Entries
    14

    Default Re: php7 is only available whith version 7.2 and i don't find way to install 7.1 version

    Quote Originally Posted by momic View Post
    I don't see any php71 repo for Tumbleweed. I've updated to php7.2 by mistake, and there is no repo (even experimental) to switch back to php7.1.
    What should I do? Is Tumbleweed going to support only 7.2 from now on?

    Thx
    I don't think Tw is going to have 7.1 back. If this is about Nextcloud too, upgrade your Nextcloud to the most recent ( 14 ) version
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  8. #8
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,487
    Blog Entries
    2

    Default Re: php7 is only available whith version 7.2 and i don't find way to install 7.1 version

    You can try Tumbleweed Snapshots,
    I don't know if it goes back far enough (approx 1 year plus) and if it will have PHP7.1x

    http://release-tools.opensuse.org/20...-Official.html

    Otherwise if you really need PHP 7.1,
    The alternative I'd recommend is to use your choice of virtualization(or multi-boot) to build an openSUSE 15 or 42.3, both which apparently still support going back to PHP7.1.22 by adding the "devel:languages:php:php71" repo.

    This second option is what I do all the time (specific vms to build software) to avoid mucking up my base OS.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  9. #9
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,053
    Blog Entries
    14

    Default Re: php7 is only available whith version 7.2 and i don't find way to install 7.1 version

    Tumbleweed snapshots is not going to help here.

    @momic: what application needing php7.1 are we talking about?
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  10. #10

    Default Re: php7 is only available whith version 7.2 and i don't find way to install 7.1 version

    Quote Originally Posted by Knurpht View Post
    Tumbleweed snapshots is not going to help here.

    @momic: what application needing php7.1 are we talking about?
    I need php7.1 for local development and personal projects that rely on php7.1

    Tumbleweed has no officially supported php7.1 repos, and even Leap(LTS) 15/42.3 has only experimental php7.1 repo but it does not cover all packages (like php7-redis and php7-intl for example). I was able to install from them on Tumbleweed but since my code depends on php7-redis and php7-intl I couldn't do much without building it from source. I know I could use virtualization for development like vagrant/docker, but wouldn't it be better to have option of multiple php versions side by side? But I guess openSuSE does not have proper naming of packages to support that. On the other hand other distros gives you option to install multiple versions of php with proper package naming from many community repos.


    openSuSE gives you maintenance support up to 3 years for Leap.
    Leap 15.0 - is expected to be maintained until end of November 2019
    Leap 42.3 - is expected to be maintained until June 30 2019
    So up to one year left and with experimental repos for php7.1 it does not provide enough trust and confidence to use it.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •