With a completely new install on Centos 7.6, which worked at first when setting it up, ultimately the same empty webpage ended up happening after I rebooted the server, following all basic configurations in the Admin UI were completed, and all basic and extended checks passed.
I now suspect that the blank web UI has something to do with the fact that I use Letsencrypt certificates and virtual hosts — as recommended by the Letsencrypt documentation.
The daily Summary Email from FileCloud is still being delivered, as before, but, also as before, it shows this:
Error: —Mod Rewrite Apache Configuration Setup Failed
To reiterate, when I first installed FileCloud the UI was working. Then after I rebooted, after all configurations were completed, the UI became blank.
According to your documentation at Mod Rewrite Setup Check Fails during Install there are only three things to verify in case of the above error message:
- Verify that the mod_rewrite apache module is properly installed and activated
- In Apache configuration file for the site, ensure “AllowOverride All” is set correctly for the site.
- Ensure, that the Apache .htaccess file is present in the WWW Root (say /var/www or c:\xampp\htdocs)
These are all true in my server (though directories differ because I’m not using XAMPP).
Here is the apache run configuration:
[root@filecloud httpd]# httpd -t -D DUMP_RUN_CFG
ServerRoot: "/etc/httpd"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/etc/httpd/logs/error_log"
Mutex mpm-accept: using_defaults
Mutex authdigest-opaque: using_defaults
Mutex proxy-balancer-shm: using_defaults
Mutex rewrite-map: using_defaults
Mutex authdigest-client: using_defaults
Mutex ssl-stapling: using_defaults
Mutex proxy: using_defaults
Mutex authn-socache: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="/run/httpd/" mechanism=default
PidFile: "/run/httpd/httpd.pid"
Define: _RH_HAS_HTTPPROTOCOLOPTIONS
Define: DUMP_RUN_CFG
User: name="apache" id=48
Group: name="apache" id=48
Here are my vhosts:
[root@filecloud ~]# httpd -D DUMP_VHOSTS
VirtualHost configuration:
*:443 is a NameVirtualHost
default server cans-mci.com (/etc/httpd/conf.d/cans-mci.com-le-ssl.conf:2)
port 443 namevhost cans-mci.com (/etc/httpd/conf.d/cans-mci.com-le-ssl.conf:2)
alias cans-mci.com
port 443 namevhost filecloud.cans-mci.com (/etc/httpd/conf.d/ssl.conf:56)
port 443 namevhost www.cans-mci.com (/etc/httpd/conf.d/www.cans-mci.com-le-ssl.conf:2)
alias www.cans-mci.com
*:80 is a NameVirtualHost
default server cans-mci.com (/etc/httpd/conf.d/cans-mci.com.conf:1)
port 80 namevhost cans-mci.com (/etc/httpd/conf.d/cans-mci.com.conf:1)
alias cans-mci.com
port 80 namevhost www.cans-mci.com (/etc/httpd/conf.d/www.cans-mci.com.conf:1)
alias www.cans-mci.com
Notice that I did not create the vhost
filecloud.cans-mci.com
I don’t know where its configuration resides. I wonder if your scripts depend on it. Notice also that it points to /etc/httpd/conf.d/ssl.conf, so here are a few lines from that file that might be relevant to this discussion:
SSLCertificateFile /etc/pki/tls/certs/localhost.crt
SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
Those are NOT the Letscencrypt cert and key. I did not create them. So, although my server name is cans-mci.com and there is a vhost for cans-mci.com, I now wonder if FileCloud uses the filecloud subdomain with the filecloud.cans-mci.com vhost, which points to /etc/httpd/conf.d/ssl.conf.
So I’m wondering if the existence of the cans-mci.com vhost is messing up the operation of your scripts.
I want to provide complete information here for the record. Here is the file listing of /etc/httpd/conf.d
drwxr-xr-x. 2 root root 236 Jan 15 06:25 .
drwxr-xr-x. 5 root root 92 Jan 15 06:25 ..
-rw-r--r--. 1 root root 2926 Nov 16 16:18 autoindex.conf
-rw-r--r--. 1 root root 283 Jan 15 06:25 cans-mci.com.conf
-rw-r--r--. 1 root root 437 Jan 15 06:25 cans-mci.com-le-ssl.conf
-rw-r--r--. 1 root root 625 Oct 1 13:50 php.conf
-rw-r--r--. 1 root root 366 Nov 16 16:19 README
-rw-r--r--. 1 root root 9443 Nov 16 14:44 ssl.conf
-rw-r--r--. 1 root root 1252 Nov 16 14:44 userdir.conf
-rw-r--r--. 1 root root 824 Nov 16 14:44 welcome.conf
-rw-r--r--. 1 root root 295 Jan 15 06:25 www.cans-mci.com.conf
-rw-r--r--. 1 root root 445 Jan 15 06:25 www.cans-mci.com-le-ssl.conf
These files are loaded because of this declaration in /etc/httpd/conf/httpd.conf:
# Load config files in the "/etc/httpd/conf.d" directory, if any.
IncludeOptional conf.d/*.conf
For the record here are the contents of /etc/httpd/conf.d/cans-mci.com.conf
<VirtualHost *:80>
ServerName cans-mci.com
DocumentRoot "/var/www/html"
ServerAlias cans-mci.com
# Other directives here
RewriteEngine on
RewriteCond %{SERVER_NAME} =cans-mci.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
For the record, here are the contents of /etc/httpd/conf.d/cans-mci.com-le-ssl.conf
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName cans-mci.com
DocumentRoot "/var/www/html"
ServerAlias cans-mci.com
# Other directives here
SSLCertificateFile /etc/letsencrypt/live/cans-mci.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/cans-mci.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateChainFile /etc/letsencrypt/live/cans-mci.com/chain.pem
</VirtualHost>
</IfModule>
For the record here is the ServerName definition in /etc/httpd/conf/httpd.conf:
ServerName cans-mci.com
And here is the section of the same file where AllowOverride All is written (with standard comments removed):
# Further relax access to the default document root:
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
Here is the first part of /var/www/html/.htaccess:
RewriteEngine On
RewriteRule .*\.gz$ - [F,NC]
#--------------------------------------------------
# Let's Encrypt Support
RewriteRule ^.well-known/(.*)$ .well-known/$1 [L]
#--------------------------------------------------
#RewriteRule server-status server-status [L]
#--------------------------------------------------
# ADVANCED CUSTOMIZATION SECTION - START
#--------------------------------------------------
#Use this rule for customization for Apache 2.4
RewriteRule ^custom/css/(.*)$ resources/customization/css/$1 [END]
#Use this rule for customization for Apache 2.2
#RewriteRule ^custom/css/(.*)$ resources/customization/css/$1 [L]
#RewriteCond %{REQUEST_FILENAME} !-f
#--------------------------------------------------
# ADVANCED CUSTOMIZATION SECTION - END
#--------------------------------------------------
#Route all requests to our handler
RewriteRule ^(.*)/?$ public/index.php [L]
I’m sorry that I have very low expectations that I will get a useful response after this post, but I’m putting down all this information in case others eventually can benefit from it.
I am going to see if removing the vhosts resolves this problem. A result of adding them seems to be overlapping, conflicting, and/or mislaid apache declarations that screw up FileCloud’s hardcoded configuration. Anyway, that’s my theory in the absence of additional feedback from FileCloud engineers.