Jump to:

4946 Posts in 17815 Topics by 1495 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Install/mod_rewrite - 500 Error

Getting SilverStripe up and running on your computer and on your web server.

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

Page: 1
Go to End
Author Topic: 1379 Views
  • Commucom
    Community Member
    3 Posts

    Install/mod_rewrite - 500 Error Link to this post

    Hey guys, i wonder if you can help!

    I'm new to silverstripe and am having a few issues with uploading the site i've created to a fasthosts server.

    I've created the site locally and all works well. When i transfer the entire site and change all the required credentials (passwords for mysql etc) to the fh server i get a 500 Error. Now i'm pretty sure this is to do with the .htaccess and more specifically the mod_rewrite module.

    Whilst mod_rewrite doesn't show in phpinfo, i've used a test script to confirm it is active and have also contacted the hosting supplier, they also asure me that mod_rewrite is active.

    I've also tried the route of installing a fresh distro of the latest silverstipe. The install states that mod_rewrite is not enabled and that the clean url's cannot be used. It allows me to finish installation and the front end site works. When i load up the backend admin area, no images show and non of the links show. I've attached the .htaccess file for this fresh install. To remove the 500 error on first upload to actually get to the install script i had to comment out one section shown in the below copy)

    <Files *.ss>
       Order deny,allow
       Deny from all
       Allow from localhost

    #<Files web.config>
    #   Order deny,allow
    #   Deny from all

    ErrorDocument 404 /assets/error-404.html
    ErrorDocument 500 /assets/error-500.html

    <IfModule mod_alias.c>
       RedirectMatch 403 /silverstripe-cache(/|$)

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

    Can any of you guys shed any light, as to why this isnt working? Any other information required, please ask, i'll be more than happy to provide it, i just need this fixed.

    Many thanks in advance, i really appreciate it!
    Kind regards,


  • Willr
    Forum Moderator
    5511 Posts

    Re: Install/mod_rewrite - 500 Error Link to this post

    Do you have access to the server error logs to see the actual error message?

  • Commucom
    Community Member
    3 Posts

    Re: Install/mod_rewrite - 500 Error Link to this post

    A mix of:

    [alert] [client] /home/fhlinux131/d/david-auld.co.uk/user/htdocs/sapphire/.htaccess: deny not allowed here


    [client] /home/fhlinux131/d/david-auld.co.uk/user/htdocs/.htaccess: order not allowed here

  • Commucom
    Community Member
    3 Posts

    Re: Install/mod_rewrite - 500 Error Link to this post

    If it helps, on the new install, looking at the admin html; it's calling the correct path for css and so on (ie. /index.php/.../... etc) but in the code the actual links to files and etc do not use this path, it is calling /.../.../... etc...

Page: 1
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.