PHP version updating for subdomain?

KhanTastic

Active member
Hi friends,

I am using the latest version of XF v2.3.4 which is on my subdomain and my main domain has wordpress blogging website.
I see in my forum admin panel that my PHP version is 7.4.33 which is outdated however Xenforo is recommending 8.3.0 PHP version.

I have a shared hosting, when from my hosting cPanel, I want to change the PHP version is allows me to change for the main domain only which I do not want to touch as it has wordpress site.

My question is, is there any way how I can update my PHP version for my Xenforo forum which is on subdomain, is there any snippets/ code which I can add in .htaccess file or anywhere so that my forum can be updated to the 8.3.0. PHP version?

Editing this thread:-

I searched in google how to update PHP version for a subdomain, I found one article it said:

Editing .htaccess file and at the very top of the page add the following codes:-

Code:
<FilesMatch "\.(php4|php5|php3|php2|php|phtml)$">
SetHandler application/x-lsphp74
</FilesMatch>

And replace the application/x-lsphp74 with application/x-lsphp83 and save that .htaccess file.

I did the same but still I see in my forum admin panel that my PHP is 7.4.33 :(

Appreciate your help!

Cheers!
 
Last edited:
wordpress works fine on 8.x as well. why the hestiation?
Oh yes, I did not think of that lollllzzzz

I just updated the whole root domain to the latest PHP version and my wordpress site still works and the XF forum on subdomain also works fine and that recommendation message does not show anymore on my XF :)

Thanks for pointing that to me :)
 
wordpress works fine on 8.x as well. why the hestiation?
Anecdotal, but I have one WP site that is built around necessary plugins that haven't been updated in over a decade, and newer PHP versions break those plugins. (And I'm too out-of-the-loop to do any development work to fix it.) But I think we may convert all that content over to Resources in our XF forum.

I've had other WP sites get the dreaded "white screen of death" when upgrading PHP versions.

I just want WP to go away... 😁
 
Back
Top Bottom