Qual é a sua dúvida?
Configurando ambiente apache para o framework Fabriciojf.com
- Antes de publicar o sistema para baixa de gravações é necessário habilitar o mod_rewrite no Apache.
$ cd /etc/apache2/mods-enabled $ ln -s ../mods-available/rewrite.load rewrite.load
Libere o AllowOverrides no arquivo /etc/apache2/sites-available/default, alterando todas as linhas AllowOverrides para All:
Debian 6 ou inferior
$ nano /etc/apache2/sites-available/default
<Directory /> Options FollowSymLinks AllowOverride All </Directory>
<Directory /var/www/html/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory>
Debian 7 ou superior
$ nano /etc/apache2/sites-available/000-default.conf <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/html <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory /var/www/html/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost>
Reinicie o Apache2 para aplicar as alterações
$ service apache2 restart