httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Christensen" <dpchr...@holgerdanske.com>
Subject Re: [users@httpd] Debian 3.0r1 Apache 1.3.26 cgi-bin behavior depends on script name and browser (?)
Date Wed, 01 Oct 2003 19:21:06 GMT
users@httpd.apache.org:

Brian Dessent wrote:
> What are the permissions and user/group of all these script files?
> Try making them all 755 and see if that changes anything.

    dpchrist@d3020g:~/public_html/cgi-bin$ ll
    total 52
    drwxr-xr-x    3 dpchrist dpchrist     4096 Oct  1 12:13 ./
    drwxr-xr-x    4 dpchrist dpchrist     4096 Sep 28 21:41 ../
    drwxr-xr-x    2 dpchrist dpchrist     4096 Sep 30 21:07 CVS/
    -rwxr-xr-x    1 dpchrist dpchrist      186 Sep 29 22:42 bar.pl*
    -rwxr-xr-x    1 dpchrist dpchrist      351 Oct  1 12:12 dumpvars.pl*
    -rwxr-xr-x    1 dpchrist dpchrist       81 Sep 29 17:46 foo.pl*
    -rwxr-xr-x    1 dpchrist dpchrist      194 Sep 30 20:51 intro3.pl*
    -rwxr-xr-x    1 dpchrist dpchrist      215 Nov 20  2000 intro3a.pl*
    -rwxr-xr-x    1 dpchrist dpchrist      219 Sep 30 20:46 intro3b.pl*
    -rwxr-xr-x    1 dpchrist dpchrist      194 Sep 30 20:51 intro3d.pl*
    -rwxr-xr-x    1 dpchrist dpchrist      193 Sep 29 22:42 intro4.pl*
    -rwxr-xr-x    1 dpchrist dpchrist      166 Sep 29 22:42 intro5.pl*
    -rwxr-xr-x    1 dpchrist dpchrist      747 Sep 29 22:42 intro7.pl*


> And what user is Apache running as,


    dpchrist@d3020g:~/public_html/cgi-bin$ cat dumpvars.pl
    #! /usr/bin/perl
    use warnings;
    use strict;
    use CGI qw( :standard );
    print header('text/plain');
    print "Environment variables:\n";
    foreach my $key ( sort keys %ENV ) {
        print "    ", $key, " => ", $ENV{$key}, "\n";
    }
    print "\n";
    print "Command output:\n";
    foreach my $cmd (sort qw( hostname pwd whoami )) {
        print "    ", $cmd, " => ", `$cmd`;
    }

    http://192.168.254.2/~dpchrist/cgi-bin/dumpvars.pl
    Environment variables:
        DOCUMENT_ROOT => /var/www
        GATEWAY_INTERFACE => CGI/1.1
        HTTP_ACCEPT => application/x-shockwave-flash,text/xml,applicatio
n/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng
,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1
        HTTP_ACCEPT_CHARSET => ISO-8859-1,utf-8;q=0.7,*;q=0.7
        HTTP_ACCEPT_ENCODING => gzip,deflate
        HTTP_ACCEPT_LANGUAGE => en-us,en;q=0.5
        HTTP_CACHE_CONTROL => max-age=0
        HTTP_CONNECTION => keep-alive
        HTTP_HOST => 192.168.254.2
        HTTP_KEEP_ALIVE => 300
        HTTP_USER_AGENT => Mozilla/5.0 (Windows; U; Windows NT 5.0; en-U
S; rv:1.4) Gecko/20030624
        PATH => /usr/local/bin:/usr/bin:/bin
        QUERY_STRING =>
        REMOTE_ADDR => 192.168.1.10
        REMOTE_PORT => 4985
        REQUEST_METHOD => GET
        REQUEST_URI => /~dpchrist/cgi-bin/dumpvars.pl
        SCRIPT_FILENAME =>
/home/dpchrist/public_html/cgi-bin/dumpvars.pl
        SCRIPT_NAME => /~dpchrist/cgi-bin/dumpvars.pl
        SERVER_ADDR => 192.168.254.2
        SERVER_ADMIN => webmaster@d3020g
        SERVER_NAME => 192.168.254.2
        SERVER_PORT => 80
        SERVER_PROTOCOL => HTTP/1.1
        SERVER_SOFTWARE => Apache/1.3.26 (Unix) Debian GNU/Linux
        UNIQUE_ID => P3sniMCo-gIAAAD5AAQ

    Command output:
        hostname => d3020g
        pwd => /home/dpchrist/mysql-perl/public_html/cgi-bin
        whoami => dpchrist


> and is suexec in use?

How do I determine if suexec is in use?


David


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message