Without "AllowOverride MultiViews" in the VirtualHost,i can't install drupal 8 cms

youyoums

Verified User
Joined
Jul 21, 2011
Messages
37
Without "AllowOverride MultiViews" in the VirtualHost,i can't install drupal 8 cms

I have managed to install directadmin 1.5 on the centos 7.2.1511 with Apache 2.4.18+ Php 7.0.4+ MariaDB 10.1.12+suphp,After installing Drupal 8.0.5 on my host, the toolbar css wasn't showing up. The admin links were showing as a list and a lot of the options weren't available because files from /sites/default/files were returning a 500 error[Through the Chrome browser:Failed to load resource: the server responded with a status of 500 (Internal Server Error)]. However,when I went to Administration > Configuration > Development > Performance and turned off Aggregate CSS files, the css started appearing.Drupal 8 is now explicitly setting Options -MultiViews in these .htaccess files, which is not allowed in some configurations without "AllowOverride MultiViews" in the VirtualHost. The commonly set "AllowOverride All" does not actually include MultiViews, which can cause further confusion.I don’t know how to set up mod_rewrite, The Apache Virtualhost configuration is:
<Directory />
Options All
AllowOverride All
</Directory>

<Directory /home>
AllowOverride All
Options -MultiViews -Indexes +FollowSymLinks +IncludesNoExec +Includes
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>

Include /etc/httpd/conf/extra/httpd-hostname.conf

<Directory /var/www/cgi-bin>
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
 
Without "AllowOverride MultiViews" in the VirtualHost,i can't install drupal 8 cms

I have managed to install directadmin 1.5 on the centos 7.2.1511 with Apache 2.4.18+ Php 7.0.4+ MariaDB 10.1.12+suphp,After installing Drupal 8.0.5 on my host, the toolbar css wasn't showing up. The admin links were showing as a list and a lot of the options weren't available because files from /sites/default/files were returning a 500 error[Through the Chrome browser:Failed to load resource: the server responded with a status of 500 (Internal Server Error)]. However,when I went to Administration > Configuration > Development > Performance and turned off Aggregate CSS files, the css started appearing.Drupal 8 is now explicitly setting Options -MultiViews in these .htaccess files, which is not allowed in some configurations without "AllowOverride MultiViews" in the VirtualHost. The commonly set "AllowOverride All" does not actually include MultiViews, which can cause further confusion.I don’t know how to set up mod_rewrite, The Apache Virtualhost configuration is:
<Directory />
Options All
AllowOverride All
</Directory>

<Directory /home>
AllowOverride All
Options -MultiViews -Indexes +FollowSymLinks +IncludesNoExec +Includes
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>

Include /etc/httpd/conf/extra/httpd-hostname.conf

<Directory /var/www/cgi-bin>
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
 
Hi,
I had the same problem.
Without CGI enabled there is problem f.e. with owncloud.
I workaround it by changeing syntax in
/etc/httpd/conf/extra/httpd-hostname.conf
/etc/httpd/conf/extra/httpd-directories.conf

I think there is problem with mixed syntax from apache 2.2 and 2.4.

Changes below (The old syntax is commented out) :

/etc/httpd/conf/extra/httpd-directories.conf
Code:
<Directory />
        Options All
        AllowOverride All
</Directory>

<Directory /home>
        AllowOverride All
        Options -MultiViews -Indexes +FollowSymLinks +IncludesNoExec +Includes
        <Limit GET POST OPTIONS PROPFIND>
                # Order allow,deny
                # Allow from all
                Require all granted
        </Limit>
        <LimitExcept GET POST OPTIONS PROPFIND>
                # Order deny,allow
                # Deny from all
                Require all denied
        </LimitExcept>
</Directory>

Include /etc/httpd/conf/extra/httpd-hostname.conf

<Directory /var/www/cgi-bin>
        AllowOverride None
        Options None
        # Order allow,deny
        # Allow from all
        Require all granted
</Directory>

DavLockDB "/var/lock/apache2/DavLockDB"

/etc/httpd/conf/extra/httpd-hostname.conf
Code:
<Directory /var/www/html>
        Options +SymLinksIfOwnerMatch +IncludesNoExec
        AllowOverride AuthConfig FileInfo Indexes Limit Options=Includes,IncludesNOEXEC,Indexes,ExecCGI,MultiViews,SymLinksIfOwnerMatch,None

        # Order allow,deny
        # Allow from all
        Require all granted
        <IfModule mod_suphp.c>
                suPHP_Engine On
                suPHP_UserGroup webapps webapps
        </IfModule>
        <IfModule mod_ruid2.c>
                RUidGid webapps webapps
        </IfModule>
        <IfModule mod_lsapi.c>
                lsapi_user_group webapps webapps
        </IfModule>
        <IfModule mod_fcgid.c>
                FcgidWrapper /usr/local/safe-bin/fcgid55.sh .php
          SuexecUserGroup webapps webapps
                <FilesMatch "\.(inc|php|php3|php4|php44|php5|php52|php53|php54|php55|php56|php70|php6|phtml|phps)$">
                        Options +ExecCGI
                        AddHandler fcgid-script .php
                </FilesMatch>
        </IfModule>
</Directory>


Please, repair this with next update.
 
Back
Top