Installing nextcloud with php5

Hi.

I have installed nextcloud in a computer following https://en.opensuse.org/SDB:Nextcloud](https://en.opensuse.org/SDB:Nextcloud), all went fine.
Now I’m trying to install it on another computer, but I have I problem. I have php5 installed instead of php7 because I’m using a moodle version which does not work with php7.
The guide says you can install it with php7 or php5, but when tryng to install nextcloud I get an error


tutatis:~ # zypper in nextcloud
Loading repository data...
Reading installed packages...
Resolving package dependencies...

Problem: nextcloud-15.0.7-lp151.1.1.noarch requires mod_php_any >= 7.0.0, but this requirement cannot be provided
  not installable providers: apache2-mod_php7-7.3.11-lp151.221.2.x86_64[devel_languages_php]
                   apache2-mod_php53-5.3.29-lp151.2.14.x86_64[http-download.opensuse.org-ce1617ec]
                   apache2-mod_php7-7.2.5-lp151.5.44.x86_64[repo-oss]
                   apache2-mod_php7-7.2.5-lp151.6.12.1.i586[repo-update]
                   apache2-mod_php7-7.2.5-lp151.6.12.1.x86_64[repo-update]
                   apache2-mod_php7-7.2.5-lp151.6.3.1.i586[repo-update]
                   apache2-mod_php7-7.2.5-lp151.6.3.1.x86_64[repo-update]
                   apache2-mod_php7-7.2.5-lp151.6.6.1.i586[repo-update]
                   apache2-mod_php7-7.2.5-lp151.6.6.1.x86_64[repo-update]
                   apache2-mod_php7-7.2.5-lp151.6.9.1.i586[repo-update]
                   apache2-mod_php7-7.2.5-lp151.6.9.1.x86_64[repo-update]
 Solution 1: Following actions will be done:
  install apache2-mod_php7-7.3.11-lp151.221.2.x86_64 (with vendor change)
    obs://build.opensuse.org/home:aledr  -->  obs://build.opensuse.org/devel:languages:php
  install php7-zlib-7.3.11-lp151.221.2.x86_64 (with vendor change)
    obs://build.opensuse.org/home:aledr  -->  obs://build.opensuse.org/devel:languages:php
  install php7-zip-7.3.11-lp151.221.2.x86_64 (with vendor change)
    obs://build.opensuse.org/home:aledr  -->  obs://build.opensuse.org/devel:languages:php
  install php7-xmlwriter-7.3.11-lp151.221.2.x86_64 (with vendor change)
    obs://build.opensuse.org/home:aledr  -->  obs://build.opensuse.org/devel:languages:php
  install php7-xmlreader-7.3.11-lp151.221.2.x86_64 (with vendor change)
    obs://build.opensuse.org/home:aledr  -->  obs://build.opensuse.org/devel:languages:php
  install php7-tokenizer-7.3.11-lp151.221.2.x86_64 (with vendor change)
    obs://build.opensuse.org/home:aledr  -->  obs://build.opensuse.org/devel:languages:php
  install php7-sqlite-7.3.11-lp151.221.2.x86_64 (with vendor change)
    obs://build.opensuse.org/home:aledr  -->  obs://build.opensuse.org/devel:languages:php
  install php7-pdo-7.3.11-lp151.221.2.x86_64 (with vendor change)
    obs://build.opensuse.org/home:aledr  -->  obs://build.opensuse.org/devel:languages:php
  install php7-openssl-7.3.11-lp151.221.2.x86_64 (with vendor change)
    obs://build.opensuse.org/home:aledr  -->  obs://build.opensuse.org/devel:languages:php
  install php7-mysql-7.3.11-lp151.221.2.x86_64 (with vendor change)
    obs://build.opensuse.org/home:aledr  -->  obs://build.opensuse.org/devel:languages:php
  install php7-json-7.3.11-lp151.221.2.x86_64 (with vendor change)
    obs://build.opensuse.org/home:aledr  -->  obs://build.opensuse.org/devel:languages:php
  install php7-iconv-7.3.11-lp151.221.2.x86_64 (with vendor change)
    obs://build.opensuse.org/home:aledr  -->  obs://build.opensuse.org/devel:languages:php
  install php7-fileinfo-7.3.11-lp151.221.2.x86_64 (with vendor change)
    obs://build.opensuse.org/home:aledr  -->  obs://build.opensuse.org/devel:languages:php
  install php7-dom-7.3.11-lp151.221.2.x86_64 (with vendor change)
    obs://build.opensuse.org/home:aledr  -->  obs://build.opensuse.org/devel:languages:php
  install php7-curl-7.3.11-lp151.221.2.x86_64 (with vendor change)
    obs://build.opensuse.org/home:aledr  -->  obs://build.opensuse.org/devel:languages:php
  install php7-ctype-7.3.11-lp151.221.2.x86_64 (with vendor change)
    obs://build.opensuse.org/home:aledr  -->  obs://build.opensuse.org/devel:languages:php
  install php7-calendar-7.3.11-lp151.221.2.x86_64 (with vendor change)
    obs://build.opensuse.org/home:aledr  -->  obs://build.opensuse.org/devel:languages:php
  install php7-bz2-7.3.11-lp151.221.2.x86_64 (with vendor change)
    obs://build.opensuse.org/home:aledr  -->  obs://build.opensuse.org/devel:languages:php
 Solution 2: do not install nextcloud-15.0.7-lp151.1.1.noarch
 Solution 3: break nextcloud-15.0.7-lp151.1.1.noarch by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/3/c/d/?] (c): 
tutatis:~ # 


Anyone has installed nextcloud with php5?

regards

You shouldn’t. From Nextcloud 16 and up php7 is needed. I’m quite sure here, since a friend could not update his Nextcloud some time ago, due to having php5.

Bad news then… I guess It will be problematic installing php5 and php7 alltogheter

Since php5 is not going to be around forever, why not have a look from another pov : https://docs.moodle.org/dev/Moodle_and_PHP7

Yes, but my moodle is 2.5.2. I have to upgrade it… any moment, but as the server is been used and it has a lot of users I can’t do it now.

Understood, I ran into such issues last year, but was forced to move to php7 and update some other webapps. Took ~4 hours and did not fail on any of the webapps. Had to do it anyway, since the server runs TW, which has no php5 anymore.