Jump to:

324 Posts in 153 Topics by 156 members

Migrating a Site to Silverstripe

SilverStripe Forums » Migrating a Site to Silverstripe » Internal Server Error issue

What you need to know when migrating your existing site to SilverStripe.

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

Page: 1 2
Go to End
Author Topic: 3526 Views
  • Heike-san
    Avatar
    Community Member
    52 Posts

    Internal Server Error issue Link to this post

    i know that this issue has been posted countless times however none of the answer that I have found seemed to solve my problem.

    Here is my .htaccess:
    ### SILVERSTRIPE START ###
    DirectorySlash Off
    <Files *.ss>
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    Allow from 212.113.133.130
    </Files>

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase onedoor

    RewriteCond %{REQUEST_URI} !(\.gif$)|(\.jpg$)|(\.png$)|(\.css$)|(\.js$)

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

    For the RewriteBase writing onedoor or onedoor/ will result in raising the 500 error.
    Then anything else will cause an error like : "cannot find some directory tried/sapphire/main.php on the server".
    I have been trying to work this out for days now and I feel like I really need help on this issue.

    I will appreciate any suggestion or help!!

    Oh and whne i try to get the error.log of the server, there is nothing in it.

  • banal
    Avatar
    Community Member
    901 Posts

    Re: Internal Server Error issue Link to this post

    Your RewriteBase should start with a slash. Eg. RewriteBase /onedoor

  • Heike-san
    Avatar
    Community Member
    52 Posts

    Re: Internal Server Error issue Link to this post

    if try /onedoor i get this answer: "/onedoor/sapphire/main.php was not found on this server"

  • banal
    Avatar
    Community Member
    901 Posts

    Re: Internal Server Error issue Link to this post

    Hm it should work. Your SilverStripe installation is located in the <webroot>/onedoor directory, right? Your URL will therefore be in the form of: http://mydomain.xx/onedoor/. Is that correct?

  • Heike-san
    Avatar
    Community Member
    52 Posts

    Re: Internal Server Error issue Link to this post

    Yes that is correct! But each time I use RewriteBase /onedoor it says "The URL /onedoor/sapphire/main.php was not found on this server"

  • banal
    Avatar
    Community Member
    901 Posts

    Re: Internal Server Error issue Link to this post

    Could it be a permission problem? Can you access a file from the sapphire folder directly? eg. http://mysite.xx/onedoor/sapphire/Makefile ?

  • Heike-san
    Avatar
    Community Member
    52 Posts

    Re: Internal Server Error issue Link to this post

    No I got the same internal server error!!

  • banal
    Avatar
    Community Member
    901 Posts

    Re: Internal Server Error issue Link to this post

    There's maybe a permission issue. Check the permissions on the onedoor folder. It could also be a misconfiguration in the .htaccess file. Try to remove the DirectorySlash and <Files *.ss> directives. Also check if mod_rewrite is properly installed and that you have a valid .htaccess (or no .htaccess) in your webroot.

    3526 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.