Re: fastCGI for C++
Igor Clark <igor-+wACT2lsjD7SUeElwK9/[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
If apache process is running as uid 1000, then uid 1000 needs to be able to write to the directory /var/lib/apache2/fastcgi so perhaps add uid 1000 to www-data on some sorts of linux this might be e.g. /usr/sbin/usermod -G neel,www-data neel cheers i On 17 Sep 2008, at 20:35, Neel Get wrote: > owner of /var/lib/apache2/fastcgi is www-data user and UID of www- > data is 33 > > <pre> > neel@pc:~$ ls -l /var/lib/apache2 | grep fastcgi > drwxr-xr-x 3 www-data www-data 4096 2008-08-01 19:14 fastcgi > neel@pc:~$ ls -l /var/lib/apache2/fastcgi > total 4 > drwx------ 2 www-data www-data 4096 2008-08-01 19:14 dynamic > </pre> > > my username is neel on my pc and UID is 1000 > > both apache and apache2 process are running with UID 1000 and login > www-data > > I didn't understood the problem > But I think its easy to understand can you plese explain whats the > problem. > > On Wed, 17 Sep 2008 04:41:20 -0400, Igor Clark <igor-+wACT2lsjD7SUeElwK9/[email protected]> > wrote: > >> Looks like a permission problem on /var/lib/apache2/fastcgi - the >> user owning the process (uid 1000, gid 1000) is not allowed to >> write to the IPC directory >> >> On 17 Sep 2008, at 16:07, Neel Get wrote: >> >>> I was trying to do some CGI application with C++ using fast cgi >>> when I installed fastcgi I get the following error. >>> >>> <pre> >>> Syntax error on line 4 of /etc/apache2/mods-enabled/fastcgi.conf: >>> FastCgiIpcDir /var/lib/apache2/fastcgi: access for server (uid >>> 1000, gid 1000) failed: write not allowed >>> </pre> >>> >>> the fastcgi.conf file attached. >>> >>> I need a good tutorial on how to configure/optimize fastcgi for C++ >>> >>> --Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ >>> <fastcgi.conf>_______________________________________________ >>> FastCGI-developers mailing list >>> FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org >>> http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers >> >> -- >> Igor Clark • POKE • 10 Redchurch Street • E2 7DD • +44 (0)20 7749 >> 5355 • www.pokelondon.com >> >> >> > > > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- Igor Clark • POKE • 10 Redchurch Street • E2 7DD • +44 (0)20 7749 5355 • www.pokelondon.com