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

Errors by installing on a linux webserver


Go to End


7 Posts   2888 Views

Avatar
neo67

Community Member, 6 Posts

22 December 2010 at 3:32am

Edited: 22/12/2010 9:38pm

Hi,

I see, that Silverstripe search the /dev/urandom

[Warning] is_readable() [function.is-readable]: open_basedir restriction in effect. File(/dev/urandom) is not within the allowed path(s): (/www/htdocs/xxxxxx/:/tmp:/usr/bin:/www/htdocs/xxxxxxx:/bin:/usr/local/bin:/usr/share/php)
POST /install.php

As a security reason no hoster open this device!!! How can I install this with out it?

Greetz
Juergen

PS: I dont need SSL methods ...

Avatar
Sean

Forum Moderator, 922 Posts

22 December 2010 at 10:02am

Hi there,

Could you open RandomGenerator.php in the sapphire/security directory and replace this at line 39

if(!$isWin && is_readable('/dev/urandom') && ($h = fopen('/dev/urandom', 'rb'))) {

WITH:

if(!$isWin && !ini_get('open_basedir') && is_readable('/dev/urandom') && ($h = fopen('/dev/urandom', 'rb'))) {

If that works, I will commit it back to 2.4.

Thanks,
Sean

Avatar
neo67

Community Member, 6 Posts

22 December 2010 at 11:21pm

Hi Sean,

that quick solution works!

Thanks for help!

greetz
Juergen

Avatar
Sean

Forum Moderator, 922 Posts

23 December 2010 at 10:02am

Hi guys,

Ticket was raised here, and since fixed: http://open.silverstripe.org/ticket/6287

The fix has been applied to the 2.4 development branch and trunk. The next release 2.4.5 will have the fix.

Thanks!
Sean

Avatar
ulysses

Community Member, 57 Posts

28 December 2010 at 6:03pm

Thanks Sean. This post saved my day!! Compliments of the season to you.

Ran into this problem when installing the latest version of SS 2.4.4.

Applied your recommendation and all went through OK. Thanks.

Avatar
zidanereal5

Community Member, 1 Post

18 January 2011 at 3:44pm

Great, I have also fixed my same problem. Thank you.

Avatar
ekersten

Community Member, 16 Posts

18 February 2011 at 8:00am

saved my day!!

It's strange how I was getting this only on Firefox on MY computer, but not on Chrome or other Firefox computer.

Thanks a lot!