LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-23-2007, 03:00 PM   #1
cucolin@
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu, CentOS, RedHat
Posts: 416

Rep: Reputation: 31
Question You have chosen to open: installer.pl which is a perl Script?


When I try to open this perl script from my browser I get this:

You have chosen to open: installer.pl which is a Perl Script:
What should Firefox do with this file?

I already installed libapache2-mod-perl2, clear the cache, restarted Apache and still get the same error. I'm trying to install the otrs Trouble ticket software. I did an apt-get install otrs and the files are in this path:

/usr/share/otrs/bin/cgi-bin

Should I move them to /var/www so Apache can see them? Not sure if that is the case. I had similar error with PHP but I was able to fix that by intalling the PHP parser for Apache.

Thanks for any help.
 
Old 03-24-2007, 02:38 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Apache will only run a CGI script if it's in a scriptalias directory that it knows about. You can either move the file to a valid Apache script directory or modify the Apache config to serve up files in the directory the application put itself into. Note that (1) Apache generally expects CGI scripts to have a .cgi extension and (2) to execute a CGI you must go through a Web server -- opening the script as a file:// in the browser won't work.
 
Old 03-25-2007, 06:06 PM   #3
cucolin@
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu, CentOS, RedHat
Posts: 416

Original Poster
Rep: Reputation: 31
Ok, Bt so should I move the files to /var/www where Apache knows where to look for them? Thanks!
 
Old 03-27-2007, 12:01 AM   #4
Zention
Member
 
Registered: Mar 2007
Posts: 119

Rep: Reputation: 16
well only if /var/www has been marked as a cgi directory.

You can do it by extension as well (I think php likes to do this so you can mix in the html files with php files in the same directory, not advisable though).

You need to speak to the person who installed Apache on the system - as it seems to find your installer.pl file if that is in /usr/share/otrs/bin/cgi-bin/ and that is the only file named installer.pl (find / -name 'installer.pl').

installer.pl should be marked as executable for the server, cgi works by allowing the server to call the file directly and the shell used to call has the environment variables set for things like form post's and query's, no magic is happening here in the server it is just like a user calling the file. The output is then redirected so the server can then put it on the appropriate http response port.

Now if it is executable and the only file called installer.pl on your system you can start to suspect that the apache directive for /usr/share/otrs/bin/cgi-bin has been setup incorrectly.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
phpMyAdmin: you have chosen to open PHTML joseph_k Linux - Software 2 05-27-2010 03:08 PM
LXer: Sangoma Open Source Technology Chosen by Pakistan Telecoms LXer Syndicated Linux News 0 02-13-2007 11:31 AM
You have chosen to open which is a: application/x-httpd-php cucolin@ Linux - Server 4 02-02-2007 10:38 AM
You have chosen to open index.php which is a : PHP Script from: http://localhost cucolin@ Linux - Software 3 01-30-2007 03:58 PM
couldn't open fontconfigs chosen font with Xft!!! STARHARVEST Slackware 5 01-16-2007 04:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration