Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old May 4th, 2005, 05:52 AM
mike-j mike-j is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 2 mike-j User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 5 sec
Reputation Power: 0
Unhappy Am desperate: CGI Apache XP-home not working

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

Reply With Quote
  #2  
Old May 6th, 2005, 08:43 AM
mike-j mike-j is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 2 mike-j User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 5 sec
Reputation Power: 0
Smile Problem found - bang my head

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

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > Am desperate: CGI Apache XP-home not working


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT