Get owner / username of php process

To find out which user is running the php process on your website put the following into a file inside your websites public directory

<?php

$processUser = posix_getpwuid(posix_geteuid());
print $processUser['name'];

?>