Secure domains of the same user?

saosangmo

Verified User
Joined
Oct 3, 2012
Messages
105
Location
Hanoi
Hi,
On my system, I allow clients add multi domains to run individual websites. With the below structure.

/home/myclient/default_domain
-------------------domain2.com
-------------------domain3.com
-------------------domain4.com

Now, I want to secure each domain in case hackers attack one domain (vhost), they can't access (e.g. webadmin.php) other domains on each.

I'm using apache 2.4.3, PHP 5.4 (with mod_ruid2), csf firewall.

thanks
 
thank for your quick reply.
Most ways indicate how to secure from each user.
Can I secure each domain on the same user?

-saosangmo
 
I dont see how because they are all running under that same user for privileges. You are almost better to just make a separate user for each one. There might be a way to chroot php in a folder but I dont know how.
 
Back
Top