I had installed web application using perl script on Fedora.
And I got a problem to run perl script from Firefox.
Firefox saw pop up windows open file or save perl script file.
Any suggestion to solve this problem....Thanks
Hi
[ul]
[li]Which web application ?[/li]
[li]Which script ?[/li]
[li]Which web server ?[/li]
[li]Does other Perl scripts run correctly ?[/li]
[li]Are you sure you are requesting the script through HTTP protocol ?[/li]
[/ul]
if firefox is asking to save the page as a file, it has not recognized the "mime" type. it is either a type that firefox does not know how to handle or the http header is misformed or missing.
you can use wget with the --save-headers option to see what is actually being returned.
It may be that you don't have the cgi part of the perl package. Another thing I was tinking is that your app may not be in a Script or ScriptAlias defined directory. Apache will parse any thing in these directories as script otherwise they are parsed as html. What do your error logs say?
If firefox is asking you if you want to save the file, that likely means your web server is spitting out the text of the Perl code instead of executing the Perl code.
Do other CGI applications work on this server/machine?
My suspicion is that you don't have Apache configured correctly to run the CGI application. See the Apache docs on how to do that.
And, as mentioned above, you'll need to make sure you put the Perl code in a directory that is listed in your Apache config as a Script or ScriptAlias location.
And, make sure you have the appropriate permissions set on the Perl code. If the execute bit is not set, it won't execute.
In short, see the Apache docs on enabling/installing CGI applications.
'hope this helps
If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.