Nextcloud install script

When I try to install Nextcloud using the install script, I get this: Found https://download.nextcloud.com:443/server/releases/nextcloud-11.0.2.tar.bz2 in cache ..

PHP module gd is required .. Enabling module in PHP configuration .. .. done Installing package php70-gd .. Installing package(s) with command apt-get -y -f install php70-gd ..

Reading package lists... Building dependency tree... Reading state information... E: Unable to locate package php70-gd .. install failed! Module is not available even after installation!

When I look at phpinfo, I can see that gd is enabled. The package is actually php7.1-gd.

Status: 
Closed (fixed)

Comments

How did you install PHP 7.1 on this system - was it from a package provided by your Linux distribution, or from another source?

Jamie, PHP 7.1.x has been officially released, and there's a popular Ubuntu PPA that provides PHP 7.1 using the package formats that BerkWood shared above.

Also, it looks like the CentOS SCL repo is gearing up towards offering that as well, I see alpha packages for it.

Would it be possible to add in support for PHP 7.1 in Virtualmin?

Virtualmin should already support PHP 7.1 though. Just make sure that at Server Configuration -> PHP Versions that PHP 7.1 is selected for this domain.

PHP 7.1 is selectable in VMin, but the script is looking to install php70-gd which is not a valid package.

Did you perhaps recently upgrade from 7.0 to 7.1, after creating the domain?

No. 5.5.9 was installed. I installed 7.1 as a 2nd version and started a test sub-domain. The above error is what I get

If you go to System Settings -> Re-Check Configuration, which PHP versions does it show were found on your system?

The following PHP versions are available : 5.5.9 (/usr/bin/php5-cgi), 7.0.18 (/usr/bin/php-cgi7.0)

I installed php7.0-gd and then got an error for php70-xml. I think the script is just missing the '.' for 7.0:

PHP module xml is required .. Enabling module in PHP configuration .. .. done Installing package php70-xml .. Installing package(s) with command apt-get -y -f install php70-xml ..

Reading package lists... Building dependency tree... Reading state information... E: Unable to locate package php70-xml .. install failed! Installing package php-xml .. Installing package(s) with command apt-get -y -f install php-xml ..

Reading package lists... Building dependency tree... Reading state information... The following packages were automatically installed and are no longer required: linux-headers-3.13.0-106 linux-headers-3.13.0-106-generic linux-image-3.13.0-100-generic linux-image-3.13.0-106-generic linux-image-extra-3.13.0-100-generic linux-image-extra-3.13.0-106-generic Use 'apt-get autoremove' to remove them. The following extra packages will be installed: php7.1-xml The following NEW packages will be installed: php-xml php7.1-xml 0 upgraded, 2 newly installed, 0 to remove and 8 not upgraded. Need to get 119 kB of archives. After this operation, 554 kB of additional disk space will be used. Get:1 http://ppa.launchpad.net/ondrej/php/ubuntu/ trusty/main php7.1-xml amd64 7.1.4-1+deb.sury.org~trusty+1 [113 kB] Get:2 http://ppa.launchpad.net/ondrej/php/ubuntu/ trusty/main php-xml all 1:7.1+51+deb.sury.org~trusty+1 [5238 B] Fetched 119 kB in 0s (133 kB/s) Selecting previously unselected package php7.1-xml. (Reading database ... 240465 files and directories currently installed.) Preparing to unpack .../php7.1-xml_7.1.4-1+deb.sury.org~trusty+1_amd64.deb ... Unpacking php7.1-xml (7.1.4-1+deb.sury.org~trusty+1) ... Selecting previously unselected package php-xml. Preparing to unpack .../php-xml_1%3a7.1+51+deb.sury.org~trusty+1_all.deb ... Unpacking php-xml (1:7.1+51+deb.sury.org~trusty+1) ... Setting up php7.1-xml (7.1.4-1+deb.sury.org~trusty+1) ...

Creating config file /etc/php/7.1/mods-available/dom.ini with new version

Creating config file /etc/php/7.1/mods-available/simplexml.ini with new version

Creating config file /etc/php/7.1/mods-available/wddx.ini with new version

Creating config file /etc/php/7.1/mods-available/xml.ini with new version

Creating config file /etc/php/7.1/mods-available/xmlreader.ini with new version

Creating config file /etc/php/7.1/mods-available/xmlwriter.ini with new version

Creating config file /etc/php/7.1/mods-available/xsl.ini with new version Setting up php-xml (1:7.1+51+deb.sury.org~trusty+1) ... .. install complete. .. done

Module is not available even after installation!

Installing php7.0-gd, php7.0-xml, php7.0-curl manually allowed the script to continue normally and install Nextcloud. The apt-get command is trying for 70 instead of 7.0

Ok, the next release of Virtualmin will also try packages named like php7.0-gd

Status: Active » Fixed
Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.