Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Uploaded files are owned by apache, I have DirectAdmin installed and also mod_suexec is loaded into Apache. So is there anyway to upload file with account owner under mod_php(php5_module)?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Your question is not completely clear. If I get it:

So is there anyway to upload file with account owner under mod_php(php5_module)?

No. You can run Apache as a particular user, but then all scripts will run at them (including all PHP ones), which probably isn't what you want.

If you want to have PHP scripts run as their respective user, you'll need to use suPHP. mod_php simply wasn't designed for this.

share|improve this answer
    
Really Thanks, what about mod_ruid2? –  Zim3r Sep 25 '12 at 7:02
1  
Yes, that'll work, but you should know about the incompatibilities: docs.cpanel.net/twiki/bin/view/EasyApache3/ModRuid2 –  Jay Sep 25 '12 at 7:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.