Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2000
Posts: 226
Member
Member
Offline
Joined: Aug 2000
Posts: 226
< shameless begging >

This stuff is definitely not my strong point. I am hoping somebody out here knows where I have gone wrong.

I have installed apache on my Win2k pro pc here at work. I have also installed active perl.

The problem is, when I try to run the printenv.pl script in apache's cgi-bin directory, Windows opens up a command prompt and runs it from there instead of the browser.

What have I done wrong, and how in heck do I fix it?

< /shameless begging >
Amy

Sponsored Links
Joined: Sep 2000
Posts: 755
P.I.T.A. / Programmer
P.I.T.A. / Programmer
Offline
Joined: Sep 2000
Posts: 755
Are you switching into the cgi bin and running the script from your command line, or are you going through a browser (with http://localhost/cgi-bin/yourscript.pl)?

Also, did you allow for cgi access on the web server? Look in your apache/conf directory at the file httpd.conf. Search through it for [b]cgi[b].

You should find a couple of lines dealing with cgi access. They're commented out by default. Uncomment them, and restart the server. They should be similar to:

ScriptAlias /cgi-bin/ "c:/Apache/cgi-bin/"

and

# To use CGI scripts:
#
AddHandler cgi-script .cgi

(you need to add .pl to that too, if you want to execute .pl files)

AddHandler cgi-script .cgi .pl

--mark


"Annnnnnnndd now, opening for Iron Maiden...... WYLD STALLYNS!!!" --Bill S. Preston, Esquire and Ted "Theodore " Logan
Joined: Aug 2000
Posts: 226
Member
Member
Offline
Joined: Aug 2000
Posts: 226
I found the problem. With perl in my path and configured to execute .pl files on my computer, I had problems.

I removed the association, and now have UBB running on my laptop. Finally, I can hack in peace and not worry about screwing up my live board.

Amy


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)