Results 1 to 4 of 4

Thread: Installation Error: SugarBean.php on line 38

  1. #1
    kayeoz2 is offline Junior Member
    Join Date
    Dec 2006
    Posts
    2

    Default Installation Error: SugarBean.php on line 38

    Hello,
    I'm trying to install SugarCRM Opensource 4.5.0f. At Step 6 of the Setup wizard, I click <Next> to confirm my settings and I get the following two errors...

    Warning: main(modules/DynamicFields/DynamicField.php) [function.main]: failed to open stream: No such file or directory in /home/.../data/SugarBean.php on line 38

    Fatal error: main() [function.require]: Failed opening required 'modules/DynamicFields/DynamicField.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/.../data/SugarBean.php on line 38

    The 'System Check Acceptance' was OK for all except PHP Version which case I have PHP Version 4.4.4 which is unsupported.

    Other helpful information:
    Operating System: Linux
    Kernel version: 2.6.9-42.0.2.ELsmp
    Machine Type: i686
    Apache version: 1.3.37 (Unix)
    PHP version: 4.4.4
    MySQL version: 4.1.21-standard

    Are the installation errors a result of the unsupported PHP version? Any other ideas how to resolve the issue? (please note...I am not a programmer or system administrator. I only have a very general knowledge)

    Thanks,
    k

  2. #2
    mycrmspacegunnar is offline Sugar Community Member
    Join Date
    Sep 2006
    Posts
    105

    Default Re: Installation Error: SugarBean.php on line 38

    Hi,

    Sugar runs fine with PHP version of 4.4.4. Don't worry about that.

    Your problems sound as bit like something "just" went wrong during install.
    I assume you downloaded the Sugar.zip file and unzipped it.
    Then you copied this folder into your webserver home directory and made all the files belong to (owned by) the webserver
    with something like this "chown -R www-data sugarfolder".
    And you made sure that your PHP setting are okay.
    For the install its important that the PHP instances are allowed to execute long enough
    and that they are allowed to allocate enough memory.

    Locate your php.ini file (e.g. /etc/php4/apache/php.ini)
    And make sure that the parameters max_execution_time and memory_limit are high enough.
    Good working values are:
    max_execution_time =60
    memory_linit=100M

    then restart your webserver with for example this command
    # /etc/init.d/apache restart

    Can you try the install again?


    Cheers
    Gunnar von Boehn
    myCRMspace

  3. #3
    kayeoz2 is offline Junior Member
    Join Date
    Dec 2006
    Posts
    2

    Default Re: Installation Error: SugarBean.php on line 38

    Gunnar,
    Thank you for your response. I understand how to do most of your suggestions, except how do I do the following...
    1) Make all the files belong to (owned by) the webserver with something like this "chown -R www-data sugarfolder".
    2) Make sure that your PHP setting are okay.

    Thanks,
    k

  4. #4
    mycrmspacegunnar is offline Sugar Community Member
    Join Date
    Sep 2006
    Posts
    105

    Default Re: Installation Error: SugarBean.php on line 38

    HI,

    Quote Originally Posted by kayeoz2
    except how do I do the following...
    1) Make all the files belong to (owned by) the webserver with something like this "chown -R www-data sugarfolder".
    Your webserver runs as a specific user.
    On linux the webserver typically runs as user www-data.
    For Sugar its important that the webserver can write and modify all the files of sugar.

    So if you have downloaded the sugar-archive and unzipped it you need to change
    the ownership of all files to the username of the webserver.
    To be able to od this you need to be root.

    If type the below line in a shell then you will see under which user the apache runs:
    >ps aux | grep apache

    The first column will show the user
    This should retuns something like this:

    root 13719 0.0 0.8 82660 7468 ? S Oct09 0:09 /usr/sbin/apache
    www-data 21560 0.1 3.8 88024 34820 ? S 15:35 0:02 /usr/sbin/apache
    www-data 21561 0.1 4.7 87012 43520 ? S 15:35 0:03 /usr/sbin/apache
    www-data 21562 0.2 5.7 93880 51704 ? S 15:35 0:04 /usr/sbin/apache
    www-data 21563 0.1 3.5 87996 31808 ? S 15:35 0:02 /usr/sbin/apache
    www-data 21564 0.0 2.1 85172 19472 ? S 15:35 0:00 /usr/sbin/apache
    www-data 21565 1.7 6.5 99732 59560 ? S 15:35 0:37 /usr/sbin/apache
    www-data 21566 0.0 2.6 88116 23656 ? S 15:35 0:01 /usr/sbin/apache
    www-data 21590 0.0 3.0 86568 27812 ? S 15:37 0:01 /usr/sbin/apache
    www-data 21591 0.2 4.0 86048 36628 ? S 15:37 0:04 /usr/sbin/apache

    In this example you see that all apache workers are running as user www-data

    Now go to the folder where you have unzipped Sugar into
    and execute the below line in the shell
    >chown -R www-data *

    It will change the ownership of all files and directories to the webserver.
    Now the webserver will be able to modify and alter the files as needed.

    2) Make sure that your PHP setting are okay.
    With this I meant the two parameters in your PHP config.
    I assume that your Linux install used PHP as apache module (this is the default)
    Then typically your php config file is located at
    /etc/php4/apache/php.ini
    or if you use php5 its in
    /etc/php5/apache/php.ini

    Open this file (as root) with a texteditor and make sure that the two parameters
    for memory and executiontime are hgih enough.

    I hope this help.
    If you get stuck please tell me which Linux flavor you are using.


    Cheers
    Gunnar
    Gunnar von Boehn
    myCRMspace

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
  •