Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get ActiveState Perl working on Windows 98 with PWS

Status
Not open for further replies.

jhipkiss

Programmer
Jul 1, 2000
6
US
I'm pulling my hair out trying to get perl installed and working OK on my Windows 98 PC running PWS.<br><br>Perl is installed OK and runs from the command prompt but I can't get it to be called OK when referring to a perl script in a web page on 127.0.0.1<br><br>I've set up a .pl entry in my registry pointing to perl.exe %s %s.<br><br>I'll also want to get DBI working eventually, but first thing first.&nbsp;&nbsp;The obvious &quot;Hello World&quot; script would be a good start.<br><br>Please, somebody help me :eek:(<br><br>Jonathan Hipkiss<br>Nottingham, England
 
What do you see in your browser?&nbsp;&nbsp;Is there an error log for PWS?&nbsp;&nbsp;If there is, what do you see in it when your script fails? <p> <br><a href=mailto: > </a><br><a href= > </a><br>--<br>
0 1 - Just my two bits
 
It doesn't do anything it just sits there then times out.&nbsp;&nbsp;All other aspects of the webserver are working fine.<br>It's very puzzling.<br>
 
bail on PWS and go to Apache.&nbsp;&nbsp;.....' better return on the time/effort investment and not any more difficult to wade through.<br><br>humbly suggested ;^) <p> <br><a href=mailto: > </a><br><a href= > </a><br> keep the rudder amid ship and beware the odd typo
 
I'm having the same problem under NT.&nbsp;&nbsp;Perl scripts are associated correctly both as .pl and as .cgi and run from the command line, but they won't run on PWS from the browser.&nbsp;&nbsp;I tried Apache and it made no difference, but I also need to run ASP scripts so really need PWS. The third-party software for running ASP scripts from Apache is just too expensite.<br><br>I get a Page Cannot be Displayed - Server 500 error, though the scripts themselves run fine on other systems and from the command line.
 
hate to pull this out the bag again, but can anyone suggest a sollution to this '500 server error' when running .pl files from the browser with PWS and ActivePerl on Win98 ???

Thnx folks,

Will


ps. TechDude - renaming .pl -> .cgi dosent wrk. perl works fine in dos tho...hmmmmm
 
Best advice I can give having started this thread so long ago is to ditch pws and load apache, it's so much easier!!

Plus you'll save yourself loads of memory and fewer security risks!!!!!

There is no solution to Perl and PWS that I've ever heard of! That's no fault of Perl btw.

Jonathan
 
Here's how I got it to work. Right click on the PWS icon in your system tray and select &quot;Properties&quot;. In the window that comes up, click on &quot;Advanced&quot;. That should bring up a list of virtual directories. If there is an entry for your cgi directory (/cgi-bin or /cgi-local usually) click on that and click &quot;Edit Properties&quot;, otherwise click &quot;Add&quot;. Enter the full pathname of the directory where your cgi programs are stored, and make sure the &quot;Execute&quot; and &quot;Scripts&quot; checkboxes are checked.
Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Yes, Apache is the best choice but if you must use PWS for whatever reason, you need to install the IIS control panel to configure Perl properly. Once you do, then the advice that Tracy gave will need to be checked to be sure it is set correctly - it should be by default.

PWS needs to know what to do with Perl scripts though and the only way to configure that is through IIS, especially if your scripts use the .cgi file extension. The ActiveState default installation of Perl might work without IIS but it provides support only for scripts with the .pl file extension and it takes IIS to add other extensions, such as .cgi.

If you upgrade to Windows 2000, all of this is much easier, by the way, because IIS installs as part of Windows installation. If you keep Windows 98, you will have to install IIS, which might be tucked away somewhere on your Windows98 inatallation CD-ROM. Don
pc@accesscom.com
Experienced in HTML, Perl, VBScript, PWS, IIS and Apache. Run OS/2 Warp 4, BeOS v5 and Windows NT (only when I have to!)
 
Ok thanx Jon, Tacey & Don,

I seem to be having initial success with my PerlScript in ASP so im not going to tease the tiger by installing other stuff.

Will
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top