sNews Forum

Previous sNews versions => sNews 1.5 Final => sNews 1.5 Problem Solving => Topic started by: lessismore on March 10, 2007, 07:02:53 pm

Title: mod_rewrite and AllowOverride for apache2 configs on ubuntu 6.10
Post by: lessismore on March 10, 2007, 07:02:53 pm
Got snews 1.5.31 working in a subdirectory on a local ubuntu 6.10 desktop install with apache2.

FYI on ubuntu with apache2:

  mod_rewrite is not loaded by default -- and -- AllowOverride is set to None by default.

Change these with:

  sudo a2enmod rewrite
  cd /etc/apached2/sites-enabled
  sudo vi 000-default

in the 000-default file, AllowOverride needs to be set to All in both the / and /var/www sections.

Of course, the .htaccess file in the local snews install dir needs the RewriteBase /subir line.

If there is a better way - would love to hear it ... thanks.