Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top