Jump to:

4938 Posts in 16764 Topics by 1490 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » 500 Internal Server Error

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

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

Page: 1 2
Go to End
Author Topic: 5362 Views
  • mirakelsey
    Avatar
    Community Member
    9 Posts

    500 Internal Server Error Link to this post

    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!

  • swaiba
    Avatar
    Forum Moderator
    1792 Posts

    Re: 500 Internal Server Error Link to this post

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

  • mirakelsey
    Avatar
    Community Member
    9 Posts

    Re: 500 Internal Server Error Link to this post

    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.

  • swaiba
    Avatar
    Forum Moderator
    1792 Posts

    Re: 500 Internal Server Error Link to this post

    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).

  • mirakelsey
    Avatar
    Community Member
    9 Posts

    Re: 500 Internal Server Error Link to this post

    MYSQL databases are included, yes.

  • swaiba
    Avatar
    Forum Moderator
    1792 Posts

    Re: 500 Internal Server Error Link to this post

    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?

  • mirakelsey
    Avatar
    Community Member
    9 Posts

    Re: 500 Internal Server Error Link to this post

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

  • pathways
    Avatar
    Community Member
    1 Post

    Re: 500 Internal Server Error Link to this post

    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.

    5362 Views
Page: 1 2
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.