|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
Please help me configuring my Apache server and/or browser with Windows XP Home. I prepared a test cgi (perl), which I call via a HTML form [see below]; when I submit via IE6.0, the windows content doesn't change, while the script is executed via a Dos-box (but the new content is not returned to the browser); when I do the same with Firefox 1.0.2, I get the scripts source text displayed (no execution, but file access). I wonder, what is wrong. I should add: a) I see correct HTML-content when I run the script stand-alone from a Dos-box, write the result to a file and display it (both in IE and FF) => content ok b) .pl files are associated with the perl.exe (ActivePerl) on my system => side effect? c) I get a proper browser error, when I introduce an incorrect script name => Apache is working d) I can not change file permission to 755 or so, because XP doesn't allow me to do so, does it? I started with the default httpd configuration; the test cgi script is in Apaches default cgi-bin directory for simplicity; I did not activate the AddHandler directive, as it shouldn't be necessary; I varied the default entry for Option from None, to +ExecCGI and ExecCGI, while stopping and restarting the Apache server after each change: no difference. httpd: ~~~~~ # ScriptAlias: This controls which directories contain server scripts. # ScriptAliases are essentially the same as Aliases, except that # documents in the realname directory are treated as applications and # run by the server when requested rather than as documents sent to the client. # The same rules about trailing "/" apply to ScriptAlias directives as to # Alias. # ScriptAlias /cgi-bin/ "C:/Programme/Apache Group/Apache2/cgi-bin/" # # "C:/Programme/Apache Group/Apache2/cgi-bin" should be changed to whatever your ScriptAliased # CGI directory exists, if you have that configured. # <Directory "C:/Programme/Apache Group/Apache2/cgi-bin"> AllowOverride None #Options +ExecCGI #Options None Options ExecCGI Order allow,deny Allow from all </Directory> HTML-form: ~~~~~~~~~ ... <form action="test.pl" method="post" enctype="text/plain"> <br><input type="submit" value="apache-directory test.pl"> </form> ... test.pl: ~~~~~~~ #!c:/programme/Perl/bin/Perl.exe -w ## use CGI qw(:standard) ; print header(); print start_html; print "Hello, world !!!"; print end(); Thanks for your help in advance. Michael |
|
#2
|
|||
|
|||
|
Hi,
I made a stupid mistake in calling my files. I have to remind myself, I now work with a server, no longer with a filesystem. What I did was entering s.th. like: file:///C:/.../test.pl as URL, while ist should have been: http://localhost/cgi-bin/test.pl ... Sorry and thanks for caring. Michael |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Server Configuration > Am desperate: CGI Apache XP-home not working |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|