Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CakePHP 500 Internal Server Error on Dreamhost

When i try to host the CakePHP site on my server on DreamHost i get the following error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Link to the URL

http://reelstubs.com/

like image 536
Harsha M V Avatar asked Feb 21 '23 13:02

Harsha M V


1 Answers

I had the same issues on a MediaTemple (ve) server. Standard, plain install of CakePHP 2.1.3 in the root of my site.

The fix for me was to a RewriteBase line to the .htaccess:

<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteBase /
   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/$1 [L]
</IfModule>

So the line RewriteBase / (including the slash at the end) did the trick for me.

!important: Do this for all three .htaccess files, in: root, /app and /app/webroot folders.

like image 122
Dr.Bob Avatar answered Mar 15 '23 12:03

Dr.Bob