PHP errors when installing owncloud

Unable to install owncloud server, tried PHP 7.3 and 7.4

Always getting this error:

[Mon Feb 08 14:36:38.766679 2021] [php7:error] [pid 12740] [client 87.218.13.82:36850] PHP Fatal error: Cannot redeclare normalizer_normalize() (previously declared in /var/www/owncloud/lib/composer/symfony/polyfill-intl-normalizer/bootstrap.php:18) in /var/www/owncloud/lib/composer/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php on line 21

Steps to reproduce

Expected behaviour

Tell us what should happen

Actual behaviour

Tell us what happens instead

Server configuration

Operating system:
Ubuntu 18.04.5 LTS
Web server:
Apache
Database:
MariaDB 10.5.8
PHP version:
PHP 7.4.15 (cli) (built: Feb 7 2021 12:21:51) ( NTS )

ownCloud version: (see ownCloud admin page)
10.6

Updated from an older ownCloud or fresh install:
Fresh install
Where did you install ownCloud from:


Signing status (ownCloud 9.0 and above):
Login as admin user into your ownCloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results into https://gist.github.com/ and puth the link here.

The content of config/config.php:

Log in to the web-UI with an administrator account and click on
'admin' -> 'Generate Config Report' -> 'Download ownCloud config report'
This report includes the config.php settings, the list of activated apps
and other details in a well sanitized form.

or 

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your ownCloud installation folder

*ATTENTION:* Do not post your config.php file in public as is. Please use one of the above
methods whenever possible. Both, the generated reports from the web-ui and from occ config:list
consistently remove sensitive data. You still may want to review the report before sending.
If done manually then it is critical for your own privacy to dilligently
remove *all* host names, passwords, usernames, salts and other credentials before posting.
You should assume that attackers find such information and will use them against your systems.

List of activated apps:

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder.

Are you using external storage, if yes which one: local/smb/sftp/…

Are you using encryption: yes/no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/…

LDAP configuration (delete this part if not used)

With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your ownCloud installation folder

Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';


Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.

Client configuration

Browser:

Operating system:

Logs

Web server error log

Insert your webserver log here

ownCloud log (data/owncloud.log)

Insert your ownCloud log here

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log 
c) ...

Did you install all required packages? For the php version you use? Have a look at https://doc.owncloud.com/server/admin_manual/installation/quick_guides/ubuntu_18_04.html#install-the-required-packages

To me it seems at least php-intl is missing.

In case you still cannot get it running, please

  • make sure you are using the same php version for both apache and command line
  • provide the output of
  • php -m

1 Like

Additionally, please have a look at the two threads you already opened Integrity Failed and Ownlcoud logs warnings & errors

I’d consider it as a good move to drop at least a small comment, if the advice you got was helpful/working or not.

1 Like

Hello! Thank you very much for your reply. Yes, I think I had all the php modules installed, here is a list I got with php -m:

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

[Zend Modules]
Zend OPcache

php -v

PHP 7.4.15 (cli) (built: Feb 7 2021 12:21:51) ( NTS )
Copyright © The PHP Group
Zend Engine v3.4.0, Copyright © Zend Technologies
with Zend OPcache v7.4.15, Copyright ©, by Zend Technologies

Checking Apache version with phpinfo():

Configuration File (php.ini) Path /etc/php/7.2/apache2
Loaded Configuration File /etc/php/7.2/apache2/php.ini
Scan this dir for additional .ini files /etc/php/7.2/apache2/conf.d

It seems that didn´t match the PHP version of Apache with the PHP in command line. have updated the PHP version of the Apache web server, from 7.2 to 7.4:

To enable php7.4: a2enmod php7.4
To disable php7.2: a2dismod php7.2
Restart apache.

Now this is my configuration in Apache:

Configuration File (php.ini) Path /etc/php/7.4/apache2
Loaded Configuration File /etc/php/7.4/apache2/php.ini
Scan this dir for additional .ini files /etc/php/7.4/apache2/conf.d

I could see now the ownCloud installation page, instead of the blank page I got before when I had PHP errors.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.