MineWebCMS icon indicating copy to clipboard operation
MineWebCMS copied to clipboard

AllowOverride All Failure in verify-install.php

Open pthoelken opened this issue 7 years ago • 15 comments

Hello Again,

I have a little strange problem. While the installing process, the verify-install.php told me, that I must enable "URL ReWrite" - but this is now enabled. I have also already restarted the whole server.

My virtual host section for my subdomain (000-default.conf)

<VirtualHost mcc.XXX.de:80>
        ServerName XXX.XXX.de
        ServerAdmin webmaster@localhost
        DocumentRoot /opt/applications/minecraft-webconsole

        RewriteEngine On
        RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]

        <Directory "/opt/applications/minecraft-webconsole">
                Options Indexes FollowSymLinks
                AllowOverride All
                Require all granted
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/XXX.XXX.de/error.log
        CustomLog ${APACHE_LOG_DIR}/XXX.XXX.de/access.log combined

        Header always set Strict-Transport-Security "max-age=15552000; includeSubdomains;"

        LogLevel info ssl:warn
</VirtualHost>

My virtual host section for my subdomain (000-default.conf)

<VirtualHost XXX.XXX.de:443>
                ServerAdmin webmaster@localhost
                ServerName XXX.XXX.de

                DocumentRoot /opt/applications/minecraft-webconsole

                 <Directory "/opt/applications/minecraft-webconsole">
                        Options Indexes FollowSymLinks
                        AllowOverride All
                        Require all granted
                </Directory>

                Header always set Strict-Transport-Security "max-age=15552000; includeSubdomains;"

                ErrorLog ${APACHE_LOG_DIR}/XXX.XXX.de/error.log
                CustomLog ${APACHE_LOG_DIR}/XXX.XXX.de/access.log combined


                SSLEngine on

                SSLCertificateFile      /etc/letsencrypt/live/XXX/fullchain.pem
                SSLCertificateKeyFile /etc/letsencrypt/live/XXX/privkey.pem

                <FilesMatch "\.(cgi|shtml|phtml|php)$">
                        SSLOptions +StdEnvVars
                </FilesMatch>

                <Directory /usr/lib/cgi-bin>
                        SSLOptions +StdEnvVars
                </Directory>

        </VirtualHost>

and rewrite module is also enabled.

image

But your installer told me still, that I should enabled this.

image

AccessFileName is also configured: image

Sorry, but I have really no Idea - Can do you help me in this case? :/

pthoelken avatar Sep 07 '18 06:09 pthoelken

Do you have .htaccess file in your files?

Eywek avatar Sep 09 '18 18:09 Eywek

Yes - check the screenshot below.

image

pthoelken avatar Sep 09 '18 18:09 pthoelken

If you go to site.fr/test-url-rewrite did you have a 404 error page?

Eywek avatar Sep 09 '18 18:09 Eywek

As you can see, nope. The Domain is mcc.knusperbude.de

image

pthoelken avatar Sep 09 '18 18:09 pthoelken

Try to replace this line https://github.com/MineWeb/MineWebCMS/blob/master/app/webroot/verif-install.php#L248 to:

$compatible['rewriteUrl'] = true;

Eywek avatar Sep 09 '18 18:09 Eywek

Oh, okey. Now it looks better. I will check the installation and will give you a feedback asap.

pthoelken avatar Sep 09 '18 18:09 pthoelken

Hmm.. is this caused by mod_rewrite? The database would successfully installed.

image

image

pthoelken avatar Sep 09 '18 19:09 pthoelken

Yep :/

Eywek avatar Sep 10 '18 08:09 Eywek

Damn ... but what is the Solutions for this? I've already installed and enabled the mod_rewrite, as you can see in my posts in top of this topic. Do you have any idea? Thanks in advanced.

pthoelken avatar Sep 10 '18 08:09 pthoelken

Any updates in this case? I'm very need to use your cms because it looks beautiful. After it works, I will translate it in german language. :-)

pthoelken avatar Sep 13 '18 09:09 pthoelken

No updates in this case?

pthoelken avatar Sep 06 '19 18:09 pthoelken

I'm facing the same problem, I have all htaccess-es and AccessFileName set up, and mod rewrite seems to be enabled, but going at /test-url-rewrite I get a 404 Not Found. Any updates?

moeenio avatar Apr 25 '20 15:04 moeenio

Maybe you can try the latest release

Eywek avatar Dec 23 '20 19:12 Eywek

Options Indexes FollowSymLinks This is your issue, your not having apache follow the directories.

If you use "Options Indexes FollowSymLinks MultiViews" with "LoadModule ssl_module modules/mod_ssl.so" at the very top of the file, then it should resolve your issue image

wildmaster84 avatar May 02 '21 19:05 wildmaster84

Does the problem persist?

Sytorex avatar Dec 06 '21 20:12 Sytorex