LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 07-12-2009, 03:01 AM   #1
cycocool
LQ Newbie
 
Registered: Jul 2009
Location: Ireland
Distribution: Ubuntu server 14
Posts: 18

Rep: Reputation: 0
cgi/pl won't exec


so i've tried to setup a file upload cgi, using perl.

I've made sure that perl, mod_cgi and the httpd.conf are all in order, i have also checked with apache themselves to make sure i was doing it right and have enetered the script alias variables to make sure that anything in the cgi-bin will be exec (but it doesnt) have also made sure i have chmod to 755 and the html form's action url is correct, Click the link to see what happens:

http://www.cad-e-domain.com/form.html

i'm not sure what else i should be doing, if anything! Would appraeciate any help anyone could give me. Should also mention *.pl files wont exec either.

Last edited by cycocool; 07-12-2009 at 03:07 AM.
 
Old 07-12-2009, 08:29 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
The link doesn't work. Here are some things to check until you fix it:
Make sure since it's an upload script, that the apache user can write in the destination directory. Check also the SELinux settings.
Check the apache error_log for hints.
Look at the 1st line of the script to see if you have the correct shebang: "#!/usr/bin/perl".
Try to run the script directly and see what you get:
Code:
perl /path/to/cgi-bin/upload.pl

Last edited by bathory; 07-12-2009 at 08:30 AM.
 
Old 07-13-2009, 12:42 AM   #3
cycocool
LQ Newbie
 
Registered: Jul 2009
Location: Ireland
Distribution: Ubuntu server 14
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
The link doesn't work. Here are some things to check until you fix it:
Make sure since it's an upload script, that the apache user can write in the destination directory. Check also the SELinux settings.
Check the apache error_log for hints.
Look at the 1st line of the script to see if you have the correct shebang: "#!/usr/bin/perl".
Try to run the script directly and see what you get:
Code:
perl /path/to/cgi-bin/upload.pl
YES the form does work....YES...i have the correct perl Shebang (#!/usr/bin/perl) already checked the logs, all alogs, access logs, error logs...all of them!
 
  


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
exec cmd=perl... work but exec cgi doenst crions Slackware 5 12-09-2005 12:17 PM
Exec CGI within a form field newuser455 General 0 09-12-2004 01:50 PM
I Cant Exec a CGI without showing the interpreter. cartridge Linux - Newbie 4 12-19-2003 01:23 PM
I Cant Exec a CGI without showing the interpreter. cartridge Linux - Software 2 12-19-2003 11:51 AM
exec cgi from php? barazor Programming 5 01-23-2002 09:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 12:07 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