My server enviroment: centos 6.4, apache2.2 with prefork module, php 5.3 with module 5.c. i have 10 vitualhosts run by apache, i want to seperate these 10 sites, can i use suexec function in my server? is suexec reliable in my production server?

有帮助吗?

解决方案

Yes, but it executes something which can be slow, because it needs to start a new process for every query.

This problem can be solved by the fcgi.

A much better solution were if you used mpm-itk ( http://mpm-itk.sesse.net/ ) works like the prefork mpm, but with itk you can define different users/groups for your virtualhosts in the main apache config. There is no need for any setuid or such tricks.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top