Jump to:

4876 Posts in 7072 Topics by 1473 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Errors by installing on a linux webserver

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

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

Page: 1
Go to End
Author Topic: 1786 Views
  • neo67
    Avatar
    Community Member
    6 Posts

    Errors by installing on a linux webserver Link to this post

    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 ...

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Errors by installing on a linux webserver Link to this post

    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

  • neo67
    Avatar
    Community Member
    6 Posts

    Re: Errors by installing on a linux webserver Link to this post

    Hi Sean,

    that quick solution works!

    Thanks for help!

    greetz
    Juergen

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Errors by installing on a linux webserver Link to this post

    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

  • ulysses
    Avatar
    Community Member
    57 Posts

    Re: Errors by installing on a linux webserver Link to this post

    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.

  • zidanereal5
    Avatar
    Community Member
    1 Post

    Re: Errors by installing on a linux webserver Link to this post

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

  • ekersten
    Avatar
    Community Member
    16 Posts

    Re: Errors by installing on a linux webserver Link to this post

    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!

    1786 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.