Jump to:

4950 Posts in 13940 Topics by 1490 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Couldn't install Silver Stripe 2.3 (branch and trunk) on Windows

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: 1802 Views
  • Ryno in Stereo
    Avatar
    Community Member
    8 Posts

    Couldn't install Silver Stripe 2.3 (branch and trunk) on Windows Link to this post

    Hello,

    I tried installing Silver Stripe in the root directory of a virtual host on Windows machine and I got lots of errors, however when trying to install in a sub-directory, everything was fine.

    The errors I think were caused by this code "$_SERVER['SCRIPT_NAME'])" which appears throughout the install file and the rewritetest.php file. When installing into a sub-directory (presume the sub-directory was called silverstripe) the value for $baseURL would be /silverstripe. All good.

    But, if you install into the root directory, $baseURL returns a backalsh "\". So, the first major issue this causes is that it can't redirect to the install.php file because the path is \/install.php. The backslash just shouldn't be there.

    More info about this behaviour at http://www.webmasterworld.com/php/3752500.htm

    So I gave up on my Windows local development machine and installed it on my production Linux server and although it installed fine, I noticed that the redirect path to the install file was //install.php and even though Apache disregards the additional forward slash, it's not meant to be there either.

    So unless I've done something wrong, there is a bug when trying on install into the root of a site.

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: Couldn't install Silver Stripe 2.3 (branch and trunk) on Windows Link to this post

    We've filed a bug for this here: http://open.silverstripe.com/ticket/3332

    Are you trying to install on WAMPServer (ie, Apache) or IIS?

  • Ryno in Stereo
    Avatar
    Community Member
    8 Posts

    Re: Couldn't install Silver Stripe 2.3 (branch and trunk) on Windows Link to this post

    I'm using XAMPP 1.70 and created a virtualhost so I could install in the root without mucking up the default webroot (/localhost/)

    # Apache HTTPD 2.2.11
    # PHP 5.2.8

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