Solved

Personal Web Server and ActivePERL

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

920 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

16 Experts available now in Live!

Get 1:1 Help Now