Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » 500 Internal Server Error

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

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

Page: 1
Go to End
Author Topic: 2158 Views
  • simon_w
    Avatar
    Forum Moderator
    473 Posts

    500 Internal Server Error Link to this post

    I'm trying to install SilverStripe on my laptop, running Mac OS 10.4.9, Apache 1.3.33, PHP 5.2.2 and MySQL 5.0.27-max.

    After running the installer, I first got the page telling me that mod_rewrite wasn't working, so I think I've fixed that. After refreshing the page, I get a 500 Internal Server Error.

    Any ideas?

  • Uncle Davey
    Avatar
    Community Member
    10 Posts

    Re: 500 Internal Server Error Link to this post

    Hi there. Sorry I don`t have an answer to your problem, but I`m getting the mod_rewrite error. How did you solve that bit?

    Your help is appreciated. Cheers.

  • simon_w
    Avatar
    Forum Moderator
    473 Posts

    Re: 500 Internal Server Error Link to this post

    I added the following to the .conf file for my user in /etc/httpd/users/

    AccessFileName .htaccess
    RewriteEngine on
    RewriteLog "/var/log/httpd/rewrite_log"
    RewriteLogLevel 9
    <Directory "/Users/httpd/Sites/cms/">
    Options All
    AllowOverride All
    <IfModule mod_rewrite.c>
    RewriteEngine on

    RewriteBase /
    </IfModule>
    </Directory>

    Now the rewritetest isn't working. When running it, he following appears in my log file:

    127.0.0.1 - - [19/May/2007:09:22:45 +1200] [127.0.0.1/sid#1844a7c][rid#180ee34/initial] (1) [per-dir /Users/httpd/Sites/cms/] pass through /Users/httpd/Sites/cms/rewritetest.php
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#180ee34/initial] (3) [per-dir /Users/httpd/Sites/cms/] add path-info postfix: /Users/httpd/Sites/cms/InstallerTest -> /Users/httpd/Sites/cms/InstallerTest/testRewri$
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#180ee34/initial] (3) [per-dir /Users/httpd/Sites/cms/] strip per-dir prefix: /Users/httpd/Sites/cms/InstallerTest/testRewrite -> InstallerTest/testRewrite
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#180ee34/initial] (3) [per-dir /Users/httpd/Sites/cms/] applying pattern '\.js$' to uri 'InstallerTest/testRewrite'
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#180ee34/initial] (3) [per-dir /Users/httpd/Sites/cms/] add path-info postfix: /Users/httpd/Sites/cms/InstallerTest -> /Users/httpd/Sites/cms/InstallerTest/testRewri$
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#180ee34/initial] (3) [per-dir /Users/httpd/Sites/cms/] strip per-dir prefix: /Users/httpd/Sites/cms/InstallerTest/testRewrite -> InstallerTest/testRewrite
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#180ee34/initial] (3) [per-dir /Users/httpd/Sites/cms/] applying pattern '\.css$' to uri 'InstallerTest/testRewrite'
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#180ee34/initial] (3) [per-dir /Users/httpd/Sites/cms/] add path-info postfix: /Users/httpd/Sites/cms/InstallerTest -> /Users/httpd/Sites/cms/InstallerTest/testRewri$
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#180ee34/initial] (3) [per-dir /Users/httpd/Sites/cms/] strip per-dir prefix: /Users/httpd/Sites/cms/InstallerTest/testRewrite -> InstallerTest/testRewrite
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#180ee34/initial] (3) [per-dir /Users/httpd/Sites/cms/] applying pattern '\.png$' to uri 'InstallerTest/testRewrite'
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#180ee34/initial] (3) [per-dir /Users/httpd/Sites/cms/] add path-info postfix: /Users/httpd/Sites/cms/InstallerTest -> /Users/httpd/Sites/cms/InstallerTest/testRewri$
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#180ee34/initial] (3) [per-dir /Users/httpd/Sites/cms/] strip per-dir prefix: /Users/httpd/Sites/cms/InstallerTest/testRewrite -> InstallerTest/testRewrite
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#180ee34/initial] (3) [per-dir /Users/httpd/Sites/cms/] applying pattern '\.jpg$' to uri 'InstallerTest/testRewrite'
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#180ee34/initial] (3) [per-dir /Users/httpd/Sites/cms/] add path-info postfix: /Users/httpd/Sites/cms/InstallerTest -> /Users/httpd/Sites/cms/InstallerTest/testRewri$
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#180ee34/initial] (3) [per-dir /Users/httpd/Sites/cms/] strip per-dir prefix: /Users/httpd/Sites/cms/InstallerTest/testRewrite -> InstallerTest/testRewrite
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#180ee34/initial] (3) [per-dir /Users/httpd/Sites/cms/] applying pattern '\.gif$' to uri 'InstallerTest/testRewrite'
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#180ee34/initial] (3) [per-dir /Users/httpd/Sites/cms/] add path-info postfix: /Users/httpd/Sites/cms/InstallerTest -> /Users/httpd/Sites/cms/InstallerTest/testRewri$
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#180ee34/initial] (3) [per-dir /Users/httpd/Sites/cms/] strip per-dir prefix: /Users/httpd/Sites/cms/InstallerTest/testRewrite -> InstallerTest/testRewrite
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#180ee34/initial] (3) [per-dir /Users/httpd/Sites/cms/] applying pattern '\.php$' to uri 'InstallerTest/testRewrite'
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#180ee34/initial] (3) [per-dir /Users/httpd/Sites/cms/] add path-info postfix: /Users/httpd/Sites/cms/InstallerTest -> /Users/httpd/Sites/cms/InstallerTest/testRewri$
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#180ee34/initial] (3) [per-dir /Users/httpd/Sites/cms/] strip per-dir prefix: /Users/httpd/Sites/cms/InstallerTest/testRewrite -> InstallerTest/testRewrite
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#180ee34/initial] (3) [per-dir /Users/httpd/Sites/cms/] applying pattern '.*' to uri 'InstallerTest/testRewrite'
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#180ee34/initial] (4) RewriteCond: input='/InstallerTest/testRewrite' pattern='^(.*)$' => matched
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#180ee34/initial] (4) RewriteCond: input='/Users/httpd/Sites/cms/InstallerTest' pattern='!-f' => matched
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#180ee34/initial] (2) [per-dir /Users/httpd/Sites/cms/] rewrite InstallerTest/testRewrite -> sapphire/main.php?url=/InstallerTest/testRewrite&
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#180ee34/initial] (3) split uri=sapphire/main.php?url=/InstallerTest/testRewrite& -> uri=sapphire/main.php, args=url=/InstallerTest/testRewrite
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#180ee34/initial] (3) [per-dir /Users/httpd/Sites/cms/] add per-dir prefix: sapphire/main.php -> /Users/httpd/Sites/cms/sapphire/main.php
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#180ee34/initial] (2) [per-dir /Users/httpd/Sites/cms/] trying to replace prefix /Users/httpd/Sites/cms/ with /
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#180ee34/initial] (5) strip matching prefix: /Users/httpd/Sites/cms/sapphire/main.php -> sapphire/main.php
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#180ee34/initial] (4) add subst prefix: sapphire/main.php -> /sapphire/main.php
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#180ee34/initial] (1) [per-dir /Users/httpd/Sites/cms/] internal redirect with /sapphire/main.php [INTERNAL REDIRECT]
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#1807dac/initial/redir#1] (3) [per-dir /Users/httpd/Sites/cms/] strip per-dir prefix: /Users/httpd/Sites/cms/sapphire/main.php -> sapphire/main.php
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#1807dac/initial/redir#1] (3) [per-dir /Users/httpd/Sites/cms/] applying pattern '\.js$' to uri 'sapphire/main.php'
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#1807dac/initial/redir#1] (3) [per-dir /Users/httpd/Sites/cms/] strip per-dir prefix: /Users/httpd/Sites/cms/sapphire/main.php -> sapphire/main.php
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#1807dac/initial/redir#1] (3) [per-dir /Users/httpd/Sites/cms/] applying pattern '\.css$' to uri 'sapphire/main.php'
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#1807dac/initial/redir#1] (3) [per-dir /Users/httpd/Sites/cms/] strip per-dir prefix: /Users/httpd/Sites/cms/sapphire/main.php -> sapphire/main.php
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#1807dac/initial/redir#1] (3) [per-dir /Users/httpd/Sites/cms/] applying pattern '\.png$' to uri 'sapphire/main.php'
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#1807dac/initial/redir#1] (3) [per-dir /Users/httpd/Sites/cms/] strip per-dir prefix: /Users/httpd/Sites/cms/sapphire/main.php -> sapphire/main.php
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#1807dac/initial/redir#1] (3) [per-dir /Users/httpd/Sites/cms/] applying pattern '\.jpg$' to uri 'sapphire/main.php'
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#1807dac/initial/redir#1] (3) [per-dir /Users/httpd/Sites/cms/] strip per-dir prefix: /Users/httpd/Sites/cms/sapphire/main.php -> sapphire/main.php
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#1807dac/initial/redir#1] (3) [per-dir /Users/httpd/Sites/cms/] applying pattern '\.gif$' to uri 'sapphire/main.php'
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#1807dac/initial/redir#1] (3) [per-dir /Users/httpd/Sites/cms/] strip per-dir prefix: /Users/httpd/Sites/cms/sapphire/main.php -> sapphire/main.php
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#1807dac/initial/redir#1] (3) [per-dir /Users/httpd/Sites/cms/] applying pattern '\.php$' to uri 'sapphire/main.php'
    127.0.0.1 - - [19/May/2007:09:22:46 +1200] [127.0.0.1/sid#1844a7c][rid#1807dac/initial/redir#1] (1) [per-dir /Users/httpd/Sites/cms/] pass through /Users/httpd/Sites/cms/sapphire/main.php
    127.0.0.1 - - [19/May/2007:09:23:09 +1200] [127.0.0.1/sid#1844a7c][rid#180ee34/initial] (1) [per-dir /Users/httpd/Sites/cms/] pass through /Users/httpd/Sites/cms/favicon.ico

    Though following the force link works (:

  • Uncle Davey
    Avatar
    Community Member
    10 Posts

    Re: 500 Internal Server Error Link to this post

    Hi kickme,

    Just found this while trying to sort my problem out:

    "500, Internal Server Error If you get this message then mod_rewrite was not installed/enabled on your computer".

    Hope this helps.

  • Uncle Davey
    Avatar
    Community Member
    10 Posts

    Re: 500 Internal Server Error Link to this post

    Hi once again,

    This worked for me. I`m on a Mac also. Follow this article:

    http://www.ablogapart.org/2005/11/21/enable-mod_rewrite-on-os-x-104-tiger/

    All the best.

  • simon_w
    Avatar
    Forum Moderator
    473 Posts

    Re: 500 Internal Server Error Link to this post

    Thanks (:

    I have it working, now I just need to wait for Leopard so I don't have to use FF for the fancy admin page

    2158 Views
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.