You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Joost de Heer <sa...@xs4all.nl> on 2005/04/26 18:59:19 UTC
[users@httpd] Re: Can't run cgi scripts on mounted fat partition
Peter Sykora said:
> Hello,
> I run Apache/2.0.53 under SUSE Linux 9.3 having the following problem:
>
> When I try to make a script alias to a directory on a mounted fat
> partition I always get the following error:
> [Tue Apr 26 09:21:01 2005] [error] [client 127.0.0.1] (13)Keine
> Berechtigung: exec of '/windows/D/home/html/canyon_new2/cgi/env.pl' failed
>
> (Keine Berechtigung ~ permission denied)
How did you mount the fat partition? You may have to add the
uid=xxx,gid=yyy,umask=zzz options to get everything setup correctly.
You could try to add as first line #!/path/to/perl to the script (but do
remember to save it as unix-style textfile when you save under windows
though, or a ^M added at the end will mess up things)
Joost
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Re: Can't run cgi scripts on mounted fat partition
Posted by Peter Sykora <pe...@gmx.at>.
> > That's what I did as well. I even copied the working example from my
> > linux cgi-directory to the windows one, just to be sure. When I log on
> > as wwwrun and run the script on the fat partition from the commandline
> > everything works fine.
>
> Exactly how do you run it? Do you know that
> perl script.pl
> and
> ./script.pl
> are very different. Apache does something much closer to the latter.
Thanks Joshua!
I didn't take that into account.
I found out that I have to add the "exec" option in my fstab, and now it
works. Here is my fstab entry:
/dev/hda5 /windows/D vfat users,gid=users,umask=0000,rw,exec 0 0
But I still don't understand why I could see the execute rights for all
files and folders although this was wrong. Anyway I'm glad to have it
working now.
Thanks a lot for all your contributions
Peter
--
____________________________________________________
Sykora Peter
Institute of Cartography
ETH Hoenggerberg
CH-8093 Zurich
Tel: +41-1-6333028
mailto:peter_sykora@gmx.at
http://www.carto.net/ps
http://www.carto.net/ps/canyon
http://www.statlas.org/
____________________________________________________
+++ Sparen beginnt mit GMX DSL: http://www.gmx.net/de/go/dsl
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Re: Can't run cgi scripts on mounted fat partition
Posted by Joshua Slive <js...@gmail.com>.
On 4/26/05, Peter Sykora <pe...@gmx.at> wrote:
> >You could try to add as first line #!/path/to/perl to the script (but do
> >remember to save it as unix-style textfile when you save under windows
> >though, or a ^M added at the end will mess up things)
> >
> >
> That's what I did as well. I even copied the working example from my
> linux cgi-directory to the windows one, just to be sure. When I log on
> as wwwrun and run the script on the fat partition from the commandline
> everything works fine.
Exactly how do you run it? Do you know that
perl script.pl
and
./script.pl
are very different. Apache does something much closer to the latter.
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[users@httpd] Re: Can't run cgi scripts on mounted fat partition
Posted by Peter Sykora <pe...@gmx.at>.
Joost de Heer schrieb:
>Peter Sykora said:
>
>
>>Hello,
>>I run Apache/2.0.53 under SUSE Linux 9.3 having the following problem:
>>
>>When I try to make a script alias to a directory on a mounted fat
>>partition I always get the following error:
>>[Tue Apr 26 09:21:01 2005] [error] [client 127.0.0.1] (13)Keine
>>Berechtigung: exec of '/windows/D/home/html/canyon_new2/cgi/env.pl' failed
>>
>>(Keine Berechtigung ~ permission denied)
>>
>>
>
>How did you mount the fat partition? You may have to add the
>uid=xxx,gid=yyy,umask=zzz options to get everything setup correctly.
>
>
Hi Joost,
here is again my fstab entry:
/dev/hda5 /windows/D vfat users,gid=users,umask=0000 0 0
and I have also checked the permissions of /windows/D after the mount which are
drwxrwxrwx 17 root users 32768 1970-01-01 01:00 D
So all files and directories on this partition should be executable as well.
>You could try to add as first line #!/path/to/perl to the script (but do
>remember to save it as unix-style textfile when you save under windows
>though, or a ^M added at the end will mess up things)
>
>
That's what I did as well. I even copied the working example from my
linux cgi-directory to the windows one, just to be sure. When I log on
as wwwrun and run the script on the fat partition from the commandline
everything works fine.
Peter
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org