Nextcloud 13 php problem

I’m trying to make a fresh installation on a Ubuntu 18.04 (previously upgraded from 16.04) machine with php 7.0 and 7.2 installed.
The moment I’m launching the installation Nextcloud gives me an error requesting several php modules to be installed. Those modules are actually installed. this is my php -m

`[PHP Modules]

apcu
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
igbinary
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
redis
Reflection
session
shmop
SimpleXML
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
Zend OPcache
zip
zlib

I’ve been googling around but couldnt find any solution.` Any help?

thanks
Davide

Which php version is being used for Nextcloud? I don’t think (but I am not sure) that Nextcloud 13 is compatible with php 7.2

I have php 7.2 and no problems.
https://docs.nextcloud.com/server/13/admin_manual/installation/system_requirements.html#working-platforms
" * PHP 5.6, 7.0, 7.1 or 7.2 required"

1 Like

Ah, good to know. Thank you.

This is what I get

Did you enable the php-modules for apache?

You could also try to identify which php-version your nextcloud is using:
https://yourcloud.example.com/ocs/v2.php/apps/serverinfo/api/v1/info

This is my a2enmod command output (dont know what exactly means)

you wrote in your first article “with php 7.0 and 7.2 installed” You should try:
a2dismod php7.2
a2enmod php7.0

Thanks Peteman52. It actually worked.

I had to disable both PHP7.0 and 7.2 and then enable PHP7.2 modules (had the same problem enabling PHP7.0).

sudo a2dismod php7.0
sudo a2dismod php7.2
sudo systemctl restart apache2
sudo a2enmod php7.2
sudo systemctl restart apache2
1 Like