LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 07-08-2005, 04:28 PM   #1
bhoult
LQ Newbie
 
Registered: Jul 2005
Posts: 6

Rep: Reputation: 0
Apache2 cannot execute cgi files on a USB drive


I am using Kubuntu and trying to get Apache2 to execute perl scripts hosted on a USB drive. The scripts work fine if I put them in the / var / www / script directory but if put them in / media / sda1 / www / script (the usb drive) then make a symlink in / var / www it will not execute. I have the same problem if I change the document root to / media / sda1 /www .

I have set the <Directory> stuff up and turned on FollowSymLinks and ExecCGI. I even tried modifying the settings for / var / www by changing all refrences to / media / sda1 / www and no matter what I do the apache error log says "Permission Denied Exec of ..." whenever I try to do anything with the USB drive.

Any ideas?

(sorry about the spaces in the directory descriptions... this forum thought I was posting URL's and would not allow them otherwise)
 
Old 07-08-2005, 05:33 PM   #2
biertrinken
LQ Newbie
 
Registered: Dec 2004
Location: bayern
Posts: 23

Rep: Reputation: 15
is your usb device mounted with the noexec flag ?
check with

mount
 
Old 07-11-2005, 10:19 AM   #3
bhoult
LQ Newbie
 
Registered: Jul 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by biertrinken
is your usb device mounted with the noexec flag ?
check with

mount
Yes... I am an idiot... thank you. I don't think I would have ever thought of that.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
execute shell script when USB drive plugged in OneSeventeen Linux - Hardware 2 10-28-2005 10:27 AM
CGI With Apache2 karthik85nitt Linux - Newbie 2 07-15-2005 04:11 AM
CGI doesn't execute in subfolders newuser455 Linux - Software 0 08-29-2004 12:06 AM
Apache2 CGI-Perl will not read files fefeh Linux - Software 0 06-30-2003 08:07 PM
Can't execute *.cgi scripts. BrianG Linux - General 1 04-11-2001 03:38 AM


All times are GMT -5. The time now is 07:15 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration