Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 4 1 2 3 ... LastLast
Results 1 to 15 of 46
  1. #1
    Member
    Join Date
    Feb 2007
    Posts
    11

    Default [Case 46972] url_rewriter.tag - PHP: Error Parsing

    Hello,

    I just checked my system update email and saw this error:

    Running Cleanups...Hostname Virtual Host is already setup
    ...Done
    Updating services & databases...PHP: Error parsing /usr/local/lib/php.ini on line 793
    PHP version file has been updated to 5.2.9
    Here is what my php.ini looked like:

    ; url_rewriter.tags: (ini file field description not available)
    url_rewriter.tags = a=href,area=href,frame=src,input=src,form=,fieldset=

    I fixed the error by placing Quotes around the config value:
    url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="


    Not sure how this line was added, but I did not edit the php.ini at all before this. Maybe a bug or something.

  2. #2
    Member
    Join Date
    Feb 2011
    Posts
    20

    Default re: [Case 46972] url_rewriter.tag - PHP: Error Parsing

    Quote Originally Posted by logart View Post
    Hello,

    I just checked my system update email and saw this error:



    Here is what my php.ini looked like:

    ; url_rewriter.tags: (ini file field description not available)
    url_rewriter.tags = a=href,area=href,frame=src,input=src,form=,fieldset=

    I fixed the error by placing Quotes around the config value:
    url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="


    Not sure how this line was added, but I did not edit the php.ini at all before this. Maybe a bug or something.
    I started getting the exact same problem today. I added the quotes around and it started working then stopped and now all php script just hang. typing 'php -v' at command line returns nothing. If I put it back to how it was then everything works however the Zend engine stops working. This is originally how I found this problem.

    # php -i | grep "url_rewriter.tags"
    PHP: Error parsing /usr/local/lib/php.ini on line 796
    url_rewriter.tags => a => a

  3. #3
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: [Case 46972] url_rewriter.tag - PHP: Error Parsing

    My own php.ini at /usr/local/lib/php.ini has the following:

    Code:
    url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
    So it has the quotes. Did either of you have EasyApache run recently or any other changes? Also, which version of cPanel are you using and do you have it updating nightly by cron?

    Code:
    cat /usr/local/cpanel/version
    For the issue with php -v functioning, could you try moving the existing php.ini file and recreating it?

    Code:
    mv /usr/local/lib/php.ini /usr/local/lib/php.ini.bak110202
    /scripts/phpini
    This will restore a default php.ini file. You'd then have to re-add anything you had added or customized, but could find those via a diff:

    Code:
    diff /usr/local/lib/php.ini /usr/local/lib/php.ini.bak110202
    Thanks.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  4. #4
    Member
    Join Date
    Feb 2011
    Posts
    20

    Default re: [Case 46972] url_rewriter.tag - PHP: Error Parsing

    I have the following on 2 lines in my php.ini.

    Line: 796
    Code:
    ; url_rewriter.tags: (ini file field description not available)
    url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
    Line: 1598
    Code:
    ; The URL rewriter will look for URLs in a defined set of HTML tags.
    ; form/fieldset are special; if you include them here, the rewriter will
    ; add a hidden <input> field with the info which is otherwise appended
    ; to URLs.  If you want XHTML conformity, remove the form entry.
    ; Note that all valid entries require a "=", even if no value follows.
    url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
    Line 796 originally did NOT have quotes around it but 1598 did. If I comment out 796 php will not run anything. If I remove the quotes it runs but Zend will not fully load.

    Code:
    #  cat /usr/local/cpanel/version
    11.28.76-RELEASE_51149
    EasyApache was not manually run before this started. I did run it 2 times after while trying to fix the problem.

    After I make a backup then rebuild the php.ini using the script I only have one "url_rewriter.tags" line in the file. I then readded the following to then end if the file re-enable Zend and thus seems to be working.

    Code:
     ; zend_extension: (ini file field description not available)
    zend_extension="/usr/local/Zend/lib/Optimizer-3.3.9/php-5.2.x/ZendOptimizer.so"
    After going back into WHM -> PHP Configuration Editor -> Advanced to make some changes and saving I then get this with a once again broken Zend:
    Code:
    # php -v
    PHP:  Error parsing /usr/local/lib/php.ini on line 826
    PHP 5.2.16 (cli) (built: Feb  3 2011 17:19:53)
    Copyright (c) 1997-2010 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
    Line: 826
    Code:
    url_rewriter.tags = a=href,area=href,frame=src,input=src,form=,fieldset=
    Also Line: 1212
    Code:
    url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
    So right now I have everything working (or appears to be) but I can not use the WHM -> PHP Configuration Editor to make changes. I'm manually editing the php.ini for the time being. It also appears that the WHM editor is not placing double quotes around many of the string values when it goes to save the php.ini file. I honestly don't know how many of the Cpanel scripts work but this is what I see in the 'diff php.ini php.ini.bak' results.

  5. #5
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: [Case 46972] url_rewriter.tag - PHP: Error Parsing

    Thank you rezman for the details. I'm going to be investigating using the PHP Configuration Editor tonight during my shift to see the results of using it for that url_rewriter.tags line.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  6. #6
    Member
    Join Date
    Jul 2005
    Posts
    37

    Default re: [Case 46972] url_rewriter.tag - PHP: Error Parsing

    Hi,

    I have same problem now since I updated to the latest version of WHM Release 11.28.83.
    Please tell me how to fix it because the php configuration edior doesn't seem to allow the " " around it. it just complete igores my " "

  7. #7
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: [Case 46972] url_rewriter.tag - PHP: Error Parsing

    You will need to edit /usr/local/lib/php.ini directly in root SSH and ensure that only one copy of url_rewriter.tags is there. The PHP Configuration Editor is duplicating the value and not putting the "" around it, so you have to manually edit the value rather than using WHM.

    We do have a case opened about this issue, which is internal case #46972. Until the PHP Configuration Editor has been fixed, this simply has to be done manually by editing /usr/local/lib/php.ini
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  8. #8
    Member
    Join Date
    Jul 2005
    Posts
    37

    Default Re: [Case 46972] url_rewriter.tag - PHP: Error Parsing

    thank you very much

  9. #9
    Member
    Join Date
    Feb 2008
    Posts
    82

    Default Re: [Case 46972] url_rewriter.tag - PHP: Error Parsing

    we have exactly the same issue and manual fix to php.ini is NOT working~~

  10. #10
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: [Case 46972] url_rewriter.tag - PHP: Error Parsing

    Did you remove the second url_rewriter.tags entry and then ensure the first one has quotes around it? If you have, please open a ticket using WHM > Support Center > Contact cPanel or via the link in my signature.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  11. #11
    Member
    Join Date
    Feb 2008
    Posts
    82

    Default Re: [Case 46972] url_rewriter.tag - PHP: Error Parsing

    Hi

    yea, issued ticket long time ago

    could you please fix this ASAP - ticket #1237725

    thanks

  12. #12
    Member
    Join Date
    Feb 2008
    Posts
    82

    Default Re: [Case 46972] url_rewriter.tag - PHP: Error Parsing

    There were duplicated ZEND too, removed it, now working

  13. #13
    Member boonjackmedia's Avatar
    Join Date
    Apr 2010
    Location
    Cincinnati, OH USA
    Posts
    34

    Default Re: [Case 46972] url_rewriter.tag - PHP: Error Parsing

    I'm guessing the PHP editor is not fixed yet?

    We had duplication errors also since late 03/01 and today.
    When any edits are made and then saved, a blank page is returned.
    Looks like it is duplicating after the php.ini "modules" section, we made a bk copy and then created a new php.ini last night for php5-3.4.

    Ran sys/server updates, easyapache, and makecpphp but the problem still exists with the whm php editor.

    I think issue this has to do with the changes of php5-2.9(cpanel php version) to php5-3.4(Our php version) related to the php.ini's settings; parsing, functions, variables, etc.

    Our php.ini needed to be modified a lot for php5-3.4, ex:
    Code:
    url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
    Needed to remove the "form=" setting.

    The cPanel php.ini (/var/cpanel/3rdparty/lib) uses:
    Code:
    register_argc_argv = On
    Which needs to be off, if: variables_order = "EGPCS"
    This line needs commented out also: gpc_order = "GPC"

    In our php.ini we also had to change:
    Code:
    allow_url_fopen = On
    to Off, or we couldn't access PhpMyAdmin via cPanel/WHM, because it prompted a file download instead of opening the php.

    And some other settings, too many to list here.

    Our Server specs:
    Apache 2.2-1.7
    Prefork
    Mod_fcgid

    Code:
    root@# cat /usr/local/cpanel/version
    11.28.85-EDGE_51177
    
    root@# php -v
    PHP 5.3.4 (cli) (built: Mar  3 2011 01:40:12)
    Copyright (c) 1997-2010 The PHP Group
    Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
        with eAccelerator v0.9.6.1, Copyright (c) 2004-2010 eAccelerator, by eAccelerator
        with the ionCube PHP Loader v3.3.20, Copyright (c) 2002-2010, by ionCube Ltd.
    Php 5 only
    Fcgi
    Suexec
    Last edited by boonjackmedia; 03-03-2011 at 07:16 PM.
    Mike Sayre

    Blog | Portal

  14. #14
    Member
    Join Date
    Jul 2004
    Posts
    37

    Default Re: [Case 46972] url_rewriter.tag - PHP: Error Parsing

    I just had a server down due to this... running WHM 11.28.83 - so it appears it is not fixed (at least in the RELEASE code).

    Can we get an update as to when this will be or has been fixed?

  15. #15
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: [Case 46972] url_rewriter.tag - PHP: Error Parsing

    Hello,

    I've checked the #46972 case and it is resolved in our nightly builds that will be going into 11.30. I do not see any backmerge tag for the case to put it into 11.28.

    If people are having issues and would like to see this considered for a backmerge, please submit a ticket using WHM > Support Center > Contact cPanel or the link that I have in my signature.

    Thanks.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

+ Reply to Thread
Page 1 of 4 1 2 3 ... LastLast
Similar Threads & Tags
Similar threads

  1. PHP: Error parsing /usr/local/lib/php.ini on line 827
    By Nicarlo in forum New User Questions
    Replies: 9
    Last Post: 04-29-2011, 10:13 PM
  2. PHP: Error parsing /usr/local/lib/php.ini on line 782
    By BerbBrown in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-11-2011, 05:07 PM
  3. PHP: Error parsing /usr/local/lib/php.ini on line 1136
    By desiguru in forum New User Questions
    Replies: 1
    Last Post: 12-08-2009, 07:11 PM
  4. parsing php into html
    By monckey100 in forum Database Discussions
    Replies: 10
    Last Post: 09-18-2009, 07:12 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube