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

Can't install 2.3 RC2, _ss_environment.php and openbasedir


Reply


2 Posts   2172 Views

Avatar
ewonde

Community Member, 2 Posts

13 January 2009 at 8:47am

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?

Avatar
Hamish

Community Member, 712 Posts

13 January 2009 at 9:08am

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 :)