LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-10-2005, 07:08 PM   #1
ronkymac
Member
 
Registered: Nov 2004
Location: Edinburgh, Scotland, UK.
Distribution: Debian
Posts: 72

Rep: Reputation: 15
Quick quickie on the subject of unexecutable CGI


Hello all, yet again.

I have been away for a while trying to sort out the problems I have been having, by myself, but am finding the process of troubleshooting the .conf files quite challenging

When one navigates to http://www2.musdev.net/cgi-bin/install.cgi, all that one recieves at the other end is a download prompt. However, I would like the script to execute on the server.

This is the VHost configuration

Code:
<VirtualHost *:80>
ServerName www2.musdev.net
DocumentRoot /srv/www/htdocs/new_musdev.net/
ServerAdmin admin@musdev.net

<Directory /srv/www/htdocs/new_musdev.net/images>
Options Indexes MultiViews
Order allow,deny
Allow from all
</Directory>

ScriptAlias /cgi-bin/ "/srv/www/cgi-bin/"
<Directory /srv/www/cgi-bin/>
AllowOverride All
order allow,deny
allow from all
SetHandler  perl-script
Options +ExecCGI +Indexes +MultiViews
</Directory>
</VirtualHost>
Could someone, who obviously knows a bit more about this than me, possibly inform me as to what the problem might be?

Cheers.
Ronald.
 
Old 03-11-2005, 12:11 PM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Looks to me like your file is not executable. You'll need to give it executable permissions for people to be able to view the page.
chmod 755 index.cgi
should do the trick, or if there's a graphical tool for setting permissions (like cpanel) then set it to executable and readable for all users.
 
Old 03-11-2005, 01:42 PM   #3
ronkymac
Member
 
Registered: Nov 2004
Location: Edinburgh, Scotland, UK.
Distribution: Debian
Posts: 72

Original Poster
Rep: Reputation: 15
hmm, nope...

That doesn't seem to work either, but thank you for the suggestion.

Are there any other configuration files apart from the VHost.conf, that could be stopping this cgi to execute?

Cheers, Ronald.
 
Old 03-11-2005, 01:49 PM   #4
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Blindingly obvious, but I'd better ask: is perl properly installed?
 
Old 03-11-2005, 02:07 PM   #5
ronkymac
Member
 
Registered: Nov 2004
Location: Edinburgh, Scotland, UK.
Distribution: Debian
Posts: 72

Original Poster
Rep: Reputation: 15
Lol.... I'll kick myself if it isn't!

What way do you think would be the best way of checking?

I'm guessing here, as I'm not extremely experienced in this sort of area, but this is what I did;

Code:
> perl -v

This is perl, v5.8.1 built for i586-linux-thread-multi
I run Webmin as well, and that seems to work fine (it runs .cgi) but I guess that's a different server and doesn't parse using Apache...?

Cheers, Ronald.
 
Old 03-11-2005, 03:30 PM   #6
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
OK...your script says perl is in /usr/bin/perl...have you checked that that is the case? 'which perl' will tell you.
 
Old 03-11-2005, 05:02 PM   #7
ronkymac
Member
 
Registered: Nov 2004
Location: Edinburgh, Scotland, UK.
Distribution: Debian
Posts: 72

Original Poster
Rep: Reputation: 15
soz bout the long delay...

I have just checked, and yes, that is the case. What other commands could I issue to troubleshoot the server?
 
Old 03-16-2005, 04:22 PM   #8
ronkymac
Member
 
Registered: Nov 2004
Location: Edinburgh, Scotland, UK.
Distribution: Debian
Posts: 72

Original Poster
Rep: Reputation: 15
anyone?

Could someone at least point out where I should be looking for errors?

Cheers.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Any Perl/CGI programmers wana make a few quick bucks? RaelOM Programming 7 03-02-2005 01:42 PM
Samba quickie! asktoby Linux - Networking 1 09-26-2003 02:38 PM
Quickie bkerensa Linux - Newbie 4 08-28-2003 01:27 PM
Just a quickie bigjohn Linux - General 6 12-02-2002 07:33 PM
http://www.burstnet.com/cgi-bin/ads/ad7954a.cgi/3980/RETURN-CODE rverlander LQ Suggestions & Feedback 1 06-07-2002 08:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration