Submitted by BerkWood on Sun, 04/02/2017 - 15:55
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.
Parent issue:
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Sun, 04/02/2017 - 23:47 Comment #1
How did you install PHP 7.1 on this system - was it from a package provided by your Linux distribution, or from another source?
Submitted by andreychek on Mon, 04/03/2017 - 09:12 Comment #2
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?
Submitted by JamieCameron on Mon, 04/03/2017 - 17:47 Comment #3
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.
Submitted by BerkWood on Wed, 04/05/2017 - 20:13 Comment #4
PHP 7.1 is selectable in VMin, but the script is looking to install php70-gd which is not a valid package.
Submitted by JamieCameron on Wed, 04/05/2017 - 23:57 Comment #5
Did you perhaps recently upgrade from 7.0 to 7.1, after creating the domain?
Submitted by BerkWood on Thu, 04/13/2017 - 22:18 Comment #6
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
Submitted by JamieCameron on Sat, 04/15/2017 - 22:37 Comment #7
If you go to System Settings -> Re-Check Configuration, which PHP versions does it show were found on your system?
Submitted by BerkWood on Tue, 04/18/2017 - 15:09 Comment #8
The following PHP versions are available : 5.5.9 (/usr/bin/php5-cgi), 7.0.18 (/usr/bin/php-cgi7.0)
Submitted by BerkWood on Tue, 04/18/2017 - 15:20 Comment #9
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!
Submitted by BerkWood on Tue, 04/18/2017 - 15:29 Comment #10
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
Submitted by JamieCameron on Tue, 04/18/2017 - 21:40 Comment #11
Ok, the next release of Virtualmin will also try packages named like
php7.0-gd
Submitted by JamieCameron on Tue, 04/18/2017 - 21:40 Comment #12
Submitted by BerkWood on Wed, 04/19/2017 - 20:06 Comment #13
Thank you!!!
Submitted by IssueBot on Wed, 05/03/2017 - 20:07 Comment #14
Automatically closed - issue fixed for 2 weeks with no activity.