Problem Starting RT with fastcgi

Hi,

if i start mason_handler.fcgi from command line i get an "normal"
html-Output.

If i try it via apache i get an internal server error 500.

Whats the problem?

Thank you very much!

Manuel

“MB” == Manuel Bernardy bernardy@nexus-netsoft.com writes:

MB> Hi,
MB> if i start mason_handler.fcgi from command line i get an “normal”
MB> html-Output.

MB> If i try it via apache i get an internal server error 500.

When you “su” to the user running apache and run the program manually,
what happens? 99% chance it is a file permissions issue OR an
environment variable setting issue.

Vivek Khera, Ph.D. Khera Communications, Inc.
Internet: khera@kciLink.com Rockville, MD +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/

Hi,

When you “su” to the user running apache and run the program manually,
what happens? 99% chance it is a file permissions issue OR an
environment variable setting issue.

Then it says: " Can’t do setuid"

What does that mean?

Thank you!
ManuelFrom: rt-users-admin@lists.fsck.com [mailto:rt-users-admin@lists.fsck.com]
On Behalf Of Vivek Khera
Sent: Freitag, 2. Mai 2003 23:20
To: rt-users@fsck.com

“MB” == Manuel Bernardy bernardy@nexus-netsoft.com writes:

MB> Hi,
MB> if i start mason_handler.fcgi from command line i get an “normal”
MB> html-Output.

MB> If i try it via apache i get an internal server error 500.

When you “su” to the user running apache and run the program manually,
what happens? 99% chance it is a file permissions issue OR an
environment variable setting issue.

Vivek Khera, Ph.D. Khera Communications, Inc.
Internet: khera@kciLink.com Rockville, MD +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/
rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

Ok, i got it! Now it can do setuid :slight_smile:

Thanks to all!
ManuelFrom: rt-users-admin@lists.fsck.com [mailto:rt-users-admin@lists.fsck.com]
On Behalf Of Manuel Bernardy
Sent: Samstag, 3. Mai 2003 01:56
To: ‘Vivek Khera’; rt-users@fsck.com

Hi,

When you “su” to the user running apache and run the program manually,
what happens? 99% chance it is a file permissions issue OR an
environment variable setting issue.

Then it says: " Can’t do setuid"

What does that mean?

Thank you!
Manuel

From: rt-users-admin@lists.fsck.com [mailto:rt-users-admin@lists.fsck.com]
On Behalf Of Vivek Khera
Sent: Freitag, 2. Mai 2003 23:20
To: rt-users@fsck.com

“MB” == Manuel Bernardy bernardy@nexus-netsoft.com writes:

MB> Hi,
MB> if i start mason_handler.fcgi from command line i get an “normal”
MB> html-Output.

MB> If i try it via apache i get an internal server error 500.

When you “su” to the user running apache and run the program manually,
what happens? 99% chance it is a file permissions issue OR an
environment variable setting issue.

Vivek Khera, Ph.D. Khera Communications, Inc.
Internet: khera@kciLink.com Rockville, MD +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/
rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

Hi again, sorry, but here’s the next problem:

Under www or rt directly mason_handler.fcgi puts out html. But if I try to
run it via Apache error_log always says:

[Sat May 3 02:41:34 2003] [notice] Apache/1.3.27 Ben-SSL/1.48 (Unix)
mod_fastcgi/2.4.0 PHP/4.3.1 configured – resuming norm
al operations
[Sat May 3 02:41:34 2003] [notice] suEXEC mechanism enabled (wrapper:
/usr/local/apache/bin/suexec)
[Sat May 3 02:41:34 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Sat May 3 02:41:39 2003] [warn] FastCGI: server
“/opt/rt3/bin/mason_handler.fcgi” (uid 509, gid 103) restarted (pid 2939)
[Sat May 3 02:41:39 2003] [warn] FastCGI: server
“/opt/rt3/bin/mason_handler.fcgi” (pid 2939) terminated by calling exit wit
h status ‘114’
[Sat May 3 02:41:44 2003] [warn] FastCGI: server
“/opt/rt3/bin/mason_handler.fcgi” (uid 509, gid 103) restarted (pid 2941)
[Sat May 3 02:41:44 2003] [warn] FastCGI: server
“/opt/rt3/bin/mason_handler.fcgi” (pid 2941) terminated by calling exit wit
h status ‘114’
[Sat May 3 02:41:49 2003] [warn] FastCGI: server
“/opt/rt3/bin/mason_handler.fcgi” (uid 509, gid 103) restarted (pid 2945)
[Sat May 3 02:41:49 2003] [warn] FastCGI: server
“/opt/rt3/bin/mason_handler.fcgi” (pid 2945) terminated by calling exit wit
h status ‘114’
[Sat May 3 02:41:49 2003] [warn] FastCGI: server
“/opt/rt3/bin/mason_handler.fcgi” has failed to remain running for 30 secon
ds given 3 attempts, its restart interval has been backed off to 600 seconds
[Sat May 3 02:42:12 2003] [error] [client 217.82.20.195] FastCGI: comm with
server “/opt/rt3/bin/mason_handler.fcgi” aborted
: idle timeout (30 sec)
[Sat May 3 02:42:12 2003] [error] [client 217.82.20.195] FastCGI:
incomplete headers (0 bytes) received from server “/opt/rt
3/bin/mason_handler.fcgi”
[Sat May 3 02:42:23 2003] [error] [client 62.67.209.108] FastCGI: comm with
server “/opt/rt3/bin/mason_handler.fcgi” aborted
: idle timeout (30 sec)
[Sat May 3 02:42:23 2003] [error] [client 62.67.209.108] FastCGI:
incomplete headers (0 bytes) received from server “/opt/rt
3/bin/mason_handler.fcgi”
[Sat May 3 02:42:25 2003] [error] [client 217.82.20.195] FastCGI: comm with
server “/opt/rt3/bin/mason_handler.fcgi” aborted
: idle timeout (30 sec)
[Sat May 3 02:42:25 2003] [error] [client 217.82.20.195] FastCGI:
incomplete headers (0 bytes) received from server “/opt/rt
3/bin/mason_handler.fcgi”

What can I do???

Thank you
Manuel BernardyFrom: rt-users-admin@lists.fsck.com [mailto:rt-users-admin@lists.fsck.com]
On Behalf Of Manuel Bernardy
Sent: Samstag, 3. Mai 2003 02:22
To: ‘Manuel Bernardy’; ‘Vivek Khera’; rt-users@fsck.com

Ok, i got it! Now it can do setuid :slight_smile:

Thanks to all!
Manuel

From: rt-users-admin@lists.fsck.com [mailto:rt-users-admin@lists.fsck.com]
On Behalf Of Manuel Bernardy
Sent: Samstag, 3. Mai 2003 01:56
To: ‘Vivek Khera’; rt-users@fsck.com

Hi,

When you “su” to the user running apache and run the program manually,
what happens? 99% chance it is a file permissions issue OR an
environment variable setting issue.

Then it says: " Can’t do setuid"

What does that mean?

Thank you!
Manuel

From: rt-users-admin@lists.fsck.com [mailto:rt-users-admin@lists.fsck.com]
On Behalf Of Vivek Khera
Sent: Freitag, 2. Mai 2003 23:20
To: rt-users@fsck.com

“MB” == Manuel Bernardy bernardy@nexus-netsoft.com writes:

MB> Hi,
MB> if i start mason_handler.fcgi from command line i get an “normal”
MB> html-Output.

MB> If i try it via apache i get an internal server error 500.

When you “su” to the user running apache and run the program manually,
what happens? 99% chance it is a file permissions issue OR an
environment variable setting issue.

Vivek Khera, Ph.D. Khera Communications, Inc.
Internet: khera@kciLink.com Rockville, MD +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/
rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

“MB” == Manuel Bernardy bernardy@nexus-netsoft.com writes:

MB> Hi,

When you “su” to the user running apache and run the program manually,
what happens? 99% chance it is a file permissions issue OR an
environment variable setting issue.

MB> Then it says: " Can’t do setuid"

MB> What does that mean?

You don’t have a setuid capable perl on your system.