Disallow subdomain folder php scripts access to outside of it?

Amit

New member
Joined
Mar 24, 2020
Messages
18
Hi
I have multiple sudomain on my da account i want to disallow subdomain php script to access to outside its own folder which is very essential for security because if one of my subdomain hacked it allow hacker to access to other subdomain and may inject malware to other subdomains.Please provide solution for it?
 

Zhenyapan

Verified User
Joined
Feb 23, 2018
Messages
169
Location
UA
best sollution is to put all subdomains as separate domains in separate accounts,
but also you can try to use open_basedir restriction
 

Amit

New member
Joined
Mar 24, 2020
Messages
18
Open_basedir is enable for the domain but its not working still sub domain php scripts are able to access to public_html and other folder outside of it
 

Zhenyapan

Verified User
Joined
Feb 23, 2018
Messages
169
Location
UA
check phpinfo output from subdomain, I think it uses open_basedir from domain, while you must use custom_httpd to set up individual open_basedir for subdomain
 

Amit

New member
Joined
Mar 24, 2020
Messages
18
check phpinfo output from subdomain, I think it uses open_basedir from domain, while you must use custom_httpd to set up individual open_basedir for subdomain
How would i customize it for subdomain please tell me step by step proccess
 

Amit

New member
Joined
Mar 24, 2020
Messages
18
Top