Results 1 to 9 of 9

Thread: config.php in distribution DOESN'T WORK

  1. #1
    davecampbell is offline Sugar Community Member
    Join Date
    Oct 2004
    Posts
    31

    Default config.php in distribution DOESN'T WORK

    I think there is a major issue with the config.php that comes with the 1.5 distribution, or some issue with the Step4 PHP script.

    With NO config.php in place, Step 4 creates one for you and places it in the editable field, which you can then cut-and-paste and hand create a config.php. When i do this, my system installs.

    When I leave the one that comes with the 1.5 distribution, I get a problem where something fails along the way, it clears the config.php, and everything is hosed from that point forward.

    Here is the config.php that is in the current 1.5 distribution. I'm not sure how Step 4 works, but there seems to be a missing piece that concerns db_type, somewhere around line 28.

    Has anyone else had trouble using the config.php that came with the distribution?

    ==================
    Code:
    <?php
    /*********************************************************************************
     * The contents of this file are subject to the SugarCRM Public License Version 1.1.2
     * ("License"); You may not use this file except in compliance with the
     * License. You may obtain a copy of the License at http://www.sugarcrm.com/SPL
     * Software distributed under the License is distributed on an  "AS IS"  basis,
     * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
     * the specific language governing rights and limitations under the License.
     * The Original Code is:  SugarCRM Open Source
     * The Initial Developer of the Original Code is SugarCRM, Inc.
     * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.;
     * All Rights Reserved.
     * Contributor(s): ______________________________________.
    ********************************************************************************/
    
    /* Database configuration
          db_host_name:     MySQL Database Hostname
          db_user_name:    	MySQL Username
          db_password:     	MySQL Password
          db_name:     		MySQL Database Name
    */
    
    //All of these commented out values get populated by install.php
    //$dbconfig['db_host_name'] = 	'localhost';
    //$dbconfig['db_user_name'] = 	'sugarcrm';
    //$dbconfig['db_password'] = 		'';
    //$dbconfig['db_name'] = 			'sugarcrm';
    
    //$host_name = '';
    
    //$site_URL = '';
    
    //$root_directory = '';
    
    // This is the full path to the include directory including the trailing slash
    //$includeDirectory = $root_directory.'include/';
    
    $list_max_entries_per_page = '20';
    
    $history_max_viewed = '10';
    
    //define list of menu tabs
    $moduleList = Array('Home', 'Dashboard', 'Contacts', 'Accounts', 'Opportunities', 'Cases', 'Notes', 'Calls', 'Emails', 'Meetings', 'Tasks');
    
    $default_module = 'Home';
    $default_action = 'index';
    
    //set default theme
    $default_theme = 'Amazon';
    
    // If true, the time to compose each page is placed in the browser.
    $calculate_response_time = true;
    // Default Username - The default text that is placed initially in the login form for user name.
    $default_user_name = '';
    // Default Password - The default text that is placed initially in the login form for password.
    $default_password = '';
    // Create default user - If true, a user with the default username and password is created.
    $create_default_user = false;
    // Login Message - If a message is provided, it will be placed on the login screen.  This is for site specific special instructions
    $login_message = 'Please login to the application.';
    ?>
    ==============

  2. #2
    patrick24601 is offline Sugar Community Member
    Join Date
    Sep 2004
    Posts
    129

    Default Re: config.php in distribution DOESN'T WORK

    Not a problem at all. I have never heard this reported before.
    Patrick Allmond
    Helping make SugarCRM sweeter every day.
    http://allaboutfocus.com

  3. #3
    davecampbell is offline Sugar Community Member
    Join Date
    Oct 2004
    Posts
    31

    Default Re: config.php in distribution DOESN'T WORK

    Very strange, then. Can you confirm for me, then, that the file I attached is indeed the config.php that is in the 1.5c distribution? That's the one that came with my download.

    How do you do your installs, with respect to config.php? Use the one that is in the install directory or make your own ahead of time or some other way?

    Thanks.

  4. #4
    ajcbau is offline Sugar Community Member
    Join Date
    Oct 2004
    Posts
    11

    Default Re: config.php in distribution DOESN'T WORK

    I had the exact same problem.

    I haven't tried out Davecampbell's suggested config.php yet.

    Other users reported the same problem in a differrent thread

    Regards
    Alan

  5. #5
    davecampbell is offline Sugar Community Member
    Join Date
    Oct 2004
    Posts
    31

    Default Re: config.php in distribution DOESN'T WORK

    Just to be clear, the config.php I included in a previous post is the one I had in my 1.5c distro, and it DIDN'T work - repeat DIDN'T work.

    But using the one that gets auto-generated in the absence of the installer finding a config.php, that DID work, and is NOT the one I reference in the prior post.

    I just wanted confirmation that what I did post was what others had in their 1.5c distro, in an effort to figure out the root cause of the problem.

    But, alas, most folks have just moved on to 2.0, as will I.

  6. #6
    ajcbau is offline Sugar Community Member
    Join Date
    Oct 2004
    Posts
    11

    Default Re: config.php in distribution DOESN'T WORK

    Well
    I thought this would be sorted out in Version 2 but to no avail.

    It might be something to do with my MYsql or PHP config, though I doubt it.
    phpMyadmin works flawlessly.
    Command line access to myswl works fine too.

    Any ideas?



    Regards
    Alan

  7. #7
    davecampbell is offline Sugar Community Member
    Join Date
    Oct 2004
    Posts
    31

    Default Re: config.php in distribution DOESN'T WORK

    I'm not sure you ever specified your precise problems, so I can't reply to anything specifically.

    But in MY case, I just removed the config.php from the root, and Step4 creates a file on the web page that youi can then copy into the clipboard and paste inot a blank file, which you then upload as your config.php.

    1. Delete config.php from the root of your install.

    2. run install.php

    3. ignore the fact that it reports config.php as unwriteable, it's not even there

    4. In Step4, grab the text of what it produces in a nice editable area, and paste that into a blank file that you name config.php.

    5. Upload that config.php to the root of your install.

    6. Run index.php, and you're off.

    This is what worked for me.

    I'm still waiting for someone to confirm that they had the same file as me with their 1.5c, but I'm losing interest fast. Almost losing interest in SugarCRM.

  8. #8
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: config.php in distribution DOESN'T WORK

    Hi folks, we're looking into this issue now. This is a new for us.

    Regards,
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

  9. #9
    ajcbau is offline Sugar Community Member
    Join Date
    Oct 2004
    Posts
    11

    Default Re: config.php in distribution DOESN'T WORK

    Ok
    I got it to work eventually.
    I had to set the password for the Sugaruser [ the user in the config.php file] to a blank password.
    For some reason this allowed me to select the database and get going.
    I dont know why, I suspect its an apache thing.

    It looks good, so far so good.
    I believe that this has the potential be an open source star

    Regards
    Alan

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 2008-02-21, 10:26 PM
  2. Replies: 0
    Last Post: 2006-07-26, 07:49 PM
  3. Empty Config.php after days of install
    By andyhingston in forum Help
    Replies: 0
    Last Post: 2006-04-28, 08:34 AM
  4. Installer CLEARING config.php
    By davecampbell in forum Help
    Replies: 0
    Last Post: 2004-10-23, 11:11 PM

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
  •