Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Installation Finishes but doesn't work


Go to End


13 Posts   9476 Views

Avatar
Glen

Community Member, 10 Posts

23 July 2007 at 6:42pm

I have installed Silverstripe with the BlackCandy or plain theme and it won't work. The error I get is:

Not Found
The requested URL /httpd/vhlinks/anykey.net.nz/ss/sapphire/main.php was not found on this server.

I managed to get the text of the page which flashed up for a split second after installation. It said:

Installing SilverStripe...

I am now running through the installation steps (this should take about 30 seconds)

If you receive a fatal error, refresh this page to continue the installation
# Creating 'mysite/_config.php'...
# Creating '.htaccess' file...
# Building database schema...
# Checking mod_rewrite works
# ERROR: mod_rewrite not working, redirecting to mod_rewrite test page
I will now try and direct you to rewritetest to troubleshoot mod_rewrite

I also get this in my .htaccess file (I Set the first 2 options myself).

php_value memory_limit 32M
php_value allow_call_time_pass_reference 1

### SILVERSTRIPE START ###

### SILVERSTRIPE END ###

If I put this in:
### SILVERSTRIPE START ###
RewriteEngine On

RewriteRule \.js$ - [L]
RewriteRule \.css$ - [L]
RewriteRule \.png$ - [L]
RewriteRule \.jpg$ - [L]
RewriteRule \.gif$ - [L]
RewriteRule \.php$ - [L]

RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
### SILVERSTRIPE END ###

I still have problems.

Any ideas?

Thanks,
Glen

Avatar
Fuzz10

Community Member, 791 Posts

23 July 2007 at 9:16pm

Edited: 23/07/2007 9:16pm

It seems mod_rewrite is not working.

What kind of Apache Vhosts setup are you running ?

Avatar
Glen

Community Member, 10 Posts

24 July 2007 at 4:47pm

I am hosting on Web Drive - http://webdrive.co.nz/. I'm not sure what they are using. I am hosting a WordPress blog on the same host - http://www.devour.co.nz and it seems to work fine with these lines:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

So I do think mod_rewrite is working at least on my other sites.

Thanks,
Glen

Avatar
Glen

Community Member, 10 Posts

24 July 2007 at 5:08pm

Well I have a WordPress blog (http://devour.co.nz) with the same host - webdrive.co.nz and that is set to use mod_rewrite. This seems to work fine so I am not sure that it is the hosts mod_rewrite that is not working.

Any ideas of what else I could check?

Avatar
Glen

Community Member, 10 Posts

25 July 2007 at 1:58pm

Update: I changed the rewrite rule to be:

RewriteRule .* /ss/sapphire/main.php?url=%1&%{QUERY_STRING} [L]

(Note the addtion of the /ss/ to the path. This makes it look at the root of my sites html for the file instead of previously where it tried to look at the filesystems root path)

Now the site is up:

http://www.anykey.net.nz/ss/

But if I try to get to the admin screen I get:

http://www.anykey.net.nz/ss/admin/

Fatal error: Class 'ViewableData' not found in /home/anykey/public_html/ss/sapphire/core/control/Controller.php on line 11

Any ideas on this?

Avatar
Glen

Community Member, 10 Posts

25 July 2007 at 3:42pm

Now that is giving me a completely blank screen when I try and load up any part of the site:

http://www.anykey.net.nz/ss/

Any other ideas of how to fix this?

Avatar
Tim

Community Member, 201 Posts

25 July 2007 at 4:09pm

Adding ?flush=1 to your main site fixes this, ie http://www.anykey.net.nz/ss/?flush=1

Avatar
Sean

Forum Moderator, 922 Posts

26 July 2007 at 12:28am

Hmm, it seems to be caching the fact it can't find a class, because ?flush=1 fixes it then you take it off and it does it again. Very bizarre... is this the behaviour you're also getting?

Sean

Go to Top