PHP Version on Sub-Domain

El CapitanPH

Verified User
Joined
Apr 20, 2018
Messages
29
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
 
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.
 
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,
 
Back
Top