4621 Posts in 1397 Topics by 1392 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1583 Views |
-
Errors by installing on a linux webserver

22 December 2010 at 3:32am Last edited: 22 December 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.phpAs a security reason no hoster open this device!!! How can I install this with out it?
Greetz
JuergenPS: I dont need SSL methods ...
-
Re: Errors by installing on a linux webserver

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 -
Re: Errors by installing on a linux webserver

22 December 2010 at 11:21pm
Hi Sean,
that quick solution works!
Thanks for help!
greetz
Juergen -
Re: Errors by installing on a linux webserver

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 -
Re: Errors by installing on a linux webserver

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.
-
Re: Errors by installing on a linux webserver

18 January 2011 at 3:44pm
Great, I have also fixed my same problem. Thank you.
-
Re: Errors by installing on a linux webserver

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





