Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Apache nie obsluguje perla???
Forum PHP.pl > Forum > Serwery WWW > Apache
adisoft
Mam taki problem nie wiem czy moj serwer obsluguje skrypty CGI oraz Perl... Robilem test:
*************************************************************
[php:1:76fe6250c6]
#!C:perlbinperl.exe

print "Content-type: text/html", "nn";
print "<HTML>", "n";
print "<HEAD><TITLE>About this Server</TITLE></HEAD>", "n";
print "<BODY><H1>About this Server</H1>", "n";
print "<HR><PRE>";
print "Server Name: ", $ENV{'SERVER_NAME'}, "<BR>", "n";
print "Running on Port: ", $ENV{'SERVER_PORT'}, "<BR>", "n";
print "Server Software: ", $ENV{'SERVER_SOFTWARE'}, "<BR>", "n";
print "Server Protocol: ", $ENV{'SERVER_PROTOCOL'}, "<BR>", "n";
print "CGI Revision: ", $ENV{'GATEWAY_INTERFACE'}, "<BR>", "n";
print "<HR></PRE>", "n";
print "</BODY></HTML>", "n";
exit (0);
[/php:1:76fe6250c6]
*************************************************************
I server wyswietlil:

About this Server
--------------------------------------------------------------------------------
Server Name: 1XX.XXX.XX.XX
Running on Port: 80
Server Software: Apache/2.0.39 (Win32) php/4.2.2
Server Protocol: HTTP/1.1
CGI Revision: CGI/1.1
*************************************************************
Czyli niby wszystko gra... dodalem do httpd.conf obsluge perla *.pl do tej lini dodalem .pl "AddHandler cgi-script .cgi .pl " w httpd.conf nie zmienialem domyslnego folderu i wszystkie skrypty sa uruchamianie z folderu CGI-BIN... po dodaniu obslugi perla zmienilem cgitesta na perl i tez niby dziala... pozniej testowalem pythona i takze bez zarzutow ale problem pojawia sie keidy mam zamiar uruchomic jakies skrypty perl oraz cgi inne niz te testy to wtedy po wskazaniu przegladarce danej aplikacji webowej napisanej w perlu... Server albo chce zapisac dany plik na hdd albo wyswietla komunikat:
*************************************************************
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, adisoft@localhost.net 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.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/2.0.39 Server at 1XX.XXX.XX.XX Port 80
*************************************************************
Dziwne?questionmark.gif? Moje specyfikacje to pakiet FoxServ 3.0 Apache/2.0.39/php 4.2.2/Python/Pear/Perl/MySQL/phpadmin/ to samo sie dzieje na serwerze a tam mam juz wszystko kompilowane ze zrodel?questionmark.gif Jest na to jakis sposob?questionmark.gif a ostatnio jak chcialem odpaclic forum w perlu to server (a dokladnie skrypt testujacy forum):

Modul CGI nie jest zainstalowany.
Modul HTML::Template nie jest zainstalowany.
Modul DBD::mysql nie jest zainstalowany.
Modul DBI nie jest zainstalowany.
Modul Digest::MD5 nie jest zainstalowany.

Czy do obslugi cgi oraz perl trzeba jeszcze dorzucic jakies dodatkowe moduly?questionmark.gif Chyba same biblioteki perla i reszta wystartczy?questionmark.gif

Prosze o pomoc...
adisoft
moze podalem zbyt malo danych dotyczacych mojego problemu?questionmark.gif bardzo prosze o jaka kolwiek pomoc Z gory dziekuje
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.