Search
 
SCRIPT & CODE EXAMPLE
 

PHP

namecheap shared cpanel change php version for subdomain

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
</FilesMatch>

For servers with LiteSpeed the code should be the following:

<FilesMatch ".(?:html|php)$">
SetHandler application/x-httpd-alt-phpXX
</FilesMatch>

where XX is the PHP version you wish to set. It can be 52, 53, 54, 55, 56, 70, 71,72, 73, 74, 80 or 81.
Comment

PREVIOUS NEXT
Code Example
Php :: IP Authorization php code 
Php :: joomla print query 
Php :: Woocommerce Changing the Entry Title of the Custom Endpoint 
Php :: this app is not allowed to query for scheme fb-messenger" 
Php :: session array 
Php :: explode (PHP 4, PHP 5, PHP 7, PHP 8) explode — Split a string by a string 
Php :: magento 2 select to string 
Php :: Update page template and remove page editor in wordpress 
Php :: PHP sha1 — Calculate the sha1 hash of a string 
Php :: rodar migration laravel 
Php :: laravel controller subfolder 
Php :: install spatie for role and permissions 
Php :: heap sort php 
Php :: acf get all choices from select 
Php :: Laravel 9 Mail File 
Php :: wordpress get the short permalink 
Php :: cara install php7.3 di ubuntu 20.04 
Php :: send data with href 
Php :: php date now 
Php :: "IlluminateDatabaseEloquentMassAssignmentException" 
Php :: php ifelse 
Php :: laravel get unique data by column and order by 
Php :: smtp_port" setting in php.ini or use ini_set() 
Php :: check url parameter if not redirect wordpress plugin 
Php :: Token capabilities in vault 
Php :: bind param php 
Php :: php print fetch 
Php :: wordpress get default date format 
Php :: overloading and overriding in php 
Php :: routing in laravel 
ADD CONTENT
Topic
Content
Source link
Name
7+4 =