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.

Installing SilverStripe /

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

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

500 Internal Server Error


Go to End
Reply


10 Posts   5888 Views

Avatar
mirakelsey

Community Member, 9 Posts

8 March 2011 at 7:58pm

Hi All, I'm new to SilverStripe and need help with publishing a site.

I'm getting the following error on my site:

---------------
Internal Server Error

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

Please contact the server administrator, cgiadmin@yourhostingaccount.com 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.
------------

I assume it's a problem with my .htaccess file, so here's the code I have for that:

--------
### SILVERSTRIPE START ###
<Files *.ss>
   Order deny,allow
   Deny from all
   Allow from 127.0.0.1
</Files>

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

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

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

<IfModule mod_rewrite.c>
   SetEnv HTTP_MOD_REWRITE On
   RewriteEngine On

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

I'm using iPage for hosting. Any help that could be given asap would be great appreciated!

Avatar
swaiba

Forum Moderator, 1805 Posts

8 March 2011 at 10:36pm

500 Internal Server Error? Read this...
http://www.silverstripe.org/general-questions/show/16055

Avatar
mirakelsey

Community Member, 9 Posts

9 March 2011 at 4:14am

I'm getting a new error:

[User Error] Neither the mssql_connect() nor the sqlsrv_connect() functions are available. Please install the PHP native mssql module, or the Microsoft-provided sqlsrv module.

Avatar
swaiba

Forum Moderator, 1805 Posts

9 March 2011 at 4:20am

With your host "iPage" does your contract include MYSQL database(s)?

If not then your option is sqlite for the database option (normally installed with php and uses simple files instead of a DBMS).

Avatar
mirakelsey

Community Member, 9 Posts

9 March 2011 at 4:26am

MYSQL databases are included, yes.

Avatar
swaiba

Forum Moderator, 1805 Posts

9 March 2011 at 4:34am

Edited: 09/03/2011 4:36am

I'd check my phpinfo() and see the MYSQL database stuff is there.

Then I'd check the ussernames and passwords...

If all is good then I'd contact their support...

I've never seen this error - so I may be missing something here - but is this when you are viewing www.mysite.com/install.php?
Doesn't that tell you whether you have the right resources and credentials?

Avatar
mirakelsey

Community Member, 9 Posts

9 March 2011 at 9:42am

Ah! Okay, yeah. There was a problem with the database info. All fixed now. Thank you!

Avatar
pathways

Community Member, 1 Post

13 November 2012 at 9:50am

Edited: 13/11/2012 9:54am

What fixed it for me, regarding the Internal Server Error:

I had this exact issue in the OP (not the subsequent dB errors). Since I didn't do a manual install but used my CPanel's installer tool (shame shame) called Softaculous, so I wasn't familiar with the directory or files. The only thing I knew was that Softaculous stopped and wanted me to check "rewrite" because I already had a .htaccess file. Other than that, it all went smoothly.

I didn't find anything here and I didn't know which way to look first, so I did a chat with my host. The tech found in my .htaccess file:

<IfModule mod_rewrite.c>
   SetEnv HTTP_MOD_REWRITE On
   RewriteEngine On
   RewriteBase

The RewriteBase needed a slash after RewriteBase:

<IfModule mod_rewrite.c>
   SetEnv HTTP_MOD_REWRITE On
   RewriteEngine On
   RewriteBase /

It's always the punctuation isn't it? ;) And that fixed it for me. Hope this helps someone in the same position in the future.

Go to Top