LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache2 cannot execute cgi files on a USB drive (https://www.linuxquestions.org/questions/linux-software-2/apache2-cannot-execute-cgi-files-on-a-usb-drive-341384/)

bhoult 07-08-2005 04:28 PM

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)

biertrinken 07-08-2005 05:33 PM

is your usb device mounted with the noexec flag ?
check with

mount

bhoult 07-11-2005 10:19 AM

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.


All times are GMT -5. The time now is 08:28 PM.