Re: Permission denied
Martijn de Munnik <martijn-3hbljVilL9r/[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel,gmane.spam.detected |
|---|---|
| Message-ID | <[email protected]> |
Hi,
These are the file permissions and the contents of the file:
------------
-bash-3.2$ ls -l /opt/csw/apache2/share/htdocs/suexec/
goedkooplpgtanken.nl/php5-cgi
-rwxr-x--- 1 goedkooplpgtanken.nl goedkooplpgtanken.nl 384 jan
9 15:26 /opt/csw/apache2/share/htdocs/suexec/goedkooplpgtanken.nl/
php5-cgi
-bash-3.2$ more /opt/csw/apache2/share/htdocs/suexec/
goedkooplpgtanken.nl/php5-cgi
#!/bin/sh
PHPRC="/opt/csw/php5/lib"
export PHPRC
PHP_FCGI_CHILDREN=8
export PHP_FCGI_CHILDREN
PHP_FCGI_MAX_REQUESTS=500
export PHP_FCGI_MAX_REQUESTS
exec /opt/csw/php5/bin/php-cgi \
-d open_basedir=/home/goedkooplpgtanken.nl:/opt/csw/php5/
lib:/opt/youngguns/share/htdocs \
-d session.save_path=/home/goedkooplpgtanken.nl/tmp \
-d upload_tmp_dir=/home/goedkooplpgtanken.nl/tmp
-bash-3.2$
------------
Martijn
On 21-jan-2008, at 16:39, David Birnbaum wrote:
> Martijn,
>
> Well, the error looks pretty explicit:
>
> [Mon Jan 21 11:55:38 2008] [warn] FastCGI: (dynamic) server "/opt/
> csw/apache2/share/htdocs/suexec/goedkooplpgtanken.nl/php5-cgi" (uid
> 10000, gid 10000) started (pid 26418)
> FastCGI: can't start server "/opt/csw/apache2/share/htdocs/suexec/
> goedkooplpgtanken.nl/php5-cgi" (pid 26418), execle() failed:
> Permission denied
> The execle() error message is passed back from the OS. Is it
> possible that you're not really testing as UID 10,000 the same we
> suexec is running things? Do an "id" before you launch it, and see
> if it's returning the right thing. Also, run the whole line from
> the command line when cd'd in the same the directory that suexec is
> launching from, and make sure it properly starts up that way as well.
>
> David.
>
>
> Martijn de Munnik wrote:
>>
>> Hi,
>>
>> my apache error_log show the following error. I've also tried
>> without the suexec wrapper and I'm quiet sure that suexec is not
>> the problem. I can run the php5-cgi script from the commandline as
>> the user with uid 10000 without any problem?
>>
>> Any ideas?
>>
>>
>>
>> [Mon Jan 21 11:55:23 2008] [notice] suEXEC mechanism enabled
>> (wrapper: /opt/csw/apache2/sbin/suexec)
>> [Mon Jan 21 11:55:23 2008] [notice] mod_python: Creating 8 session
>> mutexes based on 256 max processes and 0 max threads.
>> [Mon Jan 21 11:55:23 2008] [notice] mod_python: using
>> mutex_directory /tmp
>> [Mon Jan 21 11:55:23 2008] [notice] Digest: generating secret for
>> digest authentication ...
>> [Mon Jan 21 11:55:23 2008] [notice] Digest: done
>> [Mon Jan 21 11:55:23 2008] [notice] Apache/2.2.6 (Unix) mod_ssl/
>> 2.2.6 OpenSSL/0.9.8g mod_fastcgi/2.4.2 DAV/2 SVN/1.4.5 mod_python/
>> 3.3.1 Python/2.5.1 configured -- resuming normal operations
>> [Mon Jan 21 11:55:23 2008] [notice] FastCGI: wrapper mechanism
>> enabled (wrapper: /opt/csw/apache2/sbin/suexec)
>> [Mon Jan 21 11:55:23 2008] [notice] FastCGI: process manager
>> initialized (pid 26387)
>> [Mon Jan 21 11:55:38 2008] [warn] FastCGI: (dynamic) server "/opt/
>> csw/apache2/share/htdocs/suexec/goedkooplpgtanken.nl/php5-
>> cgi" (uid 10000, gid 10000) started (pid 26418)
>> FastCGI: can't start server "/opt/csw/apache2/share/htdocs/suexec/
>> goedkooplpgtanken.nl/php5-cgi" (pid 26418), execle() failed:
>> Permission denied
>> [Mon Jan 21 11:55:38 2008] [warn] FastCGI: (dynamic) server "/opt/
>> csw/apache2/share/htdocs/suexec/goedkooplpgtanken.nl/php5-
>> cgi" (pid 26418) terminated by calling exit with status '255'
>> [Mon Jan 21 11:55:45 2008] [warn] FastCGI: (dynamic) server "/opt/
>> csw/apache2/share/htdocs/suexec/goedkooplpgtanken.nl/php5-
>> cgi" (uid 10000, gid 10000) restarted (pid 26420)
>> FastCGI: can't start server "/opt/csw/apache2/share/htdocs/suexec/
>> goedkooplpgtanken.nl/php5-cgi" (pid 26420), execle() failed:
>> Permission denied
>> [Mon Jan 21 11:55:45 2008] [warn] FastCGI: (dynamic) server "/opt/
>> csw/apache2/share/htdocs/suexec/goedkooplpgtanken.nl/php5-
>> cgi" (pid 26420) terminated by calling exit with status '255'
>> [Mon Jan 21 11:55:51 2008] [warn] FastCGI: (dynamic) server "/opt/
>> csw/apache2/share/htdocs/suexec/goedkooplpgtanken.nl/php5-
>> cgi" (uid 10000, gid 10000) restarted (pid 26421)
>> FastCGI: can't start server "/opt/csw/apache2/share/htdocs/suexec/
>> goedkooplpgtanken.nl/php5-cgi" (pid 26421), execle() failed:
>> Permission denied
>> [Mon Jan 21 11:55:51 2008] [warn] FastCGI: (dynamic) server "/opt/
>> csw/apache2/share/htdocs/suexec/goedkooplpgtanken.nl/php5-
>> cgi" (pid 26421) terminated by calling exit with status '255'
>>
>>
>> ___________________________________
>> fastcgi-developers mailing list
>> http://fastcgi.com/fastcgi-developers/
>>
> !DSPAM:4794bce02966070788949!
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/