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!

How can I change user PHP Version in Shell

Discussion in 'General Discussion' started by Burti, Apr 25, 2018.

  1. Burti

    Burti Registered

    Joined:
    Apr 25, 2018
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Turkey
    cPanel Access Level:
    Root Administrator
    Hello,

    I want to change user Multi PHP Version in Shell ? How can I do this ?

    Thanks.
     
  2. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,855
    Likes Received:
    135
    Trophy Points:
    118
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Burti

    Burti Registered

    Joined:
    Apr 25, 2018
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Turkey
    cPanel Access Level:
    Root Administrator
    Thanks for reply! But I want to change in file but file in where?
     
  4. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,855
    Likes Received:
    135
    Trophy Points:
    118
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Burti

    This section in the user's .htaccess file is what controls this setting:

    Code:
    # php -- BEGIN cPanel-generated handler, do not edit
    # Set the “ea-php55” package as the default “PHP” programming language.
    <IfModule mime_module>
      AddType application/x-httpd-ea-php55 .php .php5 .phtml
    </IfModule>
    # php -- END cPanel-generated handler, do not edit
    If you change the AddType to a different php version you're essentially changing the php version for the domain.

    Thank you,
     
    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