XF 2.0 Installing on subdomain (problem with PHP version)

KhanTastic

Active member
Dear friends,

I have version XF 2.0.5 and like to install on my subdomain, because main main domain has wordpress site & I have PHP version PHP 7.4 for that, now I am installing my XF forum on subdomain, the installation does not work because I have PHP 7.4 on main domain. When I change the PHP 7.4 then installation works fine but I do not want to lose my PHP version for main site, then how i can install XF on the subdomain which requires lower PHP version than PHP 7.4.

Appreciate your help.

Best regards,
Cheers
 
Set a different PHP version for each domain.

Easy to do if you have the multi php manager in cPanel.

Otherwise contact your host if you aren't sure how to do it.
 
Set a different PHP version for each domain.

Easy to do if you have the multi php manager in cPanel.

Otherwise contact your host if you aren't sure how to do it.
I know in cPanel how to change PHP version but my cPanel shows only main domain like mydomain.com and does not show the subdomain there :(
 
I know in cPanel how to change PHP version but my cPanel shows only main domain like mydomain.com and does not show the subdomain there :(
You can extract the PHP handler information from the .htaccess file which cPanel writes to, and manually add that the .htaccess file in the new folder / subdomain folder.
 
You can extract the PHP handler information from the .htaccess file which cPanel writes to, and manually add that the .htaccess file in the new folder / subdomain folder.
Thanks your reply, please how I can extract the PHP handler information from the .htaccess ? Can you explain I am new :(
 
Thanks your reply, please how I can extract the PHP handler information from the .htaccess ? Can you explain I am new :(
It's in the file, you can view it through the cPanel file manager, or download a copy and view it locally.

It will look something like this:

Code:
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php73” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php73___lsphp .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
 
It's in the file, you can view it through the cPanel file manager, or download a copy and view it locally.

It will look something like this:

Code:
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php73” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php73___lsphp .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
Ah okay, thanks a lot. I would try and update you if I am able to do it :)
 
It's in the file, you can view it through the cPanel file manager, or download a copy and view it locally.

It will look something like this:

Code:
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php73” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php73___lsphp .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
Yes I placed the following codes in my .htaccess file and it worked :) Thanks a lot

<IfModule mime_module>
AddHandler application/x-httpd-ea-php72 .php .php7 .phtml
</IfModule>
 
Top Bottom