PHP access to /dev/urandom
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.
:-/
-
Here's another comment someone else made, in a forum: I found that the following string worked: {WEBSPACEROOT}{/}{:}{TMP}{/}:/dev/urandom 0 -
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, 0
Please sign in to leave a comment.
Comments
2 comments