Solved

Personal Web Server and ActivePERL

Posted on 2000-02-17
3
148 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
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
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…

705 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now