Results 1 to 2 of 2

Thread: File config.php truncated upon install or changing settings

  1. #1
    VinzC is offline Junior Member
    Join Date
    Sep 2006
    Posts
    3

    Default File config.php truncated upon install or changing settings

    Hi.

    I've installed SugarCRM CE Full 5.0.0e successfully on a Gentoo Linux test machine. After installing I could also successfully upload a language pack and use it.

    So I've tar'ed SugarCRM directory tree in its initial state (i.e. before running the first-time install steps), with the appropriate permissions from the test machine and unpacked it on the production machine. The installation fails during phase 11 (IIRC), after creating the database and the CRM user, while creating config.php. I then get a PHP syntax error message about config.php. The file is truncated on the line that says:
    Code:
    ...
      ),
      'upload_dir' => 'cache/upload/',
      'upload_maxsize' => 3000000,
      'use_php_code_json' => true,
      'verify_client_ip' =
    I must manually complete the file:
    Code:
    ...
      ),
      'upload_dir' => 'cache/upload/',
      'upload_maxsize' => 3000000,
      'use_php_code_json' => true,
      'verify_client_ip' => true,
    );
    Eventually the file is also truncated whenever I change some system settings - but it doesn't seem to happen again. In the meantime uploading files with Module Uploader also fails with a PHP error message:
    Code:
    Error: PCLZIP_ERR_BAD_FORMAT (-10) : Invalid End of Central Dir Record Size : 13
    Uploading the same file to the test machine succeeds. BTW I'm uploading to the production machine through the Internet so not at the same speed: my upload speed is 128Kbit/s and the language pack I'm trying to send is about 200KB.

    I'm using php-5.2.5-r1 on both the test and production machines along with apache-2.2.8. I'm almost sure both problems are linked but I've got no clue.

    Can anyone help?
    Last edited by VinzC; 2008-05-24 at 12:05 PM.

  2. #2
    VinzC is offline Junior Member
    Join Date
    Sep 2006
    Posts
    3

    Default Re: File config.php truncated upon install or changing settings

    At least the error message I get while uploading a module or language file is solved. I found the solution from SugarCRM archives. I initially had to change my php.ini for eGroupWare:
    Code:
    mbstring.func_overload = 7
    but SugarCRM requires
    Code:
    mbstring.func_overload = 0
    So I changed the directive in php.ini and added mbstring.func_overload = 7 to the <Directory> block for eGroupWare Apache configuration and it worked.
    I haven't tried to setup Sugar again since I no longer experienced truncating of config.php.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 2006-04-20, 03:05 PM
  2. Error changing system settings
    By markjd in forum Help
    Replies: 0
    Last Post: 2006-04-03, 09:00 AM
  3. config.php file. use DEFINE() and not hard code it.
    By djtremors in forum Feature Requests
    Replies: 0
    Last Post: 2006-01-17, 07:02 AM
  4. Empty config.php at the end of install
    By aemadrid in forum Help
    Replies: 2
    Last Post: 2005-08-01, 06:29 PM
  5. Replies: 2
    Last Post: 2004-10-27, 08:44 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
  •