Gossamer Forum
Home : General : Perl Programming :

Turn OFF suexec in Apache?

Quote Reply
Turn OFF suexec in Apache?
Hi,

Can anyone help me out with disabling 'suexec' in Apache 1.3.14 for Linux 7.0?

It just seems to create a massive log files that I can't see any practical use for other than monitoring script usage/execution and right now I don't really need it.

Also, when reconfiguring Apache can you enable/disable individual modules, or do you have to do ./configure including ALL the modules you want configured?

Thanks.
Shaun

Quote Reply
Re: Turn OFF suexec in Apache? In reply to
Im not sure how similar suexec is to cgiwrap but I can change this line in httpd.conf:


AddHandler cgi-wrapper .cgi

...to just use the normal way


Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: Turn OFF suexec in Apache? In reply to
Shaun

Not sure about your first question.

However, about your second, there are a few core modules that you have to compile apache with. Not sure what they are, but I'm sure you can mix and match as you wish. However you will have to re-compile Apache each time you make a change.

Check out http://httpd.apache.org/docs-2.0/install.html for more information.

Wil

Quote Reply
Re: Turn OFF suexec in Apache? In reply to
Hi,

You should just be able to turn off the wrapper:

suexec: enabled; valid wrapper /usr/sbin/suexec

So chmod 0 that file and then restart

suexec: disabled; invalid wrapper /usr/sbin/suexec

However, suexec is a great thing, I'd look some more to see how to turn off the logging.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Turn OFF suexec in Apache? In reply to
Hi,

Will: Thanks for the Apache info, I'll read-up on it some more (I'm finding out that Apache can be quite a complicated thing when you get into it!) ... and guess what ... the link you gave me also has a link to the following page about suexec Smile:
http://httpd.apache.org/docs-2.0/suexec.html

Alex: Yes sorry, I meant disable the logging, should have made that a bit clearer. I'm going to have a read of the above page to see if it helps. Smile

I've also discovered a problem with php4.0 - I don't use it on my own sites, but the server stats program presents an index of available weekly log reports from a php page and it's started bringing up the 'Download/Save' box in NN whenever I try to access the logs index page, like it doesn't know how to parse the php page - I suspect php isn't enabled and that's the cause.

I've done a: ./httpd -l and there is no mention of a php module. Initially it was working, there's a line in httpd.conf that says: LoadModule "libexec/libphp4.so" or something like that (the correct file is there, I've checked), but when I run the apache configtest it gives an error saying it can't load the module so for now I've commented it out.

I suspect when I've recompiled Apache I've not enabled something, maybe enabling DSO would help - would Apache use DSO to 'LoadModule' since it appears that it's this 'LoadModule' part of the line it's having trouble with?

I'm keen to learn a bit more about what's going on "inside the box", although I think I'll limit it to basic maintenance and operations as I get the feeling you could spend your life playing with Apache and it's modules and still not know everything about everything Smile

All the best
Shaun

Quote Reply
Re: Turn OFF suexec in Apache? In reply to
Shaun

Hope it helps.

Wil.