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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    7
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,782
    Likes Received:
    1,712
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  3. Volt55

    Volt55 Member

    Joined:
    Feb 20, 2017
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    Thanks Michael.
     
Loading...

Share This Page