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.

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:
    906
    Likes Received:
    65
    Trophy Points:
    103
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
  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:
    906
    Likes Received:
    65
    Trophy Points:
    103
    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,
     
Loading...

Share This Page