|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
/dev/urandom is not readable by PHP
Hi All,
I installed owncloud 8.1.0p2 on OpenBSD 5.8. Everything seem to work fine except I have the following message in owncloud admin: /dev/urandom is not readable by PHP... The following is use by my server:
I succeeded in debugging most of the error message but not this one! Regards, S |
|
|||
This is because httpd runs in a chroot which does not have /dev in it.
For now, I've been ignoring this. Not sure if OC really needs /dev/urandom, if it should be added to the chroot, or if it doesn't matter. Tim. |
|
|||
I succeed getting rid of it by copying /dev/urandom to the root of httpd but not sure it's a good practice! urandom doesn't like to be copied and you need to stop it before it fill the disk!
Did you succeed getting rid of the memory cache message also? S Last edited by srivo; 17th November 2015 at 02:43 PM. Reason: typo |
|
|||
You can't copy urandom, it's not a file.
Use mknod to create it, if that's what you want to do. I don't think I fixed the memcache error either, I'll have to look again. I use OC only for myself so I don't care about the performance and such. Tim. |
|
|||
Thanks! for this help!
|
|
||||
There was a discussion thread on the misc@ mailing list two years ago regarding /dev/urandom in chrooted applications.
http://marc.info/?t=138306424000001&r=1&w=2 The recommendation was, of course, to correct the application so that it was not dependent upon random device nodes. Easy for compiled source code that uses standard libraries. Less easy for interpreted applications. |
|
|