Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    60
    Likes Received:
    0
    Trophy Points:
    56
    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

    Joined:
    Feb 25, 2010
    Messages:
    1,835
    Likes Received:
    20
    Trophy Points:
    143
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. rohit09

    rohit09 Well-Known Member

    Joined:
    Dec 10, 2010
    Messages:
    60
    Likes Received:
    0
    Trophy Points:
    56
    Thanks.

    I fixed it :)
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice