How to Change PHP Version Change using htaccess file

To change PHP version for a specific website, you should have to edit/add following lines in the website .htaccess file i.e public_html/domain.com/.htaccess

 

#+PHPVersion
#="php83"
AddHandler x-httpd-php83 .php
#-PHPVersion

 

Just edit second and third line with your desired PHP version i.e 70 for 7.0 and 83 for 8.3

Version changes may take up to 60 seconds, but are usually instant.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Buy Cheap Web Hosting in Pakistan?

Meta Max Host is a leading provider of cheap web hosting in Pakistan, making it easier for...

How to Choose the Right Hosting Plan for Your Website with Meta Max Host?

Selecting the right hosting plan for your website is crucial for its performance, security, and...

Can I Register a Domain Name Through My Hosting Provider?

When setting up a website, one of the first steps is to secure a domain name. A...

What are MetaMaxHost.com nameservers?

Our nameservers are: ms1.metamaxhost.comms2.metamaxhost.com Any newly registered domain names...

How to increase the php memory limit

To increase the PHP memory limit, you can follow these steps: 1.    Edit the php.ini File:...