Operating System - Linux
1829494 Members
1369 Online
109991 Solutions
New Discussion

Re: SUEXEC Problem on apache 2

 
Sriram Rajan
Occasional Contributor

SUEXEC Problem on apache 2

I am using Server version: Apache/2.0.46.

here's a suexec -V listing
-D AP_DOC_ROOT="/www"
-D AP_GID_MIN=100
-D AP_HTTPD_USER="www"
-D AP_LOG_EXEC="/usr/local/apache2/logs/suexec_log"
-D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
-D AP_UID_MIN=100
-D AP_USERDIR_SUFFIX="public_html"

My webserver runs as www.

For some reason suexec works for any user (i.e. under the public_html
folder)

It doesnt get called from any cgi/perl script under /www which is my webserver
root.
There is no entry in the logs. It just doesnt get called.
Is there any directive for it ?

Any ideas ??

Thanks

Sriram
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: SUEXEC Problem on apache 2

There is a mistake in httpd.conf

cd /etc/httpd/conf

diff httpd.conf httpd.conf.orig

This might help you figure out what was done.

The location might be different on Suse, but apache generally leaves an httpd.conf.orig file laying around so you can figure out what you did to whack out the httpd server.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sriram Rajan
Occasional Contributor

Re: SUEXEC Problem on apache 2

I have checked httpd.conf. It looks fine.
The server works fine.
I am upgrading to apache 2 from 1.3.x
the httpd.conf is freshly created and not copied from 1.3.x.

It SUEXEC that I am having problems with.

Say I am running a cgi-script under www.myserver/~sriram suexec gets called and all works fine

but for example www.myserver/test.cgi isnt wrapped with suexec.

There are no errors , except that the script only runs as the webserver user and not as the script owner.

Thanks for your time

Sriram