The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP syntax error How to fix?

Discussion in 'General Discussion' started by rohit09, Oct 5, 2011.

  1. rohit09

    rohit09 Well-Known Member

    Joined:
    Dec 10, 2010
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    6
    Code:
    root@local [~]# php -v
    PHP:  syntax error, unexpected '(' in /usr/local/lib/php.ini on line 233
    PHP 5.3.8 (cli) (built: Oct  5 2011 12:46:20)
    Copyright (c) 1997-2011 The PHP Group
    Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
    Please tell me how to fixed that ?
     
  2. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    The error message tells you exactly where you should look:

    Look at, or near, line 233 in /usr/local/lib/php.ini. There is an unexpected '(' character.

    It should stand out, because it will look out of place, and probably will not have a closing parenthesis ')'.

    If you open the php.ini file in vi, you can simply type '233' (without the quotation marks) and the cursor will be placed directly on that line.
     
  3. rohit09

    rohit09 Well-Known Member

    Joined:
    Dec 10, 2010
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    6
    Thanks.

    I fixed it :)
     
Loading...

Share This Page