Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Installation Finishes but doesn't work

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

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

Page: 1 2
Go to End
Author Topic: 7657 Views
  • Glen
    Avatar
    Community Member
    10 Posts

    Installation Finishes but doesn't work Link to this post

    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

  • Fuzz10
    Avatar
    Community Member
    787 Posts

    Re: Installation Finishes but doesn't work Link to this post

    It seems mod_rewrite is not working.

    What kind of Apache Vhosts setup are you running ?

  • Glen
    Avatar
    Community Member
    10 Posts

    Re: Installation Finishes but doesn't work Link to this post

    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

  • Glen
    Avatar
    Community Member
    10 Posts

    Re: Installation Finishes but doesn't work Link to this post

    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?

  • Glen
    Avatar
    Community Member
    10 Posts

    Re: Installation Finishes but doesn't work Link to this post

    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?

  • Andy
    Avatar
    230 Posts

    Re: Installation Finishes but doesn't work Link to this post

    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.

  • Glen
    Avatar
    Community Member
    10 Posts

    Re: Installation Finishes but doesn't work Link to this post

    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?

  • Tim
    Avatar
    Core Development Team
    201 Posts

    Re: Installation Finishes but doesn't work Link to this post

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

    7657 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.