Make /dev/urandom readable by PHP for all the users, Subdomains.

engyishere

New member
Joined
Feb 21, 2017
Messages
1
Hello to all Directmin forum's Brothers and Sisters,

Good Morning to all from India.

I have a question regarding enabling PHP access to /dev/urandom in directadmin.

I have tried editing php.ini file and also httpd-directories.conf files (random guess) to make these changes. I need to enable this access for securing OWNCLOUD. Also the access should apply for all the subdomains and Users.

If you have any suggestions then please let me know.

Thanks in advance for your valuable time.

Good day.
 
Hello,

That's depends on how you run PHP: mod_php, suphp, php-fpm, fastcgi. What mode do you use? Every mode has its own way to adjust open base restrictions.

Mod_php: https://help.directadmin.com/item.php?id=182

For other modes:

php-fpm.conf
user_virtual_host.conf
virtual_host2.conf
virtual_host2_secure.conf
virtual_host2_secure_sub.conf
virtual_host2_sub.conf

in /usr/local/directadmin/data/templates

before to modify copy needed file to /usr/local/directadmin/data/templates/custom/

related: https://help.directadmin.com/item.php?id=2
 
Back
Top