-1

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

HopelessN00b
  • 53,795
  • 33
  • 135
  • 209
Zim3r
  • 1,454
  • 5
  • 24
  • 45
  • [Administration panels are off topic](http://serverfault.com/help/on-topic). [Even the presence of an administration panel on a system,](http://meta.serverfault.com/q/6538/118258) because they [take over the systems in strange and non-standard ways, making it difficult or even impossible for actual system administrators to manage the servers normally](http://meta.serverfault.com/a/3924/118258), and tend to indicate low-quality questions from *users* with insufficient knowledge for this site. – HopelessN00b Apr 03 '15 at 17:35

1 Answers1

4

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.

Jay
  • 6,544
  • 25
  • 34