httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henric Blomgren" <hen...@digitalroutes.co.uk>
Subject Re: [users@httpd] Apache2+NFS+LDAP+CGI issue
Date Mon, 12 May 2008 09:39:34 GMT
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@gmail.com> wrote:
> On Fri, May 9, 2008 at 9:34 AM, Henric Blomgren
>  <henric@digitalroutes.co.uk> 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@gmail.com
>
>  ---------------------------------------------------------------------
>  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

---------------------------------------------------------------------
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


Mime
View raw message