Jump to:

4935 Posts in 16178 Topics by 1488 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » windows slash / backslash problem?

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: 4416 Views
  • delcon
    Avatar
    Community Member
    9 Posts

    windows slash / backslash problem? Link to this post

    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

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: windows slash / backslash problem? Link to this post

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

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

    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

  • delcon
    Avatar
    Community Member
    9 Posts

    Re: windows slash / backslash problem? Link to this post

    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?

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: windows slash / backslash problem? Link to this post

    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.

  • delcon
    Avatar
    Community Member
    9 Posts

    Re: windows slash / backslash problem? Link to this post

    success!! that did it.

    thank you!

  • delcon
    Avatar
    Community Member
    9 Posts

    Re: windows slash / backslash problem? Link to this post

    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.

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