4571 Posts in 1383 Topics by 1376 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1864 Views |
-
Can't install 2.3 RC2, _ss_environment.php and openbasedir

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?
-
Re: Can't install 2.3 RC2, _ss_environment.php and openbasedir

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
| 1864 Views | ||
|
Page:
1
|
Go to Top |


