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'];

?>

 

 

Leave a Reply

Your email address will not be published.

Time limit is exhausted. Please reload CAPTCHA.