4571 Posts in 1381 Topics by 1376 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1310 Views |
-
Getting it to run...

18 December 2008 at 1:56am
SilverStripe looks very interesting but I have struggled for some hours to getting it to run.
During installation it says that it can not determine if mod_rewrite is running. I found a post in this forum on how to write a PHP snippet to determine if it is running. I tried the snippet and it seems to be running.
This is as far as I get:
Trying any of the links, e.g. Home results in a 404 error.
Any suggestions to get me going would be greatly appreciated.
-
Re: Getting it to run...

18 December 2008 at 4:27am
mod_rewrite will try to redirect the links on your website to: -
http://www.rosetta.no/silver/sapphire/main.php?url=home
http://www.rosetta.no/silver/sapphire/main.php?url=about-us
http://www.rosetta.no/silver/sapphire/main.php?url=contact-us
http://www.rosetta.no/silver/sapphire/main.php?url=adminAll but the home page work directly so it looks like you have a rewrite issue. Have a look at what your websites ".htaccess" file contains. It should be in your root directory, though to see it you will have to make sure you can view hidden files.
hth,
Ben
-
Re: Getting it to run...

18 December 2008 at 6:44am
Thanks a lot for answering, MonkeyBen!
This is the content of my .htaccess file ( in my www directory ) :
ErrorDocument 404 http://www.rosetta.no/feil/index.html
<IfModule mod_rewrite.c>
SetEnv MOD_REWRITE_ENABLED 1
</IfModule>The last three lines were added to find out that mod_rewrite was active.
This is a shared host.
There is no .htaccess file in my root dir, the file above is in /www
-
Re: Getting it to run...

18 December 2008 at 11:01am
.htaccess should be in /www, so that's fine.
modify it to:
### SILVERSTRIPE START ###
<IfModule mod_dir.c>
DirectorySlash Off
</IfModule><Files *.ss>
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Files>RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]### SILVERSTRIPE END ###
-
Re: Getting it to run...

18 December 2008 at 2:00pm
I'm really sorry, but it still wont work...
Putting that .htaccess in /www still did not help (although my other online apps in other direcories stopped working)
Putting it in /www/silver (replacing the ss version) also did not work ( i then used RewriteBaseith them /silver )
The host is a well known provider, I have 25+ domains with them and run Joomla, ecommerce and even CRM with no problems.
Oh, well. I'm not ready to give up yet, if you guys till have the patience with me
-
Re: Getting it to run...

21 December 2008 at 8:01am
I'll try a bump on this thread
I still have not found a solution to getting SS to work.
If you see MonkeyBens post above (#2 in the thread) all direct links seem to work, except home.
I've tried the suggestions with .htaccess.
If I use the direct link to log in, I can edit the pages, but not save them.
I'd really appreciate any further suggestions, as I am completely stuck at the moment.
| 1310 Views | ||
|
Page:
1
|
Go to Top |



