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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
"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.
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.
Hello,
This may help you.
http://perl.apache.org/docs/1.0/guide/install.html
http://www.perl.org/get.html
Regards,
Tushar
This may help you.
http://perl.apache.org/docs/1.0/guide/install.html
http://www.perl.org/get.html
Regards,
Tushar
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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?
I have read the link.
<Directory /usr/local/apache2/htdocs/
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?
ASKER
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?
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'.
ASKER
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/pe
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?