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!

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:
    51
    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:
    66
    Location:
    Austin, TX
    cPanel Access Level:
    Root Administrator
    Comment or fix line 781, what is that line anyway?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. master1989

    master1989 Registered

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

    this is line number 780,781
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,961
    Likes Received:
    1,821
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. master1989

    master1989 Registered

    Joined:
    Oct 30, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    51
    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:
    43,961
    Likes Received:
    1,821
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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