View previous topic :: View next topic |
Author |
Message |
nemster n00b
Joined: 11 Jun 2004 Posts: 27
|
Posted: Mon Mar 27, 2006 7:06 am Post subject: apache & suexec problem (mod_fastcgi) |
|
|
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 |
|
|
itsmegawtf Apprentice
Joined: 01 Oct 2005 Posts: 150
|
Posted: Mon Mar 27, 2006 8:33 am Post subject: |
|
|
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 |
|
|
nemster n00b
Joined: 11 Jun 2004 Posts: 27
|
Posted: Mon Mar 27, 2006 9:02 am Post subject: |
|
|
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 |
|
|
|