The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    6
    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:
    16
    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:
    16
    Location:
    India
    Hello,

    Check the safe mode option in your php.ini file.
     
  4. jackal

    jackal Well-Known Member
    PartnerNOC

    Joined:
    Feb 23, 2002
    Messages:
    708
    Likes Received:
    0
    Trophy Points:
    16
    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:
    16
    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