Jump to:

4895 Posts in 7193 Topics by 1472 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » $_SERVER['SCRIPT_FILENAME'] missing on hosting

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: 1250 Views
  • ekersten
    Avatar
    Community Member
    16 Posts

    $_SERVER['SCRIPT_FILENAME'] missing on hosting Link to this post

    I had to deal whit a hosting that (amongst other stuff) didn't expose the mentioned variable.

    The solution:

    Simply put this code at the begining of sapphire/main.php

    $_SERVER['SCRIPT_FILENAME'] = $_SERVER['DOCUMENT_ROOT'] . $_SERVER['SCRIPT_NAME'];

    At least that did the trick for me this time.

    Hope this helps someone.

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