Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Mar 2004
    Posts
    70

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

    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. #2
    cPanel Partner NOC cPanel Partner NOC Badge jackal's Avatar
    Join Date
    Feb 2002
    Posts
    708

    Default

    Would like to know the same thing, Did you you ever solve this?

  3. #3
    Member bijo's Avatar
    Join Date
    Aug 2004
    Location
    India
    Posts
    475

    Default

    Hello,

    Check the safe mode option in your php.ini file.
    Bijo
    Yahoo: "bijo505"
    Msn: "bijo_baby@hotmail.com"
    AIM: "bijobaby"

    http://slashome.com

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge jackal's Avatar
    Join Date
    Feb 2002
    Posts
    708

    Default

    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. #5
    cPanel Partner NOC cPanel Partner NOC Badge jackal's Avatar
    Join Date
    Feb 2002
    Posts
    708

    Default

    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.

Similar Threads & Tags
Similar threads

  1. PHP: Error parsing /usr/local/lib/php.ini on line 827
    By Nicarlo in forum New User Questions
    Replies: 9
    Last Post: 04-29-2011, 11:13 PM
  2. PHP: Error parsing /usr/local/lib/php.ini on line 782
    By BerbBrown in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-11-2011, 06:07 PM
  3. PHP: Error parsing /usr/local/lib/php.ini on line 1136
    By desiguru in forum New User Questions
    Replies: 1
    Last Post: 12-08-2009, 08:11 PM
  4. Replies: 2
    Last Post: 10-29-2007, 01:17 PM
  5. Horde Error -/usr/local/cpanel/base/horde/lib/Registry.php
    By compunet2 in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 01-20-2004, 09:19 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube