Take the 2-minute tour ×
Server Fault is a question and answer site for 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

locked by HopelessN00b Apr 3 at 17:35

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: help center.

closed as off-topic by HopelessN00b Apr 3 at 17:35

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

up vote 4 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
    
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

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