Mozilla

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • cannot execute index.cgi

    6 answers - 807 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Hi folks,
    i cannot execute the index.cgi.
    The funny thing is, that i can execute the testagent.cgi!
    The Webserver is Appache with mod_ssl and database is mysql.
    All versions are newer than the required ones.
    I put
    <Directory /var/www/html/bugzilla>
    AddHandler cgi-script .cgi
    +Indexes +ExecCGI
    DirectoryIndex index.cgi
    A Limit
    </Directory>
    to the httpd.conf.
    The permissions are set, i tried also with chmod 777 for testing.
    I tried the testagent.cgi with the browser -ok
    I tried the testserver.pl -also ok
    But when i want to open the index.html / index.cgi i get an internal
    error message.
    Can anybody help me pls.
    support-bugzilla mailing list
    support-bugzilla (AT) lists (DOT) mozilla.org
  • No.1 | | 2042 bytes | |

    Frank Gwosdz schrieb:
    Hi folks,
    i cannot execute the index.cgi.
    The funny thing is, that i can execute the testagent.cgi!
    The Webserver is Appache with mod_ssl and database is mysql.
    All versions are newer than the required ones.

    I put
    <Directory /var/www/html/bugzilla>
    AddHandler cgi-script .cgi
    +Indexes +ExecCGI
    DirectoryIndex index.cgi
    A Limit
    </Directory>
    to the httpd.conf.

    The permissions are set, i tried also with chmod 777 for testing.

    I tried the testagent.cgi with the browser -ok
    I tried the testserver.pl -also ok

    But when i want to open the index.html / index.cgi i get an internal
    error message.

    Can anybody help me pls.

    the apache error_log

    [Fri Jan 13 21:47:07 2006] [error] [client 62.158.42.181] Can't locate
    Date/Format.pm in @INC (@INC contains: .
    / /usr/lib/perl5/5.8.5
    /
    /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl
    /
    / /usr/lib/perl5/vendor_perl) at
    Bugzilla/Error.pm line 32.
    [Fri Jan 13 21:47:07 2006] [error] [client 62.158.42.181] BEGIN
    failed aborted at Bugzilla/Error.pm line 32.
    [Fri Jan 13 21:47:07 2006] [error] [client 62.158.42.181] Compilation
    failed in require at Bugzilla/Util.pm line 45.
    [Fri Jan 13 21:47:07 2006] [error] [client 62.158.42.181] BEGIN
    failed aborted at Bugzilla/Util.pm line 45.
    [Fri Jan 13 21:47:07 2006] [error] [client 62.158.42.181] Compilation
    failed in require at CGI.pl line 43.
    [Fri Jan 13 21:47:07 2006] [error] [client 62.158.42.181] BEGIN
    failed aborted at CGI.pl line 43.
    [Fri Jan 13 21:47:07 2006] [error] [client 62.158.42.181] Compilation
    failed in require at / line 33.
    [Fri Jan 13 21:47:07 2006] [error] [client 62.158.42.181] Premature end
    of script headers: index.cgi
    [Fri Jan 13 21:47:07 2006] [error] [client 62.158.42.181] File does not
    exist: /opt/lampp/htdocs/favicon.ico

    support-bugzilla mailing list
    support-bugzilla (AT) lists (DOT) mozilla.org
  • No.2 | | 467 bytes | |

    Frank,

    2006/1/13, Frank Gwosdz <dr_hotzo23 (AT) gmx (DOT) de>:
    [Fri Jan 13 21:47:07 2006] [error] [client 62.158.42.181] Can't locate
    Date/Format.pm in @INC (@INC contains: .

    if you run checksetup.pl, does it tell you about a missing
    Date::Format module? From the error message you give, I suspect it
    does. It's a required module. checksetup.pl will give you a hint how
    to install the module, too.

    Regards
    Marc
  • No.3 | | 564 bytes | |

    Marc Schumann schrieb:
    Frank,

    2006/1/13, Frank Gwosdz <dr_hotzo23 (AT) gmx (DOT) de>:

    >>[Fri Jan 13 21:47:07 2006] [error] [client 62.158.42.181] Can't locate
    >>Date/Format.pm in @INC (@INC contains: .


    if you run checksetup.pl, does it tell you about a missing
    Date::Format module? From the error message you give, I suspect it
    does. It's a required module. checksetup.pl will give you a hint how
    to install the module, too.

    Regards
    Marc
  • No.4 | | 1689 bytes | |

    Frank Gwosdz wrote on 1/13/06 7:20 PM:
    Marc Schumann schrieb:
    >Frank,
    >>

    >2006/1/13, Frank Gwosdz <dr_hotzo23 (AT) gmx (DOT) de>:
    >>

    [Fri Jan 13 21:47:07 2006] [error] [client 62.158.42.181] Can't locate
    Date/Format.pm in @INC (@INC contains: .
    >>
    >>

    >if you run checksetup.pl, does it tell you about a missing
    >Date::Format module? From the error message you give, I suspect it
    >does. It's a required module. checksetup.pl will give you a hint how
    >to install the module, too.


    Hi,

    no it t, see above

    I install again and try to copy the needed files in the @inc directory,
    but still the same error.

    Assuming your apache runs as user apache, try this:

    su apache -s /bin/sh -c ./checksetup.pl

    It's possible the perl modules got installed with permissions that only
    let them be run as root. The above command line will run checksetup.pl
    with apache's permissions and quit after checking for the perl modules.
    That'll tell you what apache sees. (substitute the actual username
    used by your web server if it's not running as 'apache', others are
    typically 'www', 'www-data', or 'nobody')

    If that's the case, you'll need to locate the perl modules and fix the
    permissions. Something like this might work:

    find /usr/bin/perl5 -perm -u+x -exec chmod go+x {} \;
    find /usr/bin/perl5 -perm -u+r -exec chmod go+r {} \;
  • No.5 | | 549 bytes | |

    Hi David,
    you are a god of administration, t u. :)
    Thx, now it works and how it works!

    a further question

    u wrote that i must test it with
    su apache -s /bin/sh -c ./checksetup.pl

    The commando t work at all because of the option
    (I think an escape char is missing).
    I make su first and then only ./checksetup.pl and then i
    know u was right, some perl packages t on my system.

    Thx, Thx Thx Regards Frank

    support-bugzilla mailing list
    support-bugzilla (AT) lists (DOT) mozilla.org
  • No.6 | | 533 bytes | |

    Frank Gwosdz wrote on 1/14/06 2:04 AM:
    Hi David,
    you are a god of administration, t u. :)
    Thx, now it works and how it works!

    a further question

    u wrote that i must test it with
    su apache -s /bin/sh -c ./checksetup.pl

    The commando t work at all because of the option
    (I think an escape char is missing).
    I make su first and then only ./checksetup.pl and then i
    know u was right, some perl packages t on my system.

    Ah, yeah, I goofed that up. Drop the "-c" and that should have worked.

Re: cannot execute index.cgi


max 4000 letters.
Your nickname that display:
In order to stop the spam: 9 + 8 =
QUESTION ON "Mozilla"

EMSDN.COM