Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7013209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:21:24+00:00 2026-05-27T22:21:24+00:00

I get this error with PHPass: Warning: is_readable(): open_basedir restriction in effect. File(/dev/urandom) is

  • 0

I get this error with PHPass:

Warning: is_readable(): open_basedir restriction in effect.
File(/dev/urandom) is not within the allowed path(s):
(/customers/example.com/example.com/httpd.www:/customers/example.com/example.com/httpd.private:/customers/example.com/example.com/tmp:/customers/example.com/example.com:/var/www/diagnostics:/usr/share/php)
in /customers/example.com/example.com/httpd.www/example/scripts/PasswordHash.php
on line 51 Fatal error: Function name must be a string in
/customers/example.com/example.com/httpd.www/example/register.php on line 82

Lines 51-54 on PasswordHash.php (PHPass):

    if (is_readable('/dev/urandom') &&
        ($fh = @fopen('/dev/urandom', 'rb'))) {
        $output = fread($fh, $count);
        fclose($fh);

Lines 81-84 of register.php (also including: the first two lines are the require and the $hasher):

require('scripts/PasswordHash.php');
$hasher = new PasswordHash(8, false);
$hash = $hasher->HashPassword($pw);
if($strlen($hash) < 20){
    $notice[] = "Error";
}

So, what does this error mean?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T22:21:25+00:00Added an answer on May 27, 2026 at 10:21 pm

    The open_basedir restriction is a security measure in PHP, basically limiting access to the file system to specific directories. This is useful in a shared environment where everyone should have access to their own files only. The default setting is to allow all files to be opened.

    In this case, phpass is trying to access /dev/urandom, which is not included in your allowed directories, causing the error. The fix is to change the settings in for open_basedir in your php.ini to allow /dev/urandom (or allow everything).

    Version 1.8 of phpass resolves this issue by suppressing the error:

    Changes since revision 1.7: +2 -2 lines:

    Prefixed is_readable() with “@” to suppress warning when open_basedir
    restriction is in effect.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I get this error on an update panel within a popupControlExtender which is within
I get this error message when installing SQL 2005 Analysis services. The cabinet File
I get this error: System.Reflection.TargetException: Object does not match target type. when trying to
i get this error: Traceback (most recent call last): File <stdin>, line 1, in
I get this error in PDO: error: Message: PDO::lastInsertId() [pdo.lastinsertid]: SQLSTATE[IM001]: Driver does not
I get this error Can't create handler inside thread that has not called Looper.prepare()
I get this error: import java.util.scanner never used I'm not sure what I need
I get this error: Traceback (most recent call last): File D:/Python26/PYTHON-PROGRAMME/049 bam, line 9,
I get this error : Share project was failed. svn: Error writing entries file
I get this error message: Exception in thread main java.lang.ArithmeticException: BigInteger not invertible. This

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.