17488 Posts in 4473 Topics by 1978 members
| Go to End | Next > | |
| Author | Topic: | 7369 Views |
-
Installation Finishes but doesn't work

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_rewriteI 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 OnRewriteRule \.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 -
Re: Installation Finishes but doesn't work

23 July 2007 at 9:16pm Last edited: 23 July 2007 9:16pm
It seems mod_rewrite is not working.
What kind of Apache Vhosts setup are you running ?
-
Re: Installation Finishes but doesn't work

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 -
Re: Installation Finishes but doesn't work

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?
-
Re: Installation Finishes but doesn't work

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:
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?
-
Re: Installation Finishes but doesn't work

25 July 2007 at 3:24pm
I fixed this by flushing the cache (by adding ?flush=1 to the end of the url). This magically fixes lots of things - in this case its probable earlier attempts at installation were being cached.
-
Re: Installation Finishes but doesn't work

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:
Any other ideas of how to fix this?
-
Re: Installation Finishes but doesn't work

25 July 2007 at 4:09pm
Adding ?flush=1 to your main site fixes this, ie http://www.anykey.net.nz/ss/?flush=1
| 7369 Views | ||
| Go to Top | Next > |




