Results 1 to 5 of 5

Thread: Parse error: parse error, unexpected $ in /var/www/html/sugarcrm/config.php

  1. #1
    jacquesb is offline Junior Member
    Join Date
    Sep 2006
    Posts
    2

    Default Parse error: parse error, unexpected $ in /var/www/html/sugarcrm/config.php

    Good day,

    Please could someone help me with this problem.

    I have a fresh install of Fedora Core 4, and I am having problems installing SugarCRM 4.5.0.

    I have created my database by running the following commands:
    mysql -B -e "drop database if exists sugarcrm"
    mysql -B -e "create database sugarcrm"
    mysql -B -e "grant all privileges on sugarcrm.* to sugarcrm@localhost identified by 'sugarcrm'"

    I then unzip the SugarCRM package by running
    unzip -qod '/var/www/html' SugarSuite-4.5.0.zip
    I then rename the Sugar install directory to sugarcrm, by running:
    /bin/mv -f /var/www/html/SugarSuite-Full-4.5.0 /var/www/html/sugarcrm
    I then change the file ownership and permissions, by running:
    chmod 700 /var/www/html/sugarcrm -R
    chown apache.apache /var/www/html/sugarcrm -R

    From there I open up a web browser, and go to the Sugar directory, where I run the installer.

    Everthing goes well,

    Step 2 shows no errors or problems. Here is the read-out:
    Component Status
    PHP Version OK (ver 5.0.4 )
    MySQL Database OK
    MB Strings Module OK
    XML Parsing OK
    PHP Safe Mode Turned Off OK
    PHP Allow Call Time Pass Reference Turned On OK
    PHP Memory Limit >= 32M OK (Unlimited)
    Writable SugarCRM Configuration File (config.php) OK
    Writable Custom Directory OK
    Writable Modules Sub-Directories and Files OK
    Writable Data Sub-Directories OK
    Writable Cache Sub-Directories OK
    Writable Session Save Path (/var/lib/php/session) OK
    Optional Components Status
    IMAP Module OK
    cURL Module OK
    PHP-JSON Module (v 1.1.1) Not found: The PHP-JSON PHP module reaps enormous performance benefits.
    ZLIB Compression Module OK

    Note: Your php configuration file (php.ini) is located at:
    /etc/php.ini


    In step 3, I make the Hostname, the IP of the MySQL server, or 192.168.1.10. The DB name, username and password is "sugarcrm". The priviledged db name is root, with no password (as I have not set one yet, still testing...)

    Then steps 4-6 I do not change.

    Step 7 runs cleanly. When I click on the "Next" button, I get the following error message:
    Parse error: parse error, unexpected $ in /var/www/html/sugarcrm/config.php on line 237

    I have attached the config.php file to this message.

    I would really appreciate it if anyone could assist me with this problem.
    Attached Files Attached Files

  2. #2
    rdtaylor is offline Sugar Community Member
    Join Date
    Sep 2006
    Location
    Brisbane, Queensland, Australia
    Posts
    40

    Default Re: Parse error: parse error, unexpected $ in /var/www/html/sugarcrm/config.php

    This looks like the same problem I had when I posted about the config.php file being truncated...

    If you hand edit the config file and close any open quotes, then put a closing ) and a closing ?>, then save the config.php file, and retry it will work...(at least it did for me...)

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

    Default Re: Parse error: parse error, unexpected $ in /var/www/html/sugarcrm/config.php

    Hi,

    It still does not work.

    The last couple of lines read:
    'upload_dir' => 'cache/upload/',
    'upload_maxsize' => 3000000,
    'use_php_code_json' => true,
    'verify_client_ip' =>

    By closing off the parenthesis will not be able to work here

    Does anyone know of a solution to this problem?

  4. #4
    coocad is offline Sugar Community Member
    Join Date
    Sep 2006
    Posts
    16

    Default Re: Parse error: parse error, unexpected $ in /var/www/html/sugarcrm/config.php

    the last lines of your config.php have got to look like this:

    'upload_dir' => 'cache/upload/',
    'upload_maxsize' => 3000000,
    'use_php_code_json' => true,
    'verify_client_ip' => true,
    );
    ?>

  5. #5
    coolest is offline Member
    Join Date
    Nov 2006
    Posts
    9

    Default Re: Parse error: parse error, unexpected $ in /var/www/html/sugarcrm/config.php

    HI,

    I had the same parse error after installation. I closed all the tags
    and then sugar starts.

    As admin I have changed the mail configuration and after saving it
    BOOM! Parse error again. Always at the end of config.php file.

    Reclose the tags and then sugar starts again.

    Rechanged mail configuration and saved and than parse error
    again.

    I think it is not the right behaviour.

    Anyone knows how to fix it?

    Thank you.


    -- Nicola

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
  •