.htaccess file edit for subdomains
Hi Everyone,
I'm really hoping someone can HELP me out.
I currently have multiple hosting accounts running cPanel and PHP Version 7.2
These sites are currently running WordPress 5.1.1.
I'm having an issue installing from applications from Installatron, which require a PHP 5.6. I have created subdomains, but to no avail will these applications install.
I was told I can create a custom .htaccess file in the subdirectory of the subdomain, to force it to only use PHP 5.6; but I'm not sure if that would work.
Your guidance and assistance is greatly appreciated.
Looking forward to your response.
Thank you...
-
Add to your .htaccess AddType application/x-httpd-ea-php56 .php .php5 .phtml 0 -
You could also just go to cPanel>>Software>>MultiPHP manager and set the subdomain to whatever PHP version you'd like it to run as well. This automatically restarts/rebuilds any necessary configurations and is the most correct way to achieve this. 0
Please sign in to leave a comment.
Comments
2 comments