Re: Apache2+NFS+LDAP+CGI issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

The slashbang is correct - perl is loaded from the local (boot)
filesystem on each of the servers. Only the scripts and public_html
folders are loaded from the NFS share.

For simplicity I changed apache's processes to max 3, made it easier
to find which PID's to run strace on. Perl is located at the correct
path and runs OK:
web2:/althome/henric/./# ls -la /usr/bin/perl
-rwxr-xr-x 2 root root 1069940 2007-11-12 06:31 /usr/bin/perl

By looking at the strace it would appear that the resource has been
read OK by apache:
read(9, "#!/usr/bin/perl\n# Random Image v"..., 4096) = 1307

Permissions etc for script (corresponding apache config posted prev. in thread):
web2:/althome/henric/./# ls -la /www/advice89/scripts/rand_img01.pl
-rwxr-xr-x 1 advice89 advice89 1307 2007-11-27 10:30
/home2/advice89/scripts/rand_img01.pl

So it would appear that only the execution is failing, but the correct
permissions are set and I can do it manually by su'ing to the apache
and in this case, suexec user... I'm still assuming it's something to
do with perl from now on though.

Strace available for download from: http://digitalroutes.co.uk/httpdList.txt

-- 
Henric Blomgren


On 09/05/2008, Eric Covener <covener@xxxxxxxxx> wrote:
> On Fri, May 9, 2008 at 9:34 AM, Henric Blomgren
>  <henric@xxxxxxxxxxxxxxxxxxx> wrote:
>
>  > The problem:
>  > I can't run perl scripts for the life of me. I get the following error
>  > in the error log and that's it:
>  > [Fri May 09 14:05:39 2008] [error] [client 83.104.229.109]
>  > (13)Permission denied: exec of '/www/advice120/scripts/rand_img01.pl'
>  > failed
>
>
> Can you attach to all the child process with strace and run your perl
>  request? What's the shebang line and what does mount say about the
>  filesystem where perl lives (despite it working from command line :/)
>
>  --
>  Eric Covener
>  covener@xxxxxxxxx
>
>  ---------------------------------------------------------------------
>  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@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
>  For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux