Home » , , » Solved - A PHP Error was encountered Message: is_readable(): open_basedir restriction in effect.

Solved - A PHP Error was encountered Message: is_readable(): open_basedir restriction in effect.

Posted by E-Learning on Sunday, December 13, 2015

This get error again :( :(


A PHP Error was encountered
Severity: Warning
Message: is_readable(): open_basedir restriction in effect. File(/dev/urandom) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/etc/webapps/:/usr/share/nginx/html)
Filename: core/Security.php
Line Number: 584
Backtrace:
File: /usr/share/nginx/html/blog/index.php
Line: 292
Function: require_once


then i try to modification file Security.php on Codeigniter (located : system/core/Security.php) on line 584

on line 584

if (is_readable('/dev/urandom') && ($fp = fopen('/dev/urandom', 'rb')) !== FALSE){...


change / replace is_readable with @is_readable.

if (@is_readable('/dev/urandom') && ($fp = fopen('/dev/urandom', 'rb')) !== FALSE){...


this fixed
success :D


Hosting Unlimited Indonesia

0 comments:

Donate Bitcoin :
19QsXRcfUEKW9AVbGkJFB6WJPvn6uRboNr