Koozali.org: home of the SME Server

Contribs.org Forums => General Discussion => Topic started by: michaeld on September 12, 2008, 01:28:02 AM

Title: mod_rewrite issues on SME Server 8.0 Beta 1
Post by: michaeld 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.
Title: Re: mod_rewrite issues on SME Server 8.0 Beta 1
Post by: Normando 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
Title: Re: mod_rewrite issues on SME Server 8.0 Beta 1
Post by: cactus 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.
Title: Re: mod_rewrite issues on SME Server 8.0 Beta 1
Post by: Normando 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.