How to change PHP version only for subdomain?

mohammad.983

Verified User
Joined
Jun 26, 2015
Messages
35
Hi guys.
I used php5.5/nginx/wordpress
but I want to make a domain(for example : pay.mydomain.com) with different PHP version(php 5.4).

How should I do?
plz help me.
 
cuz I did it but it did not work.
I use one IP for my domain and the sub domain. I guess I have a mistake to set DNS.
Can you tell me how(step by step)? or give me some tutorial links.
 
Thanks for the quick reply.
I made a sub domain(sub.mydomain.com) in my main panel(mydomain.com). after that add it in "domain administration"
Now in ""domain administration" I have to domain :1-mydomain.com 2-sub.mydomain.com
But the sub domain doesn't work at all.
When I ping the sub domain, this error shows up:
Code:
# ping host xx.xxxxx.com
Ping request could not find host xx.xxxxx.com Please check the name and try again.
 
Well, you should provide the domain... Otherwise we can only guess..

Is DA managing your DNS?
Is the DNS entry there?
If is not DA managing your DNS, did you add an A record on the domain for the subdomain?

Regards
 
I tryed to hit your NS for test.timecode.ir and is not responding for that subdomain, can you try to retart bind/named?

Regards
 
I done it.
I make another sub domain.
test2.timde.ir
But Im confused.
I have DNS of test2 in both of acc (main acc and second acc that I creat via ADD ON).Should I delete on of them?
 
Last edited:
Once the subdomain is createad as subdomain you shouldn't need for the DNS entry on the main domain.
So, if you created test2.timecode.ir as domain you dont need to create the DNS "test2" on the domain timecode.ir

As far as i can see test.timecode.ir is working fine now, did you re-create test1? That is still not working as far as i can see.

Regards
 
Back
Top