Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 12
  1. #1

    Cartella locale cgi-bin non va

    la cartella cgi-bin non mi legge un tubo.
    Ho installato tutto (su win server 2003) ,apache e perl pero non va.

    solo un file funziona provacgi.pl con al suo interno :
    ---------------------------------------
    #!C:\PERL\bin\perl.exe

    use CGI qw(:standard) ;
    print header();
    print "Ciao a tutti!";
    ---------------------------------------
    Restituendomi come risposta "appunto" ciao a tutti.


    Poi le pagine html non si vedono mi dice :
    Internal Server Error ect ect.

    la cartella con perl e C:\PERL
    la cartella di apache e C:\Programmi\Apache Group\Apache\cgi-bin

    Di sicuro bisogna configurare ulteriormente httpd.conf.

    Che debbo fare
    Grazie ciao.
    Simone Musiu

  2. #2
    se intendi dire che delle pagine html all'interno di cgi-bin non vengono lette se le chiami dal browser, ciò è perfettamente normale, infatti nella cgi-bin vanno messi solo gli eseguibili e i file da leggere tramite sistema (con funzioni di tipo open) e non dall'esterno tramite browser.

    Le pagine vanno messe nella directory giusta che in httpd.conf è la Document root.
    Marco Allegretti
    shishii@tiscalinet.it
    Lang: PERL, PHP, SQL.
    Linux user n° 268623 Fedora Core 10, Fedora Core 6, Debian Sarge on mips

  3. #3
    grazie della risposta
    ma gli script non funzionano
    ne ho provato a decine
    mi dice sempre :

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, admin@small.uisum and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.
    Simone Musiu

  4. #4
    e in error_log cosa c'è scritto?
    Marco Allegretti
    shishii@tiscalinet.it
    Lang: PERL, PHP, SQL.
    Linux user n° 268623 Fedora Core 10, Fedora Core 6, Debian Sarge on mips

  5. #5
    sono abbastanza inesperto
    ma dove lo trovo error_log .
    grazie
    Simone Musiu

  6. #6
    in windows error log dovrebbe essere dentro qualche subdirectory di
    C:\Programmi\Apache Group\Apache

    e si dovrebbe chiamare error.log o error_log o simili.

    E' un file di testo leggibile con notepad.
    Marco Allegretti
    shishii@tiscalinet.it
    Lang: PERL, PHP, SQL.
    Linux user n° 268623 Fedora Core 10, Fedora Core 6, Debian Sarge on mips

  7. #7
    [CODE[Sun Aug 08 16:34:43 2004] [error] [client 192.168.0.1] couldn't spawn child process: c:/programmi/apache group/apache/cgi-bin/calendar.cgi
    [Sun Aug 08 16:34:43 2004] [error] [client 192.168.0.1] couldn't spawn child process: c:/programmi/apache group/apache/cgi-bin/calendar.cgi
    [Sun Aug 08 16:35:45 2004] [error] [client 192.168.0.1] couldn't spawn child process: c:/programmi/apache group/apache/cgi-bin/prova.pl
    [Sun Aug 08 16:35:53 2004] [error] [client 127.0.0.1] couldn't spawn child process: c:/programmi/apache group/apache/cgi-bin/prova.pl
    [Sun Aug 08 16:35:55 2004] [error] [client 127.0.0.1] couldn't spawn child process: c:/programmi/apache group/apache/cgi-bin/prova.pl
    [Sun Aug 08 16:35:58 2004] [error] [client 127.0.0.1] attempt to invoke directory as script: c:/programmi/apache group/apache/cgi-bin
    [Sun Aug 08 16:36:05 2004] [error] [client 127.0.0.1] couldn't spawn child process: c:/programmi/apache group/apache/cgi-bin/prova.pl
    [Sun Aug 08 16:37:49 2004] [error] [client 192.168.0.1] c:/programmi/apache group/apache/cgi-bin/calendar.html is not executable; ensure interpreted scripts have "#!" first line
    [Sun Aug 08 16:37:49 2004] [error] [client 192.168.0.1] couldn't spawn child process: c:/programmi/apache group/apache/cgi-bin/calendar.html
    [Sun Aug 08 16:39:27 2004] [error] [client 192.168.0.1] c:/programmi/apache group/apache/cgi-bin/calendar.html is not executable; ensure interpreted scripts have "#!" first line
    [Sun Aug 08 16:39:27 2004] [error] [client 192.168.0.1] couldn't spawn child process: c:/programmi/apache group/apache/cgi-bin/calendar.html
    [Sun Aug 08 17:05:38 2004] [error] [client 192.168.0.11] File does not exist: c:/programmi/apache group/apache/htdocs/inetpub
    [Sun Aug 08 17:54:37 2004] [error] [client 192.168.0.11] File does not exist: c:/programmi/apache group/apache/htdocs/sysvol
    [Sun Aug 08 18:57:45 2004] [error] [client 192.168.0.11] File does not exist: c:/programmi/apache group/apache/htdocs/inetpub
    [Sun Aug 08 18:58:35 2004] [error] [client 192.168.0.1] c:/programmi/apache group/apache/cgi-bin/calendar.html is not executable; ensure interpreted scripts have "#!" first line
    [Sun Aug 08 18:58:35 2004] [error] [client 192.168.0.1] couldn't spawn child process: c:/programmi/apache group/apache/cgi-bin/calendar.html
    [Sun Aug 08 18:58:36 2004] [error] [client 192.168.0.1] c:/programmi/apache group/apache/cgi-bin/calendar.html is not executable; ensure interpreted scripts have "#!" first line
    [Sun Aug 08 18:58:36 2004] [error] [client 192.168.0.1] couldn't spawn child process: c:/programmi/apache group/apache/cgi-bin/calendar.html[/CODE]


    gli ultimi errori
    Simone Musiu

  8. #8
    c:/programmi/apache group/apache/cgi-bin/calendar.html is not executable; ensure interpreted scripts have "#!" first line

    ma cosa stai cercando di eseguire?

    cosa è calendar.html?

    gli scipt devono avere estensione .pl o cgi e devono essere costituiti da codice eseguibile non html. Se si tratta di script perl inserisci alla prima riga l'indirizzo dell'interprete di perl:

    #!c:\Perl\bin\perl.exe
    Marco Allegretti
    shishii@tiscalinet.it
    Lang: PERL, PHP, SQL.
    Linux user n° 268623 Fedora Core 10, Fedora Core 6, Debian Sarge on mips

  9. #9
    scusa pero
    le estensioni .html .asp .php dentro cgi-bin, su aruba e tiscali i file vengono letti normalmente (a me servirebbe leggere anche quei tipi di file in locale)

    e poi gli script che si trovano nel web iniziano sempre :

    #!/usr/bin/perl e non #!C:\PERL\bin\perl.exe

    come mai.
    grazie
    Simone Musiu

  10. #10
    Originariamente inviato da simonemusiu
    scusa pero
    le estensioni .html .asp .php dentro cgi-bin, su aruba e tiscali i file vengono letti normalmente (a me servirebbe leggere anche quei tipi di file in locale)
    Non mi pare che aruba e tiscali vadano presi ad esempio nei settaggi dei webserver.
    Comunque bisogna vedere che webserver usano, su apache se vuoi fare leggere il sorgente di uno script lo devi mettere fuori della cgi-bin

    e poi gli script che si trovano nel web iniziano sempre :

    #!/usr/bin/perl e non #!C:\PERL\bin\perl.exe

    come mai.
    grazie
    sui sistemi UNIX è #!/usr/bin/perl
    ma tu hai detto che sei su windows e l'interprete di perl li è in #!C:\PERL\bin\perl.exe
    Marco Allegretti
    shishii@tiscalinet.it
    Lang: PERL, PHP, SQL.
    Linux user n° 268623 Fedora Core 10, Fedora Core 6, Debian Sarge on mips

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.