Link to home
Start Free TrialLog in
Avatar of morten444
morten444

asked on

Perl on WAMP SERVER. Not working. what am I dooing wrong?

Hi
I am trying to install Perl on our webserver
We use apache 2.0.53

I have downoladed perl and installed it using this guide:
http://guides.jlbn.net/setcgi/setcgi1.html


I get to the last point and want to test by writing:
http://localhost/cgi-bin/printenv.pl it does not give me the expected test page, but instead it opens a box asking if I want to save or open the file.
If i choose "open" a dos window flashes up for a split secound but I cant see what it says.

Does this mean Per is not working?
Anyone know what the problem is?
Is there another way to test it?

ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of morten444
morten444

ASKER

Hi
As pr point 27 in my instruction, I have added this handeler:
AddHandler cgi-script .cgi .pl

I have also added: #!C:/wamp/apps/Perl/bin/perl.exe to the "printenv.pl

It act in the same way as my previus IIS Server when opening .php files. I then had to add .php extention to ISS and then it worked. Wonder if its the same here with .pl extention. If it is, I have no idea where to amend that.

Any other suggestion?

"AddHandler cgi-script .cgi .pl" should have added PERL to the programs the server will run.  You do have restart Apache for any new directives to take effect.

I just downloaded and installed Perl from that site and http://localhost/cgi-bin/printenv.pl worked fine.  I did end up using the default C:\Perl as the install directory After trying to get it in the right place in c:\wamp.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi Arober11 / DaveBaldwin
I have read the link.

<Directory /usr/local/apache2/htdocs/somedir>
Options +ExecCGI
</Directory>

I can see I HAVE to add something like this,but not sure how to customize that path line to my system.
"somedir" referes to what folder?

Hi Again
I managed to create a scriptalias
http://www.eadvice.dk/cgi-bin/printenv.pl
With the result i get there, i assume everying is working. Is that correct?
Yes, that's the correct display for 'printenv.pl'.