4577 Posts in 1388 Topics by 1377 members
| Go to End | Next > | |
| Author | Topic: | 2791 Views |
-
500 Internal Server Error

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 ErrorThe 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 OnRewriteCond %{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!
-
Re: 500 Internal Server Error

8 March 2011 at 10:36pm
500 Internal Server Error? Read this...
http://www.silverstripe.org/general-questions/show/16055 -
Re: 500 Internal Server Error

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.
-
Re: 500 Internal Server Error

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).
-
Re: 500 Internal Server Error

9 March 2011 at 4:34am Last edited: 9 March 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? -
Re: 500 Internal Server Error

9 March 2011 at 9:42am
Ah! Okay, yeah. There was a problem with the database info. All fixed now. Thank you!
-
Re: 500 Internal Server Error

13 November 2012 at 9:50am Last edited: 13 November 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
RewriteBaseThe 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.
| 2791 Views | ||
| Go to Top | Next > |


