Results 1 to 5 of 5

Thread: Trouble with DBmanager.php

  1. #1
    kerssies is offline Junior Member
    Join Date
    Aug 2006
    Posts
    2

    Default Trouble with DBmanager.php

    Hello,

    on step 6 of my installation process I get the following error report:

    Warning: main() [function.main]: open_basedir restriction in effect. File(/usr/share/pear/DBManager.php) is not within the allowed path(s): (/www/web1558:/tmp) in /www/web1558/html/bestuur/include/database/MysqlManager.php on line 77

    Warning: main(DBManager.php) [function.main]: failed to open stream: Operation not permitted in /www/web1558/html/bestuur/include/database/MysqlManager.php on line 77

    Fatal error: main() [function.require]: Failed opening required 'DBManager.php' (include_path='.:/usr/share/pear') in /www/web1558/html/bestuur/include/database/MysqlManager.php on line 77

    I have no access to php.ini and settings, mysql version is 4.1.x,
    Operating System is Windows XP

    Could anyone please help me to solve these errors?
    Thanks.

  2. #2
    derby is offline Junior Member
    Join Date
    Aug 2006
    Posts
    3

    Default Re: Trouble with DBmanager.php

    PHP Warning: main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/DBManager.php) is not within the allowed path(s): (/home/vhosts/XXX/httpdocs:/tmp:/home/vhosts/projects.shiftrecords.com/egw_files:/home/vhosts/XXX/tmp:/home/vhosts/XXX/httpdocs/sugar/include/database) in /home/vhosts/XXX/httpdocs/sugar/include/database/MysqlManager.php on line 77
    PHP Warning: main(DBManager.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/vhosts/XXX/httpdocs/sugar/include/database/MysqlManager.php on line 77
    PHP Fatal error: main() [<a href='function.require'>function.require</a>]: Failed opening required 'DBManager.php' (include_path='.:') in /home/vhosts/XXX/httpdocs/sugar/include/database/MysqlManager.php on line 77

    I have added extra paths to open_basedir setting.

    I have also tried to add extra paths to include_path. However, if I enable this setting in the httpd.conf file it breaks php in sugarcrm.

    I have tried the include_path setting on another vhost and it works as it should. Its only when I enable for the sugarcrm site that it breaks php.

    When I say it breaks php, I mean when I visit http://mysite.com/sugar, the browser downloads index.php file as if the server doesn't recognize or interpret php. Perhaps this indicates another problem, but the include_path bug, for now, is only applicable to sugarcrm. The include_path setting works fine for a program called egroupware.

    My signature indicates versions.

  3. #3
    kennangle is offline Junior Member
    Join Date
    Dec 2005
    Posts
    1

    Default Re: Trouble with DBmanager.php

    (by Didlo) in forum archive from May.

    My hosting company is Godaddy, VDH service. This worked.
    Hi Neil,

    I had the same problem with the open base dir restriction. I am using Plesk 8 - I think that it is plesk which is causing the problems.

    If you have ssh access to the server you should be able to switch the open_basedir to none by creating a file called vhost.conf in the folder /var/www/vhost/<yourdomain>/conf/ The file has to be created by the root user. In theory if you put I
    PHP Code:
    <Directory /var/www/vhosts/<yourdomain>/httpdocs>
    <IfModule sapi_apache2.c>
    php_admin_value open_basedir none
    </IfModule>
    <IfModule mod_php5.c>
    php_admin_value open_basedir none
    </IfModule>
    </Directory>


    in the vhost.conf file it will over-ride the settings in the httpd.include file which is in the same directory (the one that when you open it has a big capped up warning intimating that any changes to this will get you in trouble and it will be your own fault)

    In theory you then need to restart plesk at which point it will see that there is a vhost.conf file in the conf directory and automatically add an include line into the httpd.include file for you. This should then mean that there is no open_basedir restriction and everything will be ok.

    I keep saying in theory because I can't get plesk to recognise the vhost.conf file - i got it to work by changing the value of php_admin_value open_basedir in the httpd.include file - this isn't a long term fix as plesk overwrites this file everytime you make a change to the virtual host.

    Hope this helps,
    Cheers

  4. #4
    befree22 is offline Member
    Join Date
    Jun 2006
    Posts
    6

    Question Re: Trouble with DBmanager.php

    I also get a fatal error in dbmanager.php line 173. Here's the actual error:

    Creating Sugar configuration file (config.php)

    Cannot write to the .htaccess file.

    If you want to secure your log file from being accessible via browser, create an .htaccess file in your log directory with the line:

    # BEGIN SUGARCRM RESTRICTIONS RedirectMatch /sugarcrm/sugarcrm.log.* http://sh/sugarcrm/log_file_restricted.html RedirectMatch /sugarcrm/emailman.log http://sh/sugarcrm/log_file_restricted.html RedirectMatch /sugarcrm/not_imported_(.*).txt http://sh/sugarcrm/log_file_restricted.html RedirectMatch /sugarcrm/XTemplate/(.*)/(.*).php http://sh/sugarcrm/index.php RedirectMatch /sugarcrm/data/(.*).php http://sh/sugarcrm/index.php RedirectMatch /sugarcrm/examples/(.*).php http://sh/sugarcrm/index.php RedirectMatch /sugarcrm/include/(.*).php http://sh/sugarcrm/index.php RedirectMatch /sugarcrm/include/(.*)/(.*).php http://sh/sugarcrm/index.php RedirectMatch /sugarcrm/log4php/(.*).php http://sh/sugarcrm/index.php RedirectMatch /sugarcrm/log4php/(.*)/(.*).php http://sh/sugarcrm/index.php RedirectMatch /sugarcrm/metadata/(.*)/(.*).php http://sh/sugarcrm/index.php RedirectMatch /sugarcrm/modules/(.*)/(.*).php http://sh/sugarcrm/index.php RedirectMatch /sugarcrm/soap/(.*).php http://sh/sugarcrm/index.php RedirectMatch /sugarcrm/emailmandelivery.php http://sh/sugarcrm/index.php # END SUGARCRM RESTRICTIONS
    Creating Sugar application tables, audit tables, and relationship metadata...

    Fatal error: Cannot instantiate non-existent class: mysqlmanager in /home/tmm/www/sh/sugarcrm/include/database/DBManager.php on line 173


    Can someone please help me fix this? My server info is as follows:
    » Operating system type and version: FreeBSD 4.7-RELEASE-p28
    » Sugar Suite version: 4.2.0 Latest Stable
    » Webserver type and version: Apache1.3.33
    » PHP version: PHP/4.4.2

    Thanks

  5. #5
    scliburn is offline Sugar Community Member
    Join Date
    Sep 2005
    Location
    Southern California
    Posts
    50

    Default Re: Trouble with DBmanager.php

    I am also getting the same error as befree22 and no fix has worked.

    running 4.5.0h - Open source
    MAC OSX
    MySQL - 5.0.24-max
    MySQL client version: 4.1.13a
    PHP Version 4.4.4
    Apache

    I'm sure it's somethin on the MAC, any advice or suggestions would be awesome.

    All my linux/windows installations are a breeze. No issues.
    Last edited by scliburn; 2007-01-04 at 08:52 PM.
    Scott Cliburn

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •