Hello Group,

the problem using ITK+mod_fcgid is the fcgid socket. the socket is 
owned by wwwuser (wwwrun / www-data) of apache.
ITK set vhost to user1, so fcgid says:

Permission denied: mod_fcgid: can't lock process table in pid

socket dir:

srwx------ 1 wwwrun wwwrun     0 21. Feb 14:11 11585.0
srwx------ 1 wwwrun wwwrun     0 21. Feb 13:12 2666.0
srwx------ 1 wwwrun wwwrun     0 21. Feb 13:12 2666.1
srwx------ 1 wwwrun wwwrun     0 21. Feb 13:17 3083.0
srwx------ 1 wwwrun wwwrun     0 21. Feb 13:25 3938.0

The way using fcgi is, we have different php-versions and per user 
The way we use ITK is, we want to safe homedirs of all user not have 
to be readable by wwwrun (f.e. remember symlink problem)

So we think, we must patch mod_fcgid (source 
May like modwsgi: 

    if (!geteuid()) {
+#if defined(MPM_ITK)
+        if (chown(process->socket, process->uid, -1) < 0) {
       if (chown(process->socket, ap_unixd_config.user_id, -1) < 0) {
           ap_log_error(APLOG_MARK, WSGI_LOG_ALERT(errno), 
                        "mod_wsgi (pid=%d): Couldn't change owner of 
unix "
                        "domain socket '%s'.", getpid(),

Thus, set UNIX listener socket to be owned by the same user as daemon 
process runs as.

Any ideas how to PATCH mod_fcgid ?
mpm-itk with mod_fcgid would be more than great :)

OR: Any way to user mpm-itk and different php-versions / per user 
php.ini ?


Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
Mod-fcgid-users mailing list

Reply via email to