Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

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

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

500 Internal Server Error


Go to End


6 Posts   2514 Views

Avatar
(deleted)

Community Member, 473 Posts

18 May 2007 at 8:37pm

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?

Avatar
Uncle Davey

Community Member, 10 Posts

19 May 2007 at 8:17am

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.

Avatar
(deleted)

Community Member, 473 Posts

19 May 2007 at 9:24am

Edited: 19/05/2007 10:26am

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 (:

Avatar
Uncle Davey

Community Member, 10 Posts

19 May 2007 at 12:01pm

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.

Avatar
Uncle Davey

Community Member, 10 Posts

19 May 2007 at 5:15pm

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.

Avatar
(deleted)

Community Member, 473 Posts

22 May 2007 at 8:23pm

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