Jump to:

4873 Posts in 7242 Topics by 1471 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » 2.3x on IIS/Isapi_Rewrite

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

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

Page: 1
Go to End
Author Topic: 2029 Views
  • ABailey
    Avatar
    Community Member
    8 Posts

    2.3x on IIS/Isapi_Rewrite Link to this post

    We've been using the 2.2x series SS with great success on IIS /w Isapi Rewrite (v3x). Looking towards the future of SS and all the modular upgrades in the works we are looking to upgrade to the 2.3x series SS.

    Having a problem getting the /admin to load. Initially it would display the login form (/Security/login), and after entering the information and submitting, would display the sapphire/main.php?url=admin& and then bomb out on 23+ javascript errors. Looking at the generated HTML the system just isn't firing properly and prototype.js isn't being included in the <script> series.

    Considering the exact same release (12/18/2008 trunk) works perfectly fine on Apache/Linux, there must be a problem with either the ISAPI_REWRITE or IIS.

    Has anyone had success in fixing or at least determining the problem at hand? I'm about to go back to tackling it now.

  • ABailey
    Avatar
    Community Member
    8 Posts

    Re: 2.3x on IIS/Isapi_Rewrite Link to this post

    One possible clue I've discovered is Isapi_Rewrite sends a modified REQUEST_URI (and cloned REQUEST_URL) to the web server, is this how the module tricks IIS into serving the proper page?

    There are several places in the code that reference REQUEST_URI and expect it to be '/admin' and not '/sapphire/main.php?url=/admin&'

    Tried adding:
    $_SERVER['REQUEST_URI'] = '/'.$url;

    into the main.php in the Apache rewrite rules area when $_GET['url'] exists, didn't seem to help there, but I'd imagine it would help in other places.

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: 2.3x on IIS/Isapi_Rewrite Link to this post

    Hi ABailey,

    Can you put print_r($_SERVER); at the top of main.php, then visit the page and post its output to this forum thread? I'd like to see in more detail the values that IIS/ISAPI_REWRITE generates.

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