Apache modules installed but don't seem to load on Ubuntu

I am new to Linux. Got VPS setup yesterday, installed Apache2, PHP5 and MySQL.

When I do apache2 -l, I get the following:

Compiled in modules:
  core.c
  mod_log_config.c
  mod_logio.c
  prefork.c
  http_core.c
  mod_so.c

When I do sudo a2enmod rewrite, I get the following:

Module rewrite already enabled

And rewrite.loadis located in /etc/apache2/mods-enabled.

Can anyone tell what happened?

+3
source share
1 answer

ServerFault, , , , , , , Apache .

Apache . " " , . , apache2 . , , Apache , , , , , , Apache. , , , . , , Apache. , , apache2 -l.

, Apache, mod_rewrite, . , Apache . : , // , , . Apache, , LoadModule Apache. , a2enmod: LoadModule . ( , )

, ,

apache2 -M

Apache , Ubuntu init script. - , Apache, , .

+3

Source: https://habr.com/ru/post/1749296/


All Articles