Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

php safe_mode on and /usr/lib/php/DB.php error

Discussion in 'General Discussion' started by naox, May 2, 2005.

  1. naox

    naox Well-Known Member

    Joined:
    Mar 23, 2004
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    156
    I got 2 servers running php in safe mode. on one of them script:

    <?php

    require_once 'DB.php';

    ?>

    wokrs fine!!

    but on another
    Warning: main(): SAFE MODE Restriction in effect. The script whose uid is 32003 is not allowed to access /usr/lib/php/DB.php owned by uid 0 in /home/hubs5/public_html/a.php on line 3

    Warning: main(DB.php): failed to open stream: Permission denied in /home/hubs5/public_html/a.php on line 3

    Fatal error: main(): Failed opening required 'DB.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hubs5/public_html/a.php on line 3


    DONT WORK. I compared chowns and chmods between 2 servers. No diffrence. Why on 1 server it is working while on another not
     
  2. jackal

    jackal Well-Known Member
    PartnerNOC

    Joined:
    Feb 23, 2002
    Messages:
    708
    Likes Received:
    0
    Trophy Points:
    316
    Would like to know the same thing, Did you you ever solve this?
     
  3. bijo

    bijo Well-Known Member

    Joined:
    Aug 21, 2004
    Messages:
    475
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    India
    Hello,

    Check the safe mode option in your php.ini file.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. jackal

    jackal Well-Known Member
    PartnerNOC

    Joined:
    Feb 23, 2002
    Messages:
    708
    Likes Received:
    0
    Trophy Points:
    316
    We have zend installed and safe mode off, we moved this site from another server where it worked but on 3 servers we have tried so far we get these errors

    http://69.93.247.184/~tinkling/calendar/
     
  5. jackal

    jackal Well-Known Member
    PartnerNOC

    Joined:
    Feb 23, 2002
    Messages:
    708
    Likes Received:
    0
    Trophy Points:
    316
    I looked here in these paths
    Failed opening required 'DB.php' (include_path='.:/usr/lib/php:/usr/local/lib/php')


    and DB.php file does not exist there either place.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice