Jump to:

4938 Posts in 16827 Topics by 1490 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Can't install 2.3 RC2, _ss_environment.php and openbasedir

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: 2100 Views
  • ewonde
    Avatar
    Community Member
    2 Posts

    Can't install 2.3 RC2, _ss_environment.php and openbasedir Link to this post

    Hi all,

    When i try to install the 2.3 RC2 version of silverstripe to my shared hosting environment, i get the following error:

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(../../../_ss_environment.php) is not within the allowed path(s): (/www/htdocs/meizon/:/tmp:/usr/share/php) in /www/htdocs/meizon/http/sapphire/core/Core.php on line 31

    When fixing it by creating a empty _ss_environment.php file to the Silverstripe root (and chmod it to 777 in case Silverstripe want to write to it) the follow error appears:

    Fatal error: SS_DATABASE_PASSWORD must be defined in your _ss_environment.php. See http://doc.silverstripe.com/doku.php?id=environment-management for more infomration in /www/htdocs/meizon/http/sapphire/conf/ConfigureFromEnv.php on line 46

    i checked http://doc.silverstripe.com/doku.php?id=environment-management and it's clear to me that _ss_environment.php is NOT part of the installation process but a feature, not required for normal use of SS, which makes it possible to use one file with environmental credentials to your database for several projects. Great, but why is SS 2.3 RC2 checking for this file despite of it's optional use? Any suggestions how to fix this?

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: Can't install 2.3 RC2, _ss_environment.php and openbasedir Link to this post

    It's not necessary so you could just comment the offending line out of core.php. Of course, that makes svn updates a pain, so add a ticket at open.silverstripe.com too

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