🍁 Autumn Sale — Up to 70% discount for hosting and domains
activate now
Tutorials • cPanel

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.

Views 1653Updated 1 luniPublished on 14/07/2021by Eduard K.

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.

cpanel, login, php

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

Cpanel file manager

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

file manager

 

  • Here we will edit the file .htaccess în which the following lines will be inserted at the beginning of the file.
  • If the .htaccess file is not displayed, access this article to show you how to view hidden files.

SetHandler application/x-httpd-alt-phpXX___lsphp

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.

php select version, versiune, cpanel

 

Similar Articles

Views 1,653
Updated 1 month ago

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.

Views 1,322
Updated 4 years ago

This tutorial presents how to set up a mail form using SMTP authentication in the phpBB application.

Views 2,377
Updated 2 years ago

Learn how to change the PHP version in cPanel on shared hosting. Follow the simple steps to adjust the PHP settings and the extensions required for your applications.