Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Installing SilverStripe

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

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

Couldn't install Silver Stripe 2.3 (branch and trunk) on Windows


Reply

3 Posts   1829 Views

Avatar
Ryno in Stereo

8 January 2009 at 9:02pm (Last edited: 9 January 2009 2:58pm), Community Member, 8 Posts

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.

Avatar
Sam

9 January 2009 at 4:13pm Administrator, 685 Posts

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?

Avatar
Ryno in Stereo

9 January 2009 at 5:42pm (Last edited: 9 January 2009 5:43pm), Community Member, 8 Posts

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