Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

(solved) mpm-itk "Permission denied: unable to connect to ..

 
   Soft32 Home -> Linux -> ISP RSS
Next:  Accepted apr 1.3.3-2 (source i386)  
Author Message
Dan MacNeil

External


Since: Feb 01, 2005
Posts: 2



(Msg. 1) Posted: Tue Feb 24, 2009 3:20 pm
Post subject: (solved) mpm-itk "Permission denied: unable to connect to cgi daemon after multiple tries:"
Archived from groups: linux>debian>isp (more info?)

This is more for google than anything else.

Based on Russell Coker's helpful post, we've been using mpm-itk to set
UID/GID per apache web site for a while.

Recently I setup a new debian etch / apache 2 server and the error logs
filled with:

Permission denied: unable to connect to cgi daemon
after multiple tries:

By default debian apache2 seems to come w/ cgid enabled:

http://httpd.apache.org/docs/2.0/mod/mod_cgid.html

cgid's purpose is:

On certain unix operating systems, forking a process
from a multi-threaded server is a very expensive operation
because the new process will replicate all the threads of
the parent process. In order to avoid incurring this expense
on each CGI invocation, mod_cgid creates an external daemon
that is responsible for forking child processes to run CGI
scripts. The main server communicates with this daemon using
a unix domain socket.

If I understand correctly, mpm-itk does forks not threads, so mod_cgid
does nothing for it.

I can imagine that it would be problematic for various mpm-itk processes
to attempt to write to

/var/run/apache2/cgisock.$PROCESS_ID_OF_APACHE_CGID_DAEMON

The solution was to disable cgid by removing the symlinks to
/etc/apache2/mods-available/

rm /etc/apache2/mods-enabled/cgid.conf
rm /etc/apache2/mods-enabled/cgid.load

and reloading apache:

/etc/init.d/apach2/

I did the symlink removal by hand because a2dismod couldn't seem to
separate mod_cgi (which we need for cgi scripts) from mod_cgid


--
To UNSUBSCRIBE, email to debian-isp-REQUEST.RemoveThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.RemoveThis@lists.debian.org
Back to top
Login to vote
Steinar H. Gunderson

External


Since: Nov 18, 2006
Posts: 31



(Msg. 2) Posted: Tue Feb 24, 2009 3:20 pm
Post subject: Re: (solved) mpm-itk "Permission denied: unable to connect to cgi daemon after multiple tries:" [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Tue, Feb 24, 2009 at 01:23:14PM -0500, Dan MacNeil wrote:
> Recently I setup a new debian etch / apache 2 server and the error logs
> filled with:
>
> Permission denied: unable to connect to cgi daemon
> after multiple tries:
>
> By default debian apache2 seems to come w/ cgid enabled:
>
> http://httpd.apache.org/docs/2.0/mod/mod_cgid.html

Oh. In retrospect I should have remembered this; it's written in Debian's
release notes. It should be fixed in lenny anyway.

/* Steinar */
--
Homepage: http://www.sesse.net/


--
To UNSUBSCRIBE, email to debian-isp-REQUEST.TakeThisOut@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.TakeThisOut@lists.debian.org
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[Samba] Access denied, unable to connect to my printer - Hello: I have a printer set-up and working correctly on my Linux machine running Fedora Core 1. It is set up as a..

[Samba] Help Samba2.2.8.a "status:access denied, unable to.. - All Any help would be great I have just upgraded our samba server to v2.2.8a all went well apart form a couple of..

[Samba] RE:Samba2.2.8.a "status:access denied, unable to c.. - hi Philip try using : use client driver = yes in the "global" part it should do it if you are installing prin...

[Samba] VMware Printing Problem - Access Denied, Unable To.. - Running Samba 2.28 on a SuSE Linux Pro 9.0 system, equipped with VMware Workstation 4. A Windows 2000 Pro guest OS is..

[Samba] Samba printer: Access denied, unable to connect - I have Samba 2.2.8a on my Red Hat 9 as the Primary Domain Controller. I can print everything pretty well from my Red...

Permission denied - >From Debian GNU/Linux 3.1 -- Release Notes "http://www.uk.debian.org/releases/stable/releasenotes" Sele...
       Soft32 Home -> Linux -> ISP All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]