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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

perl script problem

Status
Not open for further replies.

ady2012

MIS
Jun 6, 2010
108
US
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]


Feherke.
 
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.
 
OTRS web application. Maybe I didn't install all perl module.
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top