Koozali.org: home of the SME Server

mod_rewrite issues on SME Server 8.0 Beta 1

Offline michaeld

  • 4
  • +0/-0
mod_rewrite issues on SME Server 8.0 Beta 1
« on: September 12, 2008, 01:28:02 AM »
Hi All

I'm testing SilverStripe CMS with SME Server 8.0 Beta 1 for a client and having a few issues.

My main issue is that mod_rewrite is loaded as a module in Apache (httpd.conf) but is not applied for the Primary iBay.

I have issued the command "db accounts setprop Primary AllowOverride All" to allow Override for the Primary iBay. However when I do the install for SilverStripe I get

mod_rewrite doesn't appear to be working.
Make sure:mod_rewrite is enabled in your httpd.conf
AllowOverride is enabled for the current path.

I'm thinking that there must be something else I need to do in-order to get SilverStripe working.

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Re: mod_rewrite issues on SME Server 8.0 Beta 1
« Reply #1 on: September 12, 2008, 03:58:36 AM »
Did you run signal-event? For run mod_rewrite you must enabled followsymlinks

Code: [Select]
db accounts setprop Primary AllowOverride All
db accounts setprop Primary FollowSymLinks enabled
signal-event ibay-modify Primary

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: mod_rewrite issues on SME Server 8.0 Beta 1
« Reply #2 on: September 12, 2008, 09:04:32 AM »
Did you run signal-event? For run mod_rewrite you must enabled followsymlinks
Are you sure? This should only be used if you are really using symlinks and rely on them in your tree that is exposed to the web, otherwise it should not be necessary AFAIK.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Re: mod_rewrite issues on SME Server 8.0 Beta 1
« Reply #3 on: September 12, 2008, 03:48:57 PM »
Not 100% sure, but I remember (just now I not have a server to test) I must add FollowSymLinks at the top of .htaccess file (also with RewriteEngine on) to work.

Quote
Options +FollowSymlinks
RewriteEngine on

http://corz.org/serv/tricks/htaccess2.php

Because SME 7.x handle FollowSymLinks through system database. then we can set this parameter via db.

So, setting db as above, he must add only RewriteEngine on to the top of .htaccess file, and then the rules.