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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Installing SilverStripe /

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

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

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


Go to End


3 Posts   3108 Views

Avatar
Ryno in Stereo

Community Member, 8 Posts

8 January 2009 at 9:02pm

Edited: 09/01/2009 2:58pm

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

Administrator, 690 Posts

9 January 2009 at 4:13pm

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

Community Member, 8 Posts

9 January 2009 at 5:42pm

Edited: 09/01/2009 5:43pm

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