Thread Probleme mit CPAN install - Xampp Windows 10 (30 answers)
Opened by Henry07 at 2022-01-23 17:58

GwenDragon
 2022-01-27 19:20
#194222 #194222
User since
2005-01-17
14548 Artikel
Admin1
[Homepage]
user image
Du musst dich schon etwas mit den Konfiguratinsdateien deines XAMP insbesondere Apache beschäftigen, wenn du Programmieren willst.
Ich hätte nicht damit gerechnet, dass ich so stark mithelfen muss.
Ich muss mir erst mal selbst ansehe wie XAMPP da macht.

//EDIT:

Die Datei ...\xampp\apache\conf\extra\httpd-vhosts.conf ist wohl zuständig für den VHost.

Ugetestet:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<VirtualHost *:80>  
ServerName perlserver
DocumentRoot C:/perlprogs/

ErrorLog "C:/perlprogs/logs/error.log"
CustomLog "C:/perlprogs/logs/access.log" common

<Directory "C:/perlprogs/">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks Includes ExecCGI

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride All

#
# Controls who can get stuff from this server.
#
Require all granted

# Alle Dateien mit .pl und .cgi sind als Perl-CGI-Programme auszuführen
<FilesMatch "\.(pl|cgi)$">
Options +FollowSymLinks +execCGI
SetHandler cgi-script
</FilesMatch>

</Directory>

</VirtualHost>


Ich habs getestet.

Perl-Programme nach C:/perlprogs kopieren.
Verzeichnis C:/perlprogs/logs anlegen
Shebang im Perl-CGI-Programm auf #!perl setzen.
Dann mit start_apache.bat Apache starten
Wenn du dann aufrufst http://localhost/tellme.pl sollte es klappen.

Editiert von GwenDragon: Tippfehler
Editiert von GwenDragon: Update der Konfig etc.
Last edited: 2022-01-27 20:34:30 +0100 (CET)
die Drachin, Gwendolyn


Unterschiedliche Perl-Versionen auf Windows (fast wie perlbrew) • Meine Perl-Artikel

View full thread Probleme mit CPAN install - Xampp Windows 10