[Perl] Installation

Zuaroacha

Lt. Commander
Registriert
Nov. 2001
Beiträge
1.157
Perl Installation

Kann mir bitte wer erleutern wie ich perl installiere ??? als webserver is apache laufen. jetzt habe ich mir aktiveperl gesaugt und installiert und was mach ich nun ?

apache version 1.3.24
 
Re: Perl Installation

du musst deine httpd.conf vom Apache konfigurieren.

Je nachdem, ob du das ausführen von cgi-scripts nur aus dem cgi-bin Verzeichnis oder allen Verzeichnissen erlauben willst.

ScriptAlias /cgi-bin/ "C:/Programme/Apache Group/Apache/cgi-bin/"

#
# "C:/Programme/Apache Group/Apache/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "C:/Programme/Apache Group/Apache/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

# If you want to use server side includes, or CGI outside
# ScriptAliased directories, uncomment the following lines.
#
# To use CGI scripts:
#
AddHandler cgi-script .cgi
AddHandler cgi-script .pl

für alle Verzeichnisse, aus denen du CGI's ausführen willst, oghne sie global zu erlauben, musst du die Option ExecCGI anschalten.
 
Re: Perl Installation

das tauch bei mir auf

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, n00by@aon.at 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.


und in den logs steht:

(2)No such file or directory: couldn't spawn child process: e:/easyphp/www/cgi-bin/install.cgi
 
der fehler taucht imerm auf, wenn der pfad zum perl-interpreter im script falsch ist.

also entweder du schaltest deinen apache so, dass er den pfad aus der registry nimmt, oder du schreibst ihn in die erste zeile des scripts.

so: #!C:\Perl\Bin\Perl
 
Zurück
Oben