Zend.htaccess configuration does not work in Ubuntu

Hi, I am running Ubuntu 10.04 LTS - Lucid Lynx I am creating a project

zf create project test

this command automatically creates a .htaccess file that does not work I configured my web server (Apache2) by editing / etc / apache 2 / sites-available / default file installation

<Directory /var/www/>
 Options Indexes FollowSymLinks MultiViews
 AllowOverride All
 Order allow,deny
 allow from all
</Directory>

and I get the following error

Internal Server Error
/**************************************************************************************/
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache/2.2.14 (Ubuntu) Server at localhost Port 80
/****************************************************************************************/

Please help me

+3
source share
1 answer

You did not load mod_rewrite, so Apache does not know what the RewriteEngine string means.

On ubuntu, you can probably do (as root):

a2enmod rewrite
apache2ctl restart

Otherwise, you will have to edit the apache configuration and add such a line to load the module

LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so

.

+16

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


All Articles