HOW To Change PHP Version, Module and PHP Variables?

  • Home
  • Wordpress
  • HOW To Change PHP Version, Module and PHP Variables?

HOW To Change PHP Version, Module and PHP Variables? PHP Version Switch all of our cPanel Servers are running on CloudLinux OS with cPanel/WHM.

PHP Selector is a CloudLinux feature that allows each cPanel user to select PHP version, module and php variables based on their needs.

You can easily switch between several different PHP Versions such as 5.6, 7.1, 7.2 as well as enable or disable many PHP modules, such as apc, mysqli, gd, pdo, soap and etc, entirely based on your needs. It also allows user to change the PHP Variables/Settings such as: max_execution_time, upload_max_filesize, memory_limit and etc.


PHP Version Switch you can find PHP Selector by login to cPanel >> Select PHP Version. The default php version of any cPanel is set to NATIVE version, which doesn’t allow any modification. But user will be able to set another version from the pull down menu and make modification. Once another version is selected, please click on SAVE button and that specific cPanel will run on the selected version.

Users will be able to enable/disable module by checking and unchecking the modules. Once done, please SAVE again.

Users might want to change php variables as well, for example, If a user wants to increase the memory limit or max upload size, they should be able to increase the value from SWITCH TO PHP OPTIONS menu from top right corner. Once new values has been set, please SAVE the settings.

Sometimes your website may need to use a different PHP version from the one assigned to your whole cPanel account.

To set a different PHP version for an addon domain, you need to add a special code to your .htaccess file. To do this, follow the steps below.

1. Find the .htaccess file for the addon domain in question. The steps for how to find it can be located here.

2. Add the following line to your .htaccess file:

<FilesMatch “.(?:html|php)$”>
SetHandler application/x-lsphpXX

If you are having any issue with PHP Selector feature or want us to setup them for your site, please submit a ticket to


Comments are off for this post.

  1. Avatar of Laser Eye Treatment
    Laser Eye Treatment October 7, 2023 - 5:18 pm

    It’s amazing in favor ⲟf mе tto haνe a website, whhich
    іs valuable designed fоr my experience. thanks admin

    Ꮇy homepaɡе … Laser Eye Treatment

  2. Avatar of try these out
    try these out October 8, 2023 - 11:42 am

    Good day! This is my first visit to your blog! We
    are a collection of volunteers and starting a new
    project in a community in the same niche. Your blog provided us valuable information to work on. You have done a
    outstanding job!

  3. Avatar of get more
    get more October 8, 2023 - 11:58 am

    Good post. I learn something new and challenging on websites I stumbleupon every day.
    It’s always helpful to read through content from other
    writers and practice something from their websites.

  4. Avatar of Rubbish Clearance
    Rubbish Clearance October 8, 2023 - 1:41 pm

    Great website. Lots of useful info here. I am sending it to several
    friends ans also sharing in delicious. And naturally, thanks to
    your effort!

  5. Avatar of October 16, 2023 - 5:11 pm

    May I simply just say what a comfort to find
    somebody who really understands what they’re discussing on the web.
    You definitely know how to bring an issue to light and make it important.
    A lot more people should look at this and understand this
    side of your story. It’s surprising you are not more popular given that you surely have the gift.

    My website; lion4dbet []

  6. Avatar of b2b marketing ppt title
    b2b marketing ppt title October 17, 2023 - 12:12 am

    First of all I want to sayy superb blog! I had a quick question which I’d
    like to assk if you don’t mind. I was curiouis to know how you
    center yourself and clear your mind prior to writing.
    I’ve had difficulty clearing my thoughts in getting my thoughts out
    there. I do take pleasure in writing however it just seems like the
    first 10 to 15 minutes tend to be lost just trying to figure out how to begin.
    Any ideas or hints? Thanks!

    Here is my page b2b marketing ppt title