Advertisement

12.03.2003 at 01:13PM PST, ID: 20815649
[x]
Attachment Details

suexec with Redhat 9.0

Asked by DontLookDown in Apache Web Server

Tags: , ,

First, I recently switched from Mandrake to Redhat 9.0 and httpd-2.0.40-21
I am trying to run a script which requires root privileges.  
The script is located in /var/www/cgi-bin/

I ran chmod a-s myscript.cgi to my script

In my httpd.conf I have
User apache
Group apache
So I ran the following commands:
chgrp apache /usr/sbin/suexec
chmod 4750 /usr/sbin/suexec
(It says to do this at http://httpd.apache.org/docs-2.0/suexec.html)

I have added the following line to httpd.conf:
LoadModule suexec_module modules/mod_suexec.so

When I start apache, I get the following in my error log:
[Wed Dec 03 15:25:26 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations
[Wed Dec 03 15:26:18 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)


I have found a thread with a similar problem, but their solution was to install a src rpm.  I would prefer to not have to reinstall.

Thank you for your time.
Start Free Trial
 
Loading Advertisement...
 
[+][-]12.04.2003 at 12:41PM PST, ID: 9877445

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Apache Web Server
Tags: suexec, apache, redhat
Sign Up Now!
Solution Provided By: jerkface2098
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32