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

windows slash / backslash problem?


Reply

6 Posts   4443 Views

Avatar
delcon

3 April 2010 at 10:04am Community Member, 9 Posts

Hi I try to install Silverstripe on IIS 7 and Windows Server 2008 R2

After install I get following Error:

Installing SilverStripe...
I am now running through the installation steps (this should take about 30 seconds)

If you receive a fatal error, refresh this page to continue the installation

Creating 'mysite/_config.php'...
Creating C:\inetpub\wwwvetterli\mysite/_config.php
Creating '.htaccess' file...
Creating C:\inetpub\wwwvetterli\.htaccess Warning: file_exists(): open_basedir restriction in effect. File(C:\inetpub\wwwvetterli/.htaccess/_config.php) is not within the allowed path(s): (C:\inetpub\wwwvetterli) in C:\inetpub\wwwvetterli\sapphire\core\i18n.php on line 1739 Warning: file_exists(): open_basedir restriction in effect. File(C:\inetpub\wwwvetterli/COPYING/_config.php) is not within the allowed path(s): (C:\inetpub\wwwvetterli) in C:\inetpub\wwwvetterli\sapphire\core\i18n.php on line 1739 Warning: file_exists(): open_basedir restriction in effect. File(C:\inetpub\wwwvetterli/ChangeLog/_config.php) is not within the allowed path(s): (C:\inetpub\wwwvetterli) in C:\inetpub\wwwvetterli\sapphire\core\i18n.php on line 1739 Warning: file_exists(): open_basedir restriction in effect. File(C:\inetpub\wwwvetterli/INSTALL/_config.php) is not within the allowed path(s): (C:\inetpub\wwwvetterli) in C:\inetpub\wwwvetterli\sapphire\core\i18n.php on line 1739 Warning: file_exists(): open_basedir restriction in effect. File(C:\inetpub\wwwvetterli/Makefile/_config.php) is not within the allowed path(s): (C:\inetpub\wwwvetterli) in C:\inetpub\wwwvetterli\sapphire\core\i18n.php on line 1739 Warning: file_exists(): open_basedir restriction in effect. File(C:\inetpub\wwwvetterli/UPGRADING/_config.php) is not within the allowed path(s): (C:\inetpub\wwwvetterli) in C:\inetpub\wwwvetterli\sapphire\core\i18n.php on line 1739 Warning: file_exists(): open_basedir restriction in effect. File(C:\inetpub\wwwvetterli/favicon.ico/_config.php) is not within the allowed path(s): (C:\inetpub\wwwvetterli) in C:\inetpub\wwwvetterli\sapphire\core\i18n.php on line 1739 Warning: file_exists(): open_basedir restriction in effect. File(C:\inetpub\wwwvetterli/index.php/_config.php) is not within the allowed path(s): (C:\inetpub\wwwvetterli) in C:\inetpub\wwwvetterli\sapphire\core\i18n.php on line 1739 Warning: file_exists(): open_basedir restriction in effect. File(C:\inetpub\wwwvetterli/install.php/_config.php) is not within the allowed path(s): (C:\inetpub\wwwvetterli) in C:\inetpub\wwwvetterli\sapphire\core\i18n.php on line 1739 Warning: file_exists(): open_basedir restriction in effect. File(C:\inetpub\wwwvetterli/phpinfo.php/_config.php) is not within the allowed path(s): (C:\inetpub\wwwvetterli) in C:\inetpub\wwwvetterli\sapphire\core\i18n.php on line 1739 Warning: file_exists(): open_basedir restriction in effect. File(C:\inetpub\wwwvetterli/rewritetest.php/_config.php) is not within the allowed path(s): (C:\inetpub\wwwvetterli) in C:\inetpub\wwwvetterli\sapphire\core\i18n.php on line 1739 Warning: file_exists(): open_basedir restriction in effect. File(C:\inetpub\wwwvetterli/web.config/_config.php) is not within the allowed path(s): (C:\inetpub\wwwvetterli) in C:\inetpub\wwwvetterli\sapphire\core\i18n.php on line 1739
Building database schema...
Checking that friendly URLs work...
Friendly URLs are not working. This is most likely because mod_rewrite isn't configuredcorrectly on your site. Please check the following things in your Apache configuration; you may need to get your web host or server administrator to do this for you:
mod_rewrite is enabled
AllowOverride All is set for your directory

Looking at this Phrase "File(C:\inetpub\wwwvetterli/.htaccess/_config.php) is not within the allowed path(s): " makes me wonder slash and backslash don't work in Windows as far as I know.

Any body encountered this problem and found a solution?

Thanks

delcon

Avatar
Sean

3 April 2010 at 12:40pm Forum Moderator, 921 Posts

PHP doesn't care about the slashes, on Windows, / and \ work the same way.

Have you tried installing the [url=http://www.iis.net/expand/URLRewrite]Microsoft URL Rewrite Module[/url] for IIS, and then including a web.config file? See here: [url]http://doc.silverstripe.org/doku.php?id=installation-on-windows-manual-iis[/url]

This process has been streamlined a bit more on SS 2.4, and the installer will detect rewrite capabilities on IIS as well as Apache.

Sean

Avatar
delcon

3 April 2010 at 9:08pm Community Member, 9 Posts

microsoft URL rewrite module 2 is installed

and web.config ist written as directed in the http://doc.silverstripe.org/doku.php?id=installation-on-windows-manual-iis

does "open_basedir restriction" have anything to do with the following errors? how to correct this?

and

what exactly the mean by "is not within the allowed paths"?

shouldn't we go and try to exactly figure under what conditions these errors are written?

Avatar
Sean

3 April 2010 at 9:52pm Forum Moderator, 921 Posts

There's an open_basedir or safe mode setting in php.ini. You might want to try disabling this, as it generally causes more problems than it solves.

Avatar
delcon

3 April 2010 at 10:11pm Community Member, 9 Posts

success!! that did it.

thank you!

Avatar
delcon

3 April 2010 at 10:41pm Community Member, 9 Posts

next problem:

after finishing without any error it tells me that I can log in with admin and the password I set during installation.

however, when I try to log in, it tells me : That doesn't seem to be the right e-mail address or password. Please try again

I tried to reinstall, and all sorts of ways including an actual email address. it all leads to the same error.

when I click to forgot my password and try to reset it tells me that it does not recognize my email address.