Re: suexec and Apache 2.0.52 ?

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

 




Thank you, Alexander!

I should have looked at suphp for my PHP scripts problem. suphp.org has an Apache module for PHP scripts to run with their owner's uid/gid.

And for Apache to read users' home dirs, I will need to add user "apache" into each user's group.

suexec is for CGI, then.

Timothy.

Alexander Dalloz wrote:

Am Di, den 14.12.2004 schrieb Timothy Ha um 22:50:



Probably a misconception about what suEXEC does. Please read

http://httpd.apache.org/docs-2.0/suexec.html

carefully. suEXEC does _not_ cause the vhost to run as different
user/group. I guess you would want

http://httpd.apache.org/docs-2.0/mod/perchild.html

but as the site clearly says, this module isn't stable/usable yet.



I created a test.php for running at virtual host, but with it, I could not write a test file in the user's directory, because of permissions. So I figured it out that php did not execute under the username I needed.

Timothy.



As guessed, a misconception / misunderstanding what suEXEC does. Please reread the Apache2 documentation regarding this. suEXEC is for CGIs. If you would have created a CGI test script, then it would have done what you want.

Alexander






[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux