After entering in setup information and clicking continue (or finish or whatever the button is), NextCloud does something then presents me with a page that says “Hmmm…can’t reach this page”. The Apache log states “AH01797: client denied by server configuration: /var/www/html/nextcloud/data/htaccesstest.txt”.
The best I can come up with is something todo with the htaccess file but it is identical to a working NextCould copy on another machine that I am trying to move away from.
NextCloud does do something as it creates the config.php file and I see the information that I entered in it. However, when I close the browser nd go back to the NextCloud Webpage, it is as if it doesn’t recognize the config.php file and asks me to enter all the information again. If I do, it tells me the user already exists. So it has to be reading the config.php file and/or connecting to the DB.
WordPress, YouPHPTube and other web apps work.
<<Here’s my setup>>
Ubuntu 18.04
mysql Ver 14.14 Distrib 5.7.29, for Linux (x86_64) using EditLine wrapper
PHP 7.2
Apache 2.4
I have all the files owned by the apache user (www-data) and all of the files are set to 777 while I try to figure this out.
Attached are my apache2.conf files and the vhost nextcloud.conf
Tearing my hair out here. Thanks in advance.
<<nextcloud.conf VHost file>>
<VirtualHost *:80>
<Directory “/var/www/html/nextcloud”>
Options Indexes FollowSymLinks MultiViews Includes
AllowOverride All
Require all granted
Satisfy any
Allow from all
Options +FollowSymlinks
AllowOverride All
Require all granted
Dav off
SetEnv HOME /var/www/html/nextcloud
SetEnv HTTP_HOME /var/www/html/nextcloud
ServerName nextcloud.thewaldrips.net ServerAlias mycloud.thewaldrips.net DocumentRoot "/var/www/html/nextcloud"<>
Global configuration
#ServerRoot “/etc/apache2”
#Mutex file:${APACHE_LOCK_DIR} default
DefaultRuntimeDir ${APACHE_RUN_DIR}
PidFile ${APACHE_PID_FILE}
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 5
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
HostnameLookups Off
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
IncludeOptional mods-enabled/.load
IncludeOptional mods-enabled/.conf
Include ports.conf
<Directory /usr/share>
AllowOverride None
Require all granted
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
AccessFileName .htaccess
<FilesMatch “^.ht”>
Require all denied
LogFormat “%v:%p %h %l %u %t “%r” %>s %O “%{Referer}i” “%{User-Agent}i”” vhost_combined
LogFormat “%h %l %u %t “%r” %>s %O “%{Referer}i” “%{User-Agent}i”” combined
LogFormat “%h %l %u %t “%r” %>s %O” common
LogFormat “%{Referer}i -> %U” referer
LogFormat “%{User-agent}i” agent
IncludeOptional conf-enabled/.conf
IncludeOptional sites-enabled/.conf
LoadModule rewrite_module modules/mod_rewrite.so
<Directory /var/www/html/nextcloud/>
Satisfy Any