httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glenn Sieb" <>
Subject [users@httpd] mod_perl running scripts very oddly.. help!
Date Wed, 14 May 2003 18:03:11 GMT
I have an apache 1.3.27 with mod_perl 1.27 on it..

When I have scripts going through mod_perl using:

<Directory "/home/<username-removed-for-security>/public_html/twiki/bin">
        Options +ExecCGI
        AddType application/x-httpd-cgi .pl
        AddHandler perl-script .cgi .pl
        #SetHandler cgi-script
        SetHandler perl-script
        PerlHandler Apache::Registry
        PerlSendHeader On
        #Redirect /urlpath/to/TWiki/index.html
        AuthUserFile /home/criley/public_html/twiki/data/.htpasswd
        AuthName ByPassword
        AuthType Basic
        ErrorDocument 401
        <Files ~ "[^/]*\.html$">
               SetHandler blabla
               allow from all
        <Files "edit">
               require valid-user
        <Files "preview">
               require valid-user
        <Files "save">
               require valid-user
        <Files "attach">
               require valid-user
        <Files "upload">

        <Files "rename">
               require valid-user
        <Files "installpasswd">
               require valid-user
        <Files "*">
               allow from all

When I run a script (in this case bin/testenv), it shows that all CGI
scripts are running as root (if it's right after bootup) or as me (if I've
su -'d to root and restarted apache at any point). Please keep in mind
that the above configuration is NOT for my home directory, but another

I have User www and Group www in httpd.conf -- so how do I force mod_perl
to run as www:www (or even as the user who owns the script)? It's causing
no end of grief. I'd tried suExec to no avail in the past.

If I'm leaving out any information, I'll be happy to provide what I can..
I just don't understand what's going on here :-/

Thank you in advance,
The original portions of this message are the copyright of the author
(c)1998-2002 Glenn E. Sieb.    IRC: Rainbear    Yahoo: Rainbear_NJ
"All acts of Love and Pleasure are Her rituals" Charge of the Goddess

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message