Solved

Personal Web Server and ActivePERL

Posted on 2000-02-17
3
153 Views
Last Modified: 2013-12-28
I am trying to get PERL CGI working on PWS on Windows 98 and am having the following problem:-

1) I have installed PWS and it works, I created a webserver with root in \My Documents\Webserver and then created a directory for CGI in \My Documents\Webserver\cgi-bin

2)Using the PWS console I went to ADVANCED and then set the properties of cgi-bin to READ EXECUTE and SCRIPTS

3) Next I downloaded ActivePerl and installed it to c:\perl\bin

4) I then edited the registery and set the value of HKEY_LOCAL_MACHINE\System\Current_Control_set\Services\W3svc\Script_map

.pl = c:\perl\bin\perl.exe %s %s

5) I then created the following perl script

print "HTTP/1.0 200 OK\n";
print "Content-Type: text/html\n\n";
print "<HTML>\n";
print "<HEAD>\n";
print "<TITLE>Perl TEST PAGE</TITLE>\n";
print "</HEAD>\n";
print "<BODY>\n";
print "<H3> This is a test<\H3>\n";
print "<\BODY>\n";
print "<\HTML>\n";

called it testing1.pl and saved it in my cgi-bin directory

6) I rebooted the computer, ran my browser and navigated to cgi-bin, when I double click on testing.pl I get the following error message:-

HTTP Error 403
403.1 Forbidden: Execute Access Forbidden

This error can be caused if you try to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed.

Please contact the Web server's administrator if the problem persists.

7) To test whether this was a directory permissions problem I put a .exe in the directory and it ran fine.

Anybody any ideas where I am going wrong !!

0
Comment
Question by:davebarter
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 12

Expert Comment

by:Patricia Siu-Lai Ho
ID: 2533356
davebarter, Just a glance for these lines (not closing by / )

print "<H3> This is a test<\H3>\n";
print "<\BODY>\n";
print "<\HTML>\n";

-----
print "<H3> This is a test</H3>\n";
print "</BODY>\n";
print "</HTML>\n";

---------
pslh
0
 

Accepted Solution

by:
murrays earned 200 total points
ID: 2533847
It looks like you have set it all up correctly.

However you are attempting to use it incorrectly.

> I rebooted the computer, ran my browser and navigated to cgi-bin, when I double click on testing.pl

When you do this you are using the browser to load this file NOT the web server.

If you wish to invoke this perl script you need to use PWS.

A url of http://127.0.0.1/cgi-bin/testing1.pl should work.

NB check your filename you

>... called it "testing1.pl" and saved >it in my cgi-bin directory

>6) I rebooted the computer, ran my >browser and navigated to cgi-bin, when >I double click on "testing.pl"
0
 

Author Comment

by:davebarter
ID: 2536881
Sorry I am afraid the problem persists even when typing in the full URL.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question