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!

Upgrade to php 7.2 htaccess question

Discussion in 'General Discussion' started by Volt55, Dec 28, 2017.

  1. Volt55

    Volt55 Member

    Joined:
    Feb 20, 2017
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    Hi. When I upgraded from php 5.6 to 7.2, all of my websites had this in their htaccess file:

    # php -- BEGIN cPanel-generated handler, do not edit
    # NOTE this account's php is controlled via FPM and the vhost, this is a place holder.
    # Do not edit. This next line is to support the cPanel php wrapper (php_cli).
    # AddType application/x-httpd-ea-php72 .php .phtml
    # php -- END cPanel-generated handler, do not edit

    Should I uncomment the 4th line above and if so, what will it do?
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    No, there's no need to modify those entries in the .htaccess file. It's automatically updated to reflect the correct entries whenever you change a PHP version via cPanel or WHM.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Volt55

    Volt55 Member

    Joined:
    Feb 20, 2017
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    Thanks Michael.
     
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