Title: Bug? Incorrect or inappropriate &quot;PHP Script Owner&quot;
Last modified: August 21, 2016

---

# Bug? Incorrect or inappropriate "PHP Script Owner"

 *  Resolved [crantok](https://wordpress.org/support/users/crantok/)
 * (@crantok)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/bug-incorrect-or-inappropriate-php-script-owner/)
 * When I tried to “Create New” in the admin interface of the newly installed Duplicator
   plugin, I got “Requirements: failed” because of Permissions.
 * The “PHP Script Owner” was listed as being my user name. My user owns the root
   WP directory. Odd.
 * I 777’d the root WP directory, the requirements succeeded and the wp-snapshots
   directory was created with owner www-data.
 * The problem: If the script owner was me then the directory would have been created
   with my ownership and would have worked without me 777ing the directory. I assume
   listing the script owner as me is wrong.
 * [https://wordpress.org/plugins/duplicator/](https://wordpress.org/plugins/duplicator/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/bug-incorrect-or-inappropriate-php-script-owner/#post-5081072)
 * Its not necessarily a bug, but it probably should be changed/removed because 
   it is miss-leading. Basically it uses the [get_current_user](http://www.php.net/manual/en/function.get-current-user.php)
   function which is technically the PHP script owner.
 * However the permission is really controlled by the process that runs the PHP 
   script which in many cases is Apache. I have not found an easy way to get this
   value across the different Operating Systems. I’ll have to take a look into this
   item again. Sorry for the confusion…
 * Cheers~
 *  Thread Starter [crantok](https://wordpress.org/support/users/crantok/)
 * (@crantok)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/bug-incorrect-or-inappropriate-php-script-owner/#post-5081076)
 * Does this help?
 * [http://www.kavoir.com/backyard/showthread.php?35-How-to-get-the-process-owner-of-a-PHP-script-or-which-user-it-is-running-as](http://www.kavoir.com/backyard/showthread.php?35-How-to-get-the-process-owner-of-a-PHP-script-or-which-user-it-is-running-as)
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/bug-incorrect-or-inappropriate-php-script-owner/#post-5081084)
 * Yeah I have seen that, it works for Linux systems, but not for Windows. At the
   time I wrote that code I was just looking for a generic process that worked everywhere,
   but I think in this case I’ll have to abstract the code out for the different
   operating systems. I’ll add this to the todo list and have integrated into the
   next version, probably 0.5.7
 * Thanks for bringing this back up!
 *  Thread Starter [crantok](https://wordpress.org/support/users/crantok/)
 * (@crantok)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/bug-incorrect-or-inappropriate-php-script-owner/#post-5081094)
 * No worries. Good luck!
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/bug-incorrect-or-inappropriate-php-script-owner/#post-5081178)
 * Will do… Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Bug? Incorrect or inappropriate "PHP Script Owner"’ is closed to new 
replies.

 * ![](https://ps.w.org/duplicator/assets/icon-256x256.png?rev=2906985)
 * [Duplicator - Backups & Migration Plugin - Cloud Backups, Scheduled Backups, & More](https://wordpress.org/plugins/duplicator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duplicator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duplicator/)
 * [Active Topics](https://wordpress.org/support/plugin/duplicator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duplicator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duplicator/reviews/)

## Tags

 * [ownership](https://wordpress.org/support/topic-tag/ownership/)
 * [permissions](https://wordpress.org/support/topic-tag/permissions/)

 * 5 replies
 * 2 participants
 * Last reply from: [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/bug-incorrect-or-inappropriate-php-script-owner/#post-5081178)
 * Status: resolved