Jump to:

23007 Posts in 11866 Topics by 2828 members

General Questions

SilverStripe Forums » General Questions » Server Upgrade Woes

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1 2 3 4 5
Go to End
Author Topic: 2517 Views
  • Briohny
    Avatar
    Community Member
    199 Posts

    Re: Server Upgrade Woes Link to this post

    Yep received email from GoDaddy this morning with same info as below to fix. This solved my issue!

    It appears that a recent upgrade to Apache 2.4 has caused mod rewrites (redirects) to function in a slightly different manner that is effecting how Silver stripe is redirecting. In turn, this was causing all redirects to sub pages from functioning properly on your website. I have made a modification to your code that has corrected the issue at this time. The changes within the file sapphire/main.php on lines 76 and 77 are as follows:

    **Original Code**:
    if (isset($_GET['url'])) {
    $url = $_GET['url'];

    **New Code**:
    if (isset($_GET['YourDomain.com'])) {
    $url = $_GET['YourDomain.com'];

  • Scott Farmer
    Avatar
    Community Member
    35 Posts

    Re: Server Upgrade Woes Link to this post

    I have silverstripe version 3.1.0 beta 3 running on godaddy. Tried the below fixes on framework/main.php.

    Didn't work, so have rung support and manage to get them to look further. Frustrating!

    Regards
    Scott

  • patattrash
    Avatar
    Community Member
    12 Posts

    Re: Server Upgrade Woes Link to this post

    Scott
    I too am having this issue with SilverStripe 3. Did you find any solution?

  • Scott Farmer
    Avatar
    Community Member
    35 Posts

    Re: Server Upgrade Woes Link to this post

    Had no luck with godaddy support. I tried to tell them it worked fine and suddenly stopped working, but they put it in "code problem box" and could get no further. So I decided it was easier to use another host.

  • DrWebGuy
    Avatar
    Community Member
    16 Posts

    Re: Server Upgrade Woes Link to this post

    I inserted the "fix" into my code - however, the problem I am having with THREE of my Godaddy hosted Silverstripe sites is that everything EXCEPT the home page, or index, seems to be working fine. When you go to the main page, you get the default Godaddy "Future home of something quite cool" page. You can go to domain.xyz/about-us/ and it works just fine.

    Any explanation for that?

    http://www.resdisposal.com <-- FAIL

    http://www.resdisposal.com/staff <-- works fine

  • jfusco
    Avatar
    Community Member
    52 Posts

    Re: Server Upgrade Woes Link to this post

    Thought I was losing my mind. Applied the fix suggested by GoDaddy and the site is back up and running as expected. Thank you so much because I was not looking forward to assembling a different CMS. I've put so much into SilverStripe and the site is just how I want it.

    BTW: For those of you that don't know, main.php is in the "framework" folder/directory

    -- Joe

  • Flipper
    Avatar
    Community Member
    3 Posts

    Re: Server Upgrade Woes Link to this post

    @DrWebGuy:

    How did you fix this issue exactly?

    Thanks

  • DrWebGuy
    Avatar
    Community Member
    16 Posts

    Re: Server Upgrade Woes Link to this post

    It seems that the older version of Apache gave priority to the .htaccess file when looking for an index. The newer version (Apache 2.4) seems to give first priority to ANY index file in the directory, whether it be index.php, index.html, or in my case the default welcome.html. After deleting (or renaming) welcome.html, Apache defaulted to the .htaccess file and began working correctly. I actually did not have to apply the "fix" from Godaddy to get this working.

    2517 Views
Page: 1 2 3 4 5
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.