Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

PHP access to /dev/urandom

Discussion in 'General Discussion' started by bloom360, Nov 17, 2017.

  1. bloom360

    bloom360 Member

    Joined:
    Feb 23, 2015
    Messages:
    11
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Hello,

    I have installed Own Cloud and it is throwing an alert that says open_basedir is blocking "/dev/urandom" so I need to enable it manually. I am running Litespeed Enterprise if that makes a difference.

    I have been searching for a while and this is the closest I have found:

    php-set = open_basedir=/tmp/:/usr/share/webapps/nextcloud:/etc/webapps/nextcloud:/dev/urandom

    (Source: Nextcloud - ArchWiki)​

    Questions:

    1. Is it safe to add a line like this on the account's php.ini?

    2. If it is, which paths should I include?

    3. Any other advise? I am way out of my depth on this one.

    :-/
     
  2. bloom360

    bloom360 Member

    Joined:
    Feb 23, 2015
    Messages:
    11
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Here's another comment someone else made, in a forum:

    I found that the following string worked:

    {WEBSPACEROOT}{/}{:}{TMP}{/}:/dev/urandom
     
  3. cPWilliamL

    cPWilliamL cP Technical Analyst II
    Staff Member

    Joined:
    May 15, 2017
    Messages:
    257
    Likes Received:
    29
    Trophy Points:
    103
    Location:
    America
    cPanel Access Level:
    Root Administrator
    Hi,

    I've searched for this as well, but have not found much documentation on it. Did you find the above solution to work?

    Thanks,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice