4575 Posts in 1387 Topics by 1377 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1632 Views |
-
Couldn't install Silver Stripe 2.3 (branch and trunk) on Windows

8 January 2009 at 9:02pm Last edited: 9 January 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.
-
Re: Couldn't install Silver Stripe 2.3 (branch and trunk) on Windows

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?
-
Re: Couldn't install Silver Stripe 2.3 (branch and trunk) on Windows

9 January 2009 at 5:42pm Last edited: 9 January 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
| 1632 Views | ||
|
Page:
1
|
Go to Top |


