Schrift
Wiki:Tipp zum Debugging: use Data::Dumper; local $Data::Dumper::Useqq = 1; print Dumper \@var;
[thread]925[/thread]

Perl-Skript im IE ausführen: Datei öffnen oder speichern (Seite 2)

Leser: 1


<< |< 1 2 3 >| >> 25 Einträge, 3 Seiten
MisterL
 2007-05-06 23:46
#46 #46
User since
2006-07-05
334 Artikel
BenutzerIn
[default_avatar]
Also ich habe mir die Testumgebung gerade mal (wieder) installiert. Windows2K, XAMPP 1.6.1, ActivePerl 5.8.8.
Eine hallowelt.pl scheint da nicht zu existieren...
Dafür gibt es den Ordner Programme\xampp\cgi-bin\ mit den Dateien cgi.cgi , perltest.cgi und printenv.pl : http://127.0.0.1/cgi-bin/perltest.cgi

Gruss MisterL
“Perl is the only language that looks the same before and after RSA encryption.”
Ansen
 2007-05-07 01:24
#47 #47
User since
2007-05-06
17 Artikel
BenutzerIn
[default_avatar]
Die Datei "HalloWelt.pl" habe ich selber erstellt.
Ansen
 2007-05-07 01:30
#48 #48
User since
2007-05-06
17 Artikel
BenutzerIn
[default_avatar]
Ich habe jetzt gerade mal die Testdateien in diesem Verzeichnis ausprobiert. Ich habe festgestellt, dass Dateien mit der Endung ".cgi" richtig ausgeführt werden, aber Dateien mit der Endung ".pl" eben nicht.
renee
 2007-05-07 10:34
#49 #49
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Dann stimmt was mit dem Handler nicht. Schau Dir nochmal die Konfigurationsdatei an. Was steht da in der Zeile mit "AddHandler cgi-script" genau? Ist das global oder nur für ein bestimmtes Verzeichnis?
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/
Struppi
 2007-05-07 15:58
#50 #50
User since
2006-02-17
628 Artikel
BenutzerIn
[Homepage]
user image
ist die Shebang Zeile richtig bzw. unter Windows in der Konfiguration die Zeile einfügen: ScriptInterpreterSource registry
Ansen
 2007-05-07 20:24
#51 #51
User since
2007-05-06
17 Artikel
BenutzerIn
[default_avatar]
Hier gebe ich mal kurz alle Zeilen aus der 'httpd.conf' an, die nicht auskommentiert sind:

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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
ThreadsPerChild 250
MaxRequestsPerChild  0
ServerRoot "C:/xampp/apache"
Listen 127.0.0.1:80

LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule include_module modules/mod_include.so
LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule status_module modules/mod_status.so
LoadModule ssl_module modules/mod_ssl.so
LoadModule autoindex_color_module modules/mod_autoindex_color.so

ServerAdmin admin@localhost
ServerName localhost:80
DocumentRoot "C:/xampp/htdocs"

<Directory />
   Options FollowSymLinks
   AllowOverride None
   Order deny,allow
   Deny from all
</Directory>

<Directory "C:/xampp/htdocs">
   Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
   Order allow,deny
   Allow from all

</Directory>

<IfModule dir_module>
   DirectoryIndex index.php index.php4 index.php3 index.cgi index.pl index.html index.htm index.shtml index.phtml
</IfModule>

#
<FilesMatch "^\.ht">
   Order allow,deny
   Deny from all
</FilesMatch>

ErrorLog logs/error.log
LogLevel warn

<IfModule log_config_module>
   LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
   LogFormat "%h %l %u %t \"%r\" %>s %b" common

   <IfModule logio_module>
     # You need to enable mod_logio.c to use %I and %O
     LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
   </IfModule>
   CustomLog logs/access.log common
</IfModule>

<IfModule alias_module>
ScriptAlias /cgi-bin/ "C:/xampp/cgi-bin/"

</IfModule>
<Directory "C:/xampp/cgi-bin">
   AllowOverride None
   Options None
   Order allow,deny
   Allow from all
</Directory>

ScriptInterpreterSource registry
DefaultType text/plain

<IfModule mime_module>
   TypesConfig conf/mime.types
   AddType application/x-compress .Z
   AddType application/x-gzip .gz .tgz
   AddHandler cgi-script .cgi .pl
  AddType text/html .shtml
  AddOutputFilter INCLUDES .shtml
</IfModule>

EnableMMAP off
EnableSendfile off

Include conf/extra/httpd-xampp.conf
Include conf/extra/httpd-multilang-errordoc.conf
Include conf/extra/httpd-autoindex.conf
Include conf/extra/httpd-languages.conf
Include conf/extra/httpd-userdir.conf
Include conf/extra/httpd-info.conf
Include conf/extra/httpd-vhosts.conf
Include conf/extra/httpd-manual.conf
Include conf/extra/httpd-dav.conf
Include conf/extra/httpd-default.conf
Include conf/extra/httpd-ssl.conf

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>


So, vielleicht findet da jemand einen Fehler drin. Ich hab alles nachgeschaut, was ihr gemeint habt und ausprobiert, aber alles hat nicht geklappt.

---
Modedit Gwendragon: Beiträge zussammengeführt
---\n\n

<!--EDIT|GwenDragon|1178611591-->
GwenDragon
 2007-05-08 12:08
#52 #52
User since
2005-01-17
14849 Artikel
Admin1
[Homepage]
user image
Sendet dein HelloWorld-Skript auch einen korrekten Content-Type?
Ansen
 2007-05-08 19:46
#53 #53
User since
2007-05-06
17 Artikel
BenutzerIn
[default_avatar]
Hier mal den Code von meinem Hello World.
Allerdings passiert auch das selbe in der Testdatei 'printenv.pl' von Apache.

Code: (dl )
1
2
3
4
5
6
7
#!perl

print "Content-type: text/plain

Hallo Welt!

";
GwenDragon
 2007-05-08 20:01
#54 #54
User since
2005-01-17
14849 Artikel
Admin1
[Homepage]
user image
Der Internet Explorer hat eine Macke.
Ihn interessiert nicht, was als Content-Type gesendet wird. Er glaubt, dass es sich um eine Downloadatei handeln muss, weil der Link am Ende kein .html stehen hat.
Ansen
 2007-05-08 20:10
#55 #55
User since
2007-05-06
17 Artikel
BenutzerIn
[default_avatar]
Genau, das glaube ich auch.
Aber was kann man dagegen machen?
<< |< 1 2 3 >| >> 25 Einträge, 3 Seiten



View all threads created 2007-05-06 16:33.