How To Install NextCloud on Centos 7 and Centos 8

yum -y install wget unzip

yum -y install php php-mysqlnd php-json php-zip php-dom php-xml php-libxml php-mbstring php-gd mysql mysql-server

Last metadata expiration check: 0:58:02 ago on Fri 13 Mar 2020 02:12:49 PM EDT.
Dependencies resolved.
 Package                           Architecture          Version                                                 Repository                Size
 php                               x86_64                7.2.11-2.module_el8.1.0+209+03b9a8ff                    AppStream                1.5 M
 php-mysqlnd                       x86_64                7.2.11-2.module_el8.1.0+209+03b9a8ff                    AppStream                190 k
Installing dependencies:
 apr                               x86_64                1.6.3-9.el8                                             AppStream                125 k
 apr-util                          x86_64                1.6.1-6.el8                                             AppStream                105 k
 centos-logos-httpd                noarch                80.5-2.el8                                              AppStream                 24 k
 httpd                             x86_64                2.4.37-16.module_el8.1.0+256+ae790463                   AppStream                1.7 M
 httpd-filesystem                  noarch                2.4.37-16.module_el8.1.0+256+ae790463                   AppStream                 35 k
 httpd-tools                       x86_64                2.4.37-16.module_el8.1.0+256+ae790463                   AppStream                103 k
 mod_http2                         x86_64                1.11.3-3.module_el8.1.0+213+acce2796                    AppStream                158 k
 nginx-filesystem                  noarch                1:1.14.1-9.module_el8.0.0+184+e34fea82                  AppStream                 24 k
 php-cli                           x86_64                7.2.11-2.module_el8.1.0+209+03b9a8ff                    AppStream                3.1 M
 php-common                        x86_64                7.2.11-2.module_el8.1.0+209+03b9a8ff                    AppStream                655 k
 php-pdo                           x86_64                7.2.11-2.module_el8.1.0+209+03b9a8ff                    AppStream                122 k
 mailcap                           noarch                2.1.48-3.el8                                            BaseOS                    39 k
Installing weak dependencies:
 apr-util-bdb                      x86_64                1.6.1-6.el8                                             AppStream                 25 k
 apr-util-openssl                  x86_64                1.6.1-6.el8                                             AppStream                 27 k
 php-fpm                           x86_64                7.2.11-2.module_el8.1.0+209+03b9a8ff                    AppStream                1.6 M
Enabling module streams:
 httpd                                                   2.4                                                                                  
 nginx                                                   1.14                                                                                 
 php                                                     7.2                                                                                  

Transaction Summary
Install  17 Packages

Total download size: 9.5 M
Installed size: 36 M
Is this ok [y/N]: y
Downloading Packages:
(1/17): apr-1.6.3-9.el8.x86_64.rpm                                                                              1.0 MB/s | 125 kB     00:00   
(2/17): apr-util-bdb-1.6.1-6.el8.x86_64.rpm                                                                     205 kB/s |  25 kB     00:00   
(3/17): apr-util-1.6.1-6.el8.x86_64.rpm                                                                         837 kB/s | 105 kB     00:00   
(4/17): apr-util-openssl-1.6.1-6.el8.x86_64.rpm                                                                 1.0 MB/s |  27 kB     00:00   
(5/17): centos-logos-httpd-80.5-2.el8.noarch.rpm                                                                638 kB/s |  24 kB     00:00   
(6/17): httpd-filesystem-2.4.37-16.module_el8.1.0+256+ae790463.noarch.rpm                                       635 kB/s |  35 kB     00:00   
(7/17): httpd-tools-2.4.37-16.module_el8.1.0+256+ae790463.x86_64.rpm                                            1.3 MB/s | 103 kB     00:00   
(8/17): mod_http2-1.11.3-3.module_el8.1.0+213+acce2796.x86_64.rpm                                               2.3 MB/s | 158 kB     00:00   
(9/17): nginx-filesystem-1.14.1-9.module_el8.0.0+184+e34fea82.noarch.rpm                                        538 kB/s |  24 kB     00:00   
(10/17): httpd-2.4.37-16.module_el8.1.0+256+ae790463.x86_64.rpm                                                 8.6 MB/s | 1.7 MB     00:00   
(11/17): php-7.2.11-2.module_el8.1.0+209+03b9a8ff.x86_64.rpm                                                    8.7 MB/s | 1.5 MB     00:00   
(12/17): php-common-7.2.11-2.module_el8.1.0+209+03b9a8ff.x86_64.rpm                                             4.0 MB/s | 655 kB     00:00   
(13/17): php-mysqlnd-7.2.11-2.module_el8.1.0+209+03b9a8ff.x86_64.rpm                                            3.0 MB/s | 190 kB     00:00   
(14/17): php-fpm-7.2.11-2.module_el8.1.0+209+03b9a8ff.x86_64.rpm                                                 11 MB/s | 1.6 MB     00:00   
(15/17): php-pdo-7.2.11-2.module_el8.1.0+209+03b9a8ff.x86_64.rpm                                                2.2 MB/s | 122 kB     00:00   
(16/17): mailcap-2.1.48-3.el8.noarch.rpm                                                                        1.1 MB/s |  39 kB     00:00   
(17/17): php-cli-7.2.11-2.module_el8.1.0+209+03b9a8ff.x86_64.rpm                                                5.4 MB/s | 3.1 MB     00:00   
Total                                                                                                           4.9 MB/s | 9.5 MB     00:01    
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                        1/1
  Installing       : php-common-7.2.11-2.module_el8.1.0+209+03b9a8ff.x86_64                                                                1/17
  Running scriptlet: httpd-filesystem-2.4.37-16.module_el8.1.0+256+ae790463.noarch                                                         2/17
  Installing       : httpd-filesystem-2.4.37-16.module_el8.1.0+256+ae790463.noarch                                                         2/17
  Installing       : apr-1.6.3-9.el8.x86_64                                                                                                3/17
  Running scriptlet: apr-1.6.3-9.el8.x86_64                                                                                                3/17
  Installing       : apr-util-bdb-1.6.1-6.el8.x86_64                                                                                       4/17
  Installing       : apr-util-openssl-1.6.1-6.el8.x86_64                                                                                   5/17
  Installing       : apr-util-1.6.1-6.el8.x86_64                                                                                           6/17
  Running scriptlet: apr-util-1.6.1-6.el8.x86_64                                                                                           6/17
  Installing       : httpd-tools-2.4.37-16.module_el8.1.0+256+ae790463.x86_64                                                              7/17
  Installing       : php-cli-7.2.11-2.module_el8.1.0+209+03b9a8ff.x86_64                                                                   8/17
  Installing       : php-pdo-7.2.11-2.module_el8.1.0+209+03b9a8ff.x86_64                                                                   9/17
  Installing       : mailcap-2.1.48-3.el8.noarch                                                                                          10/17
  Running scriptlet: nginx-filesystem-1:1.14.1-9.module_el8.0.0+184+e34fea82.noarch                                                       11/17
  Installing       : nginx-filesystem-1:1.14.1-9.module_el8.0.0+184+e34fea82.noarch                                                       11/17
  Installing       : php-fpm-7.2.11-2.module_el8.1.0+209+03b9a8ff.x86_64                                                                  12/17
  Running scriptlet: php-fpm-7.2.11-2.module_el8.1.0+209+03b9a8ff.x86_64                                                                  12/17
  Installing       : centos-logos-httpd-80.5-2.el8.noarch                                                                                 13/17
  Installing       : mod_http2-1.11.3-3.module_el8.1.0+213+acce2796.x86_64                                                                14/17
  Installing       : httpd-2.4.37-16.module_el8.1.0+256+ae790463.x86_64                                                                   15/17
  Running scriptlet: httpd-2.4.37-16.module_el8.1.0+256+ae790463.x86_64                                                                   15/17
  Installing       : php-7.2.11-2.module_el8.1.0+209+03b9a8ff.x86_64                                                                      16/17
  Installing       : php-mysqlnd-7.2.11-2.module_el8.1.0+209+03b9a8ff.x86_64                                                              17/17
  Running scriptlet: httpd-2.4.37-16.module_el8.1.0+256+ae790463.x86_64                                                                   17/17
  Running scriptlet: php-mysqlnd-7.2.11-2.module_el8.1.0+209+03b9a8ff.x86_64                                                              17/17
  Running scriptlet: php-fpm-7.2.11-2.module_el8.1.0+209+03b9a8ff.x86_64                                                                  17/17
  Verifying        : apr-1.6.3-9.el8.x86_64                                                                                                1/17
  Verifying        : apr-util-1.6.1-6.el8.x86_64                                                                                           2/17
  Verifying        : apr-util-bdb-1.6.1-6.el8.x86_64                                                                                       3/17
  Verifying        : apr-util-openssl-1.6.1-6.el8.x86_64                                                                                   4/17
  Verifying        : centos-logos-httpd-80.5-2.el8.noarch                                                                                  5/17
  Verifying        : httpd-2.4.37-16.module_el8.1.0+256+ae790463.x86_64                                                                    6/17
  Verifying        : httpd-filesystem-2.4.37-16.module_el8.1.0+256+ae790463.noarch                                                         7/17
  Verifying        : httpd-tools-2.4.37-16.module_el8.1.0+256+ae790463.x86_64                                                              8/17
  Verifying        : mod_http2-1.11.3-3.module_el8.1.0+213+acce2796.x86_64                                                                 9/17
  Verifying        : nginx-filesystem-1:1.14.1-9.module_el8.0.0+184+e34fea82.noarch                                                       10/17
  Verifying        : php-7.2.11-2.module_el8.1.0+209+03b9a8ff.x86_64                                                                      11/17
  Verifying        : php-cli-7.2.11-2.module_el8.1.0+209+03b9a8ff.x86_64                                                                  12/17
  Verifying        : php-common-7.2.11-2.module_el8.1.0+209+03b9a8ff.x86_64                                                               13/17
  Verifying        : php-fpm-7.2.11-2.module_el8.1.0+209+03b9a8ff.x86_64                                                                  14/17
  Verifying        : php-mysqlnd-7.2.11-2.module_el8.1.0+209+03b9a8ff.x86_64                                                              15/17
  Verifying        : php-pdo-7.2.11-2.module_el8.1.0+209+03b9a8ff.x86_64                                                                  16/17
  Verifying        : mailcap-2.1.48-3.el8.noarch                                                                                          17/17

  php-7.2.11-2.module_el8.1.0+209+03b9a8ff.x86_64                         php-mysqlnd-7.2.11-2.module_el8.1.0+209+03b9a8ff.x86_64              
  apr-util-bdb-1.6.1-6.el8.x86_64                                         apr-util-openssl-1.6.1-6.el8.x86_64                                  
  php-fpm-7.2.11-2.module_el8.1.0+209+03b9a8ff.x86_64                     apr-1.6.3-9.el8.x86_64                                               
  apr-util-1.6.1-6.el8.x86_64                                             centos-logos-httpd-80.5-2.el8.noarch                                 
  httpd-2.4.37-16.module_el8.1.0+256+ae790463.x86_64                      httpd-filesystem-2.4.37-16.module_el8.1.0+256+ae790463.noarch        
  httpd-tools-2.4.37-16.module_el8.1.0+256+ae790463.x86_64                mod_http2-1.11.3-3.module_el8.1.0+213+acce2796.x86_64                
  nginx-filesystem-1:1.14.1-9.module_el8.0.0+184+e34fea82.noarch          php-cli-7.2.11-2.module_el8.1.0+209+03b9a8ff.x86_64                  
  php-common-7.2.11-2.module_el8.1.0+209+03b9a8ff.x86_64                  php-pdo-7.2.11-2.module_el8.1.0+209+03b9a8ff.x86_64                  


systemctl start httpd;systemctl enable httpd
systemctl stop firewalld; systemctl disable firewalld

vi /etc/php.ini

short_open_tag = On

systemctl restart httpd


php index.php
PHP Fatal error:  Interface 'JsonSerializable' not found in /var/www/html/nextcloud/lib/private/L10N/L10NString.php on line 33
<div class="error error-wide">

yum install php-json

Internal Server Error

The server was unable to complete your request.

If this happens again, please send the technical details below to the server administrator.

More details can be found in the server log.
Technical details

    Remote Address:
    Request ID: XmvgGqSGy9gldimeYXhtgAAAAAA

chown apache.apache -R nextcloud/

    PHP module zip not installed.

    Please ask your server administrator to install the module.

    PHP module dom not installed.

    Please ask your server administrator to install the module.

    PHP module XMLWriter not installed.

    Please ask your server administrator to install the module.

    PHP module XMLReader not installed.

    Please ask your server administrator to install the module.

    PHP module libxml not installed.

    Please ask your server administrator to install the module.

    PHP module mbstring not installed.

    Please ask your server administrator to install the module.

    PHP module GD not installed.

    Please ask your server administrator to install the module.

    PHP module SimpleXML not installed.

    Please ask your server administrator to install the module.

    PHP modules have been installed, but they are still listed as missing?

    Please ask your server administrator to restart the web server.

yum install php-zip php-dom php-XMLWriter php-XMLReader php-libxml php-mbstring php-gd php-SimpleXML
Last metadata expiration check: 0:02:48 ago on Fri 13 Mar 2020 03:33:26 PM EDT.
No match for argument: php-XMLWriter
No match for argument: php-XMLReader
Package php-common-7.2.11-2.module_el8.1.0+209+03b9a8ff.x86_64 is already installed.
No match for argument: php-SimpleXML
Error: Unable to find a match: php-XMLWriter php-XMLReader php-SimpleXML

yum install php-zip php-dom php-xml php-libxml php-mbstring php-gd

systemctl enable mysqld;systemctl start mysqld

mysql> create database nextclouddb;
Query OK, 1 row affected (0.22 sec

mysql> CREATE USER nextclouduser@localhost IDENTIFIED by "somepass";
Query OK, 0 rows affected (0.20 sec)

mysql> grant all privileges on nextclouddb.* to nextclouduser@localhost;
Query OK, 0 rows affected (0.18 sec)

Gateway Timeout

The gateway did not receive a timely response from the upstream server or application.



install, nextcloud, centos, yum, wget, unzip, https, download, server, releases, zip, php, mysqlnd, json, dom, xml, libxml, mbstring, gd, mysql, metadata, expiration, fri, mar, pm, edt, dependencies, resolved, architecture, repository, installing, _, module_el, ff, appstream, apr, util, logos, httpd, noarch, ae, filesystem, mod_http, acce, nginx, fea, cli, pdo, mailcap, baseos, bdb, openssl, fpm, enabling, module, streams, transaction, summary, packages, installed, ok, downloading, rpm, mb, kb, succeeded, preparing, scriptlet, verifying, systemctl, enable, firewalld, disable, vi, etc, ini, short_open_tag, restart, whitescreen, index, fatal, interface, jsonserializable, var, www, html, lib, nstring, div, quot, unable, technical, administrator, xmvggqsgy, gldimeyxhtgaaaaaa, chown, apache, xmlwriter, xmlreader, simplexml, modules, listed, mysqld, database, nextclouddb, query, user, nextclouduser, localhost, identified, somepass, rows, privileges, gateway, timeout, timely, upstream, nextadmin,

Latest Articles

  • RTL8821AU Setup Configure Wifi Realtek 8821 in Linux Debian Mint Ubuntu Howto
  • How To Tell Which Repository a Package Comes From Debian Mint Ubuntu
  • How To Reload All Kernel Modules And List Required Moduels for Each Device - Linux Mint Debian Ubuntu Troubleshooting
  • Debian Ubuntu Mint How To Change Default Display Manager
  • Ubuntu Mint Debian Howto Execute Command / Script / Program Upon Wakeup From Sleep
  • Linux Debian Mint Ubuntu How To Add Non-Free Repositories and Contrib
  • Debian Ubuntu Mint DHCP dhclient quits and how to make it persistent if first attempt to get DHCP lease fails
  • ssh Too many authentication failures not prompting for password
  • LightDM Mint Ubuntu Debian won't start errors Nvidia Graphics
  • WARNING: Unable to determine the path to install the libglvnd EGL vendor library config files. Check that you have pkg-config and the libglvnd development libraries installed, or specify a path with --glvnd-egl-config-path. Linux Ubuntu Mint Debian E
  • How To Upgrade Linux Mint 18.2 to 18.3 to 19.x and 20.x
  • MP3s Won't Play / ID3 Version 2.4 Issues in Cars and Other MP3 Players/CDs/DVDs Solution
  • LXC Containers LXD How to Install and Configure Tutorial Ubuntu Debian Mint
  • GlusterFS HowTo Tutorial For Distributed Storage in Docker, Kubernetes, LXC, KVM, Proxmox
  • Ubuntu Mint audio output not working pulseaudio "pulseaudio[13710]: [pulseaudio] sink-input.c: Failed to create sink input: too many inputs per sink."
  • How To Shrink Dynamically Allocated VM QEMU KVM VMware Disk Image File
  • How To Enable Linux Swapfile Instead of Partition Ubuntu Mint Debian Centos
  • 404 Not Found [IP: 80] apt update Debian 11 Bullseye Solution The repository ' bullseye/updates Release' does not have a Release file.
  • WARNING: Can't download daily.cvd from freshclam clamav error solution
  • (firefox:9562): LIBDBUSMENU-GLIB-WARNING **: Unable to get session bus: Failed to execute child process "dbus-launch" (No such file or directory) Solution