PHP Version on Sub-Domain

roymanila

Verified User
Joined
Apr 20, 2018
Messages
11
Hello Guys

So before i post here i already search here and i saw 2 post about how to change the php version of subdomain

Code:
<Directory |DOCROOT|/Subdomain Name/>
   <FilesMatch "\.(inc|php|phtml|phps|php|PHP2_RELEASE|)$">
      AddHandler "proxy:unix:/usr/local/php|PHP2_RELEASE|/sockets/|USER|.sock|fcgi://localhost" .php
   </FilesMatch>
 </Directory>
I put it already at custom httpd of specific domain

Still it show my default php 5.6

Thank you all
 

CanadaGuy

Verified User
Joined
Nov 14, 2019
Messages
158
I think if you want a subdomain to have a separate php version, you need to add it as a full domain instead of a subdomain.
 

roymanila

Verified User
Joined
Apr 20, 2018
Messages
11
I think if you want a subdomain to have a separate php version, you need to add it as a full domain instead of a subdomain.
Hi Canada Guy , thanks for the help , for now i will follow your suggestion i hope directadmin also include subdomain to have multiple php , not just the parent domain,
 
Top