Comments on How to Install Nextcloud with Nginx and PHP 7.3 on CentOS 8

In this tutorial, we show you how to install Nextcloud 17 with the Nginx web server, PHP 7.3 and MariaDB database on a CentOS 8 server. We will install Nextcloud and secure it with a free Let's Encrypt SSL certificate.

5 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: bartabbas

Thanx for the tutorial

At step 3, I updated php.ini this way :

cgi.fix_pathinfo = 0

and not

cgi.fixpathinfo = 0

By: Rob

Tried a bunch of guides but this was the first one that worked nicely and was clean to follow through.

Thou for some reason I don't get the app-page working. It shows My Apps, Active Apps which includes the preinstalled..but no appstore or apps I can install.

Any clues? 

By: Marek

Duplicating code in nextcloud.conf# Add headers to serve security related headers (It is intended to # have those duplicated to the ones above) # Before enabling Strict-Transport-Security headers please read into # this topic first. #add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;" always; # # WARNING: Only add the preload option once you read about # the consequences in https://hstspreload.org/. This option # will add the domain to a hardcoded list that is shipped # in all major browsers and getting removed from this list # could take several months. add_header Referrer-Policy "no-referrer" always; add_header X-Content-Type-Options "nosniff" always; add_header X-Download-Options "noopen" always; add_header X-Frame-Options "SAMEORIGIN" always; add_header X-Permitted-Cross-Domain-Policies "none" always; add_header X-Robots-Tag "none" always; add_header X-XSS-Protection "1; mode=block" always;

By: Janno

CentOS-8 - AppStream

Name                                                         Stream                                                          Profiles                                                                          Summary

php                                                          7.2 [d]                                                         common [d], devel, minimal                                                        PHP scripting language

php                                                          7.3                                                             common [d], devel, minimal                                                        PHP scripting language

 

Remi's Modular repository for Enterprise Linux 8 - x86_64

Name                                                         Stream                                                          Profiles                                                                          Summary

php                                                          remi-7.2                                                        common [d], devel, minimal                                                        PHP scripting language

php                                                          remi-7.3                                                        common [d], devel, minimal                                                        PHP scripting language

php                                                          remi-7.4                                                        common [d], devel, minimal                                                        PHP scripting language

 

Isn't the php 7.3 part of AppStream? So no Remi repo is needed. Also if you are using remi then it would make sence to use atleast latest version of php which is 7.4

 

By: Badr AlSaleh

Dear Muhammad,

I followed your procuedure to the point but after nextcloued instllation was completed I am not able to go any further as I am getting these error messages in the log file:

021/10/24 19:00:12 [error] 2869#0: *8 open() "/usr/share/nginx/html/index.php/core/apps/recommended" failed (20: Not a directory)

2021/10/24 19:02:00 [error] 2869#0: *11 open() "/usr/share/nginx/html/index.php/login" failed (20: Not a directory)

Your help is very much appreciated