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.

error parsing /usr/local/lib/php.ini on line 781

Discussion in 'General Discussion' started by master1989, Oct 30, 2011.

  1. master1989

    master1989 Registered

    Joined:
    Oct 30, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    hello every body

    i needed some help to fix this error
    i make this command in my ssh to see errors on server and i found this
    Code:
    [Mon Oct 31 01:42:42 2011] [error] [client xx.xx..xx] PHP:  Error parsing /usr/local/lib/php.ini on line 781
    [Mon Oct 31 01:42:42 2011] [error] [client xx.xx.xxx] PHP:  Error parsing /usr/local/lib/php.ini on line 781
    [Mon Oct 31 01:42:42 2011] [error] [client xx.xxx.xx] PHP:  Error parsing /usr/local/lib/php.ini on line 781
    [Mon Oct 31 01:42:42 2011] [error] [client xx.xx.xx] PHP:  Error parsing /usr/local/lib/php.ini on line 781
    [Mon Oct 31 01:42:42 2011] [error] [client xxx.xxx] PHP:  Error parsing /usr/local/lib/php.ini on line 781
    
    
    
    how can i fix it please
     
    #1 master1989, Oct 30, 2011
    Last edited: Oct 30, 2011
  2. morissette

    morissette Well-Known Member

    Joined:
    May 24, 2009
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Austin, TX
    cPanel Access Level:
    Root Administrator
    Comment or fix line 781, what is that line anyway?
     
  3. master1989

    master1989 Registered

    Joined:
    Oct 30, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    hello

    this is line number 780,781
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Please ensure the entry for "url_rewriter.tags" is quoted. For example:

    Code:
    url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
    Save the change, and then restart Apache.

    Thank you.
     
  5. master1989

    master1989 Registered

    Joined:
    Oct 30, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    hello
    thank you for your replay
    but tell now
    the same error
    ??
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You may also want to ensure there are no duplicate entries for:

    Code:
    url_rewriter.tags
    Open the /usr/local/lib/php.ini file in the text editor of your choice, and remove any duplicate entries you find for that option.

    If the issue persists, feel free to open a support ticket via:

    Submit A Ticket

    Thank you.
     
  7. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Just to make it easier to both get the lines in question without opening the file and to find a set line in a file, I wanted to provide the commands (this makes it easier to determine what is happening without opening / editing the file initially). Also, I provide a backup of the file before editing in the example.

    1. Make a backup of the file:

    Code:
    cp /usr/local/lib/php.ini /usr/local/lib/php.ini.bak111101
    2. Check line 781 in the file:

    Code:
    sed -n 781p /usr/local/lib/php.ini
    3. Check for instances of url_rewriter.tags in the file:

    Code:
    grep -i ^url_rewriter /usr/local/lib/php.ini
    The ^ character will only check lines that start with url_rewriter so that you don't end up pulling commented out lines with ; at the beginning. The -i flag tells grep to check for upper and lowercase instances of the term. I always use -i just to be on the safe side so that searches are not case sensitive.
     
Loading...

Share This Page