suexec and Apache 2.0.52 ?

Timothy Ha linuxmail at yandex.ru
Wed Dec 15 04:16:15 UTC 2004


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




More information about the fedora-list mailing list