Introduction
In some situations, you may want to use a different PHP version in a subfolder than the rest of the site. This article provides the procedure to do so.
Please note that sites using PHP Selector should not use the following procedure.
Procedure
- Access the server's command line as the cPanel user via SSH or "Terminal" in cPanel.
- Create a
.htaccess
file in the desired folder.touch /path/to/folder/.htaccess
- Open the .htaccess file in your preferred text editor.
- Add the following lines to the file.
<IfModule mime_module>
Please note that "#" must be replaced with the PHP minor version.
AddHandler application/x-httpd-ea-php8# .php .php8 .phtml
</IfModule> - Save the changes and exit the text editor.
Comments
0 comments
Article is closed for comments.