Page 1 of 1

PHP 8+ version for subdomain only

Posted: Tue Jul 26, 2022 10:54 pm
by skip
Hi, Im trying to install 4.0 version on my subdomain , there is option to upgrade PHP to 8+ in hostinger account but only for domain and subdomains in global. Is there posibilities to set PHP 8+ only on subdomain with opencart 4.0 ( required) - Because my main domain require lower version of PHP for 3x OC version.
If I set 8+ version global 3x on main domain show errors on top. Thanks

Re: PHP 8+ version for subdomain only

Posted: Tue Jul 26, 2022 11:17 pm
by JNeuhoff
Many webhosts allow for this, see e.g. https://support.hostinger.com/en/articl ... subdomains

Re: PHP 8+ version for subdomain only

Posted: Tue Jul 26, 2022 11:31 pm
by IP_CAM
On my Server, I can select the PHP Version by adding one of those on the very top of the individual Shop .htaccess Files:
AddHandler application/x-httpd-php74 .php
AddHandler application/x-httpd-php80 .php
AddHandler application/x-httpd-php81 .php

Re: PHP 8+ version for subdomain only

Posted: Tue Jul 26, 2022 11:45 pm
by ADD Creative
If you are seeing errors on a page, then you have insecure error reporting settings.