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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Open_basedir restriction on shared server


Go to End


1814 Views

Avatar
Michiel1980

Community Member, 1 Post

29 November 2015 at 4:25am

While installing CMS v. 3.2.1 on a shared server (via install.php), I ran into the warning mentioned below.

I have read this topic from 2012: http://www.silverstripe.org/community/forums/installing-silverstripe/show/20224

but I'm still not sure what to do about it. I don't have acces to the php.ini file.

Modifying include_paths didn't do the trick for me (didn't know exactly where and how)

Does anyone have a practical solution to this?

[Warning] is_readable(): open_basedir restriction in effect. File(/usr/local/php56/share/pear/Zend/Translate/Adapter/I18nRailsYamlAdapter.php) is not within the allowed path(s): (/usr/local/reserved/index.php:/usr/local/reserved/prepend.php:/sites/website.nl/:/tmp)
GET /
Line 201 in /sites/website.nl/www/framework/thirdparty/Zend/Loader.php
Source
192
193 foreach (self::explodeIncludePath() as $path) {
194 if ($path == '.') {
195 if (is_readable($filename)) {
196 return true;
197 }
198 continue;
199 }
200 $file = $path . '/' . $filename;
201 if (is_readable($file)) {
202 return true;
203 }
204 }
205 return false;
206 }
207
Trace
is_readable(/usr/local/php56/share/pear/Zend/Translate/Adapter/I18nRailsYamlAdapter.php)
Loader.php:201
Zend_Loader::isReadable(Zend/Translate/Adapter/I18nRailsYamlAdapter.php)
Translate.php:126
Zend_Translate->setAdapter(Array)
Translate.php:93
Zend_Translate->__construct(Array)
i18n.php:2146
i18n::get_translators()
i18n.php:2053
i18n::_t(SecurityAdmin.NEWGROUP,New Group,,)
Core.php:169
_t(SecurityAdmin.NEWGROUP,New Group)
Group.php:54
Group->populateDefaults()
DataObject.php:497
DataObject->__construct()
ReflectionClass->newInstance()
InjectionCreator.php:20
InjectionCreator->create(Group,Array)
Injector.php:553
Injector->instantiate(Array,Group)
Injector.php:859
Injector->get(Group)
Core.php:157
singleton(Group)
Security.php:1009
Security::database_is_ready()
Controller.php:80
Controller->init()
RootURLController.php:119
RootURLController->handleRequest(SS_HTTPRequest,DataModel)
Director.php:385
Director::handleRequest(SS_HTTPRequest,Session,DataModel)
Director.php:149
Director::direct(/,DataModel)
main.php:184