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

[SOLVED] SS3 installation error: [Warning] is_readable(): open_basedir restriction in effect


Go to End
Reply

22 Posts   8548 Views

Avatar
Optic Blaze

7 July 2012 at 2:09am Community Member, 162 Posts

Hi there, i am trying install SS3 for the first time. I get the following error.
Any help is appreciated:

[Warning] is_readable(): open_basedir restriction in effect. File(/usr/share/pear/Zend/Translate/Adapter/I18nRailsYamlAdapter.php) is not within the allowed path(s): (/usr/wwws/users/opticb:/usr/www/users/opticb:/usr/home/opticb:/usr/local/rmagic:/usr/www/users/he/_system_:/usr/share/php:/usr/local/lib/php:/tmp:/usr/bin:/usr/local/bin:/usr/local/share/www:/usr/share/misc)
GET /customers/ss3/dev/build?returnURL=%2Fcustomers%2Fss3%2F

Line 198 in /usr/www/users/opticb/customers/ss3/framework/thirdparty/Zend/Loader.php
Source

189
190 foreach (self::explodeIncludePath() as $path) {
191 if ($path == '.') {
192 if (is_readable($filename)) {
193 return true;
194 }
195 continue;
196 }
197 $file = $path . '/' . $filename;
198 if (is_readable($file)) {
199 return true;
200 }
201 }
202 return false;
203 }
204

Avatar
rturja

10 July 2012 at 9:19pm Community Member, 4 Posts

If you have access to your php.ini change

safe_mode=Off
open_basedir=Off

-Reko

Avatar
Optic Blaze

10 July 2012 at 9:43pm (Last edited: 26 October 2012 8:35am), Community Member, 162 Posts

Thanx, tried it but it did not work

I did not have access to php.ini but i managed to change the .htaccess file by adding the following to the top:

php_value safe_mode "0"
php_value open_basedir "0"

But the problem is that the shared host does not allow me to make changes to open_basedir with .htaccess

Avatar
martimiz

18 July 2012 at 4:51am Forum Moderator, 1095 Posts

Your local spammer has been removed :)

Avatar
peter99

30 August 2012 at 8:18am Community Member, 2 Posts

Hi.

Unfortunately it doesn't work for me.
I changed php.ini, deleted _config.php and reinstalled ... and nothing.
No tables are created in the database.

Peter.

Avatar
peter99

30 August 2012 at 9:07am Community Member, 2 Posts

Ok. After one hour I checked mainpage again and it works.

P.

Avatar
Optic Blaze

25 October 2012 at 11:24pm Community Member, 162 Posts

Ok spoke to my hosting company. Seems they make use of Zend Gaurd which does not set Zend up as part of PEAR but as a php library item. How do i get Silverstripe to load the library as /usr/share/php as apposed to /usr/share/pear ??

I tried switching open_basedir off...but the host does not allow this for security reasons and i dont have access to php.ini or httpdconf

Avatar
Van

26 October 2012 at 7:19am Administrator, 25 Posts

+1

Go to Top