Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache & suexec problem (mod_fastcgi)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
nemster
n00b
n00b


Joined: 11 Jun 2004
Posts: 27

PostPosted: Mon Mar 27, 2006 7:06 am    Post subject: apache & suexec problem (mod_fastcgi) Reply with quote

hi!

when i try to start apache i get:

Code:
FastCgiWrapper: "/usr/sbin/suexec2" execute access for server (uid -1, gid -1) failed: execute not allowed


/etc/apache2/modules.d/20_mod_fastcgi.conf goes like:
Code:
<IfDefine FASTCGI>
        <IfModule !mod_fastcgi.c>
                LoadModule fastcgi_module     modules/mod_fastcgi.so
        </IfModule>

        <IfModule mod_fastcgi.c>
                AddHandler fastcgi-script .fcg

FastCgiWrapper /usr/sbin/suexec2
FastCgiServer /var/www/php-fcgi-scripts/igor/php-fcgi-starter -user igor -group users



AddHandler php-fastcgi .php

<Location /cgi-bin/php-fcgi-starter>
        SetHandler fastcgi-script
        Options +ExecCGI
</Location>

Action php-fastcgi /cgi-bin/php-fcgi-starter

AddType application/x-httpd-php .php



        </IfModule>
</IfDefine>


i dont get the problem, any ideas?
Back to top
View user's profile Send private message
itsmegawtf
Apprentice
Apprentice


Joined: 01 Oct 2005
Posts: 150

PostPosted: Mon Mar 27, 2006 8:33 am    Post subject: Reply with quote

try to change your httpd.conf to:
Code:

LoadModule fastcgi_module     modules/mod_fastcgi.so

AddHandler fastcgi-script .fcg

FastCgiWrapper /usr/sbin/suexec2
FastCgiServer /var/www/php-fcgi-scripts/igor/php-fcgi-starter -user igor -group users



AddHandler php-fastcgi .php

<Location /cgi-bin/php-fcgi-starter>
        SetHandler fastcgi-script
        Options +ExecCGI
</Location>

Action php-fastcgi /cgi-bin/php-fcgi-starter

AddType application/x-httpd-php .php


I had similar problem with my SAPI php module.
Back to top
View user's profile Send private message
nemster
n00b
n00b


Joined: 11 Jun 2004
Posts: 27

PostPosted: Mon Mar 27, 2006 9:02 am    Post subject: Reply with quote

thanks!

hmm strange thing, i put those lines into httpd.conf and deleted the file in modules.d, the error stopped but php somehow does not start:

Code:

[Mon Mar 27 11:05:43 2006] [warn] FastCGI: server "/var/www/php-fcgi-scripts/igor/php-fcgi-starter" (uid 1005, gid 100) restarted (pid 32639)
[Mon Mar 27 11:05:43 2006] [warn] FastCGI: server "/var/www/php-fcgi-scripts/igor/php-fcgi-starter" (pid 32639) terminated by calling exit with status '120'
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot 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