S
S
Sergey Beloventsev2016-06-02 11:55:56
Yii
Sergey Beloventsev, 2016-06-02 11:55:56

Why does the installation fail on ubuntu?

here is the gamer.lc.conf file

<VirtualHost *:80>
            ServerAdmin [email protected]
            ServerName gamer.lc
            ServerAlias www.gamer.lc
            documentRoot /var/www/gamer.lc
            <Directory /var/www/gamer.lc >
                Options Indexes FollowSymlinks
                AllowOverride All
                Require all granted
            </Directory>
            ErrorLog /var/www/error.log
            CustomLog /var/www/access.log combined
    
    </VirtualHost>

sudo a2enmod rewrite
connected and apache is overloaded after that here is htaccess
Options +FollowSymLinks
    IndexIgnore */*
    RewriteEngine on
    
    # if request begins with /admin remove admin and ad /backend/web/
    RewriteCond %{REQUEST_URI} ^/admin
    RewriteRule ^admin/?(.*) /backend/web/$1
    
    # other requests add /frontend/web/$1
    RewriteCond %{REQUEST_URI} !^/(frontend/web|backend/web|admin)
    RewriteRule (.*) /frontend/web/$1
    
    # if frontend request
    RewriteCond %{REQUEST_URI} ^/frontend/web
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /frontend/web/index.php
    
    # if backend request
    RewriteCond %{REQUEST_URI} ^/backend/web
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /backend/web/index.php

gives 500 error here is the log
[Thu Jun 02 10:59:56.290501 2016] [core:alert] [pid 1397] [client 127.0.0.1:43767] /var/www/gamer.lc/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration

please explain where i am wrong

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anatoly Medvedev, 2016-06-02
@balamyt92

It's written
I work as a translator:
I have little to do with Apache and chalk, but I think the module needs to be connected. How? so.

A
Anton Ulanov, 2016-06-02
@antonsr98

look at the apache config for a comment on the line with this module. and how did you restart apache?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question