Changing the PHP version for the main account's subdomains and add-on domains.
In this article, we will present the steps required to change the PHP version on one of the addon domains or for a subdomain different from the main domain.
Introduction
This tutorial presents the steps necessary to change the PHP version on one of the addon domains or for a subdomain different from that of the main domain.
Requirements
- a cPanel account
Steps to Follow
- we log in to the control panel.

- We will go to the Files section, where we click on "File Manager"

- Selectam the subdomain or the add-on domain where we want to change the PHP version

- Here we will edit the .htaccess file in which the following lines will be inserted at the start of the file.
- In case the .htaccess file is not displayed, please access this article to learn how to view hidden files.
where XX represents the desired PHP version.
After editing the .htaccess file, we look for the "SOFTWARE" section, and there we click on "Select PHP Version". To edit the PHP directives at the selected version according to the following tutorial.
