Userrights problem / suexec - Mozilla

This is a discussion on Userrights problem / suexec - Mozilla ; Hi I'm using bugzilla on a debian lenny server with apache 2.2 (mod_perl, mod_cgi, mod_fcgi, suexec) and mysql 5.1 My htdocs dir is named "www" with user / group "bugzilla" apache is running under "www-data" so if I install bugzilla ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: Userrights problem / suexec

  1. Userrights problem / suexec

    Hi

    I'm using bugzilla on a debian lenny server with apache 2.2 (mod_perl,
    mod_cgi, mod_fcgi, suexec) and mysql 5.1

    My htdocs dir is named "www" with user / group "bugzilla"

    apache is running under "www-data"

    so if I install bugzilla with ./checksetup.pl and $webservergroup =
    'www-data';

    I cant access index.cgi --> internal server error ->
    [2009-09-11 09:12:27]: uid: (10023/bugzilla) gid: (10023/bugzilla)
    cmd: index.cgi
    [2009-09-11 09:12:27]: directory is writable by others: (/var/www/
    vhosts/bugzilla/www/bugzilla3)

    If I set the directory to chmod 700:

    You don't have permission to access /bugzilla3/index.cgi on this
    server.

    Any idea?

    best regards



  2. Re: Userrights problem / suexec

    push

  3. Re: Userrights problem / suexec

    thank you for your answer.

    I found a solution @ http://www.bugzilla.org/docs/3.4/en/...ot.html#suexec

    I'll try it and inform you if it works..

  4. Re: Userrights problem / suexec

    I added my group to $webservergroup in localconfig

    now if I run: sudo ./checksetup.pl the owner:group is: root:bugzilla

    --> forbidden error

    then I run the commands from the bugzilla install doc as root:

    for i in docs graphs images js skins; do find $i -type d -exec chmod o
    +rx {} \; ; done
    for i in jpg gif css js png html rdf xul; do find . -name \*.$i -exec
    chmod o+r {} \; ; done
    find . -name .htaccess -exec chmod o+r {} \;
    chmod o+x . data data/webdot

    then I get:

    [2009-09-15 14:46:27]: uid: (10023/bugzilla) gid: (10023/bugzilla)
    cmd: index.cgi
    [2009-09-15 14:46:27]: target uid/gid (10023/10023) mismatch with
    directory (0/10023) or program (0/10023)

    so I've to set the owner to bugzilla:

    index.cgi ist working! but without any style.. --> no permissions @
    global.css

    [2009-09-15 14:50:17]: uid: (10023/bugzilla) gid: (10023/bugzilla)
    cmd: global.css
    [2009-09-15 14:50:17]: file has no execute permission: (/var/www/
    vhosts/bugzilla/www/bugzilla3/skins/standard/global.css)

    execute perms for a .css file?! ok lets try.. chmod 744 global.css

    [2009-09-15 14:57:15]: uid: (10023/bugzilla) gid: (10023/bugzilla)
    cmd: global.css
    [2009-09-15 14:57:15]: (8)Exec format error: exec failed (global.css)








  5. Re: Userrights problem / suexec

    I fixed the problem..

    I've a .htaccess with:

    Options +ExecCGI
    SetHandler cgi-script

    so every file will be executed as cgi-script - thats false!

    now I created a .htaccess file in the directory skins with the
    content:

    SetHandler none


+ Reply to Thread