Skip to content
TheShell.Guru
TheShell.Guru
Menu

Get owner / username of php process

  • November 25, 2015
  • Uncategorized

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

?>

 

 

Previous Post Call to undefined function posix_getpwuid()
Next Post Enable Event MPM - Apache 2.4

Categories

Tag Cloud

add apache centos centos 7 centos 7.2 compile crash el capitan enable error fix install installation issue linux mac mac os mariadb mount mysql new nginx os osx php php-fpm reboot restart server setup sierra source terminal ubuntu ubuntu 16.04 ubuntu 16.04 lts ubuntu 18.04 lts ubuntu 19.04 update upgrade varnish windows 10 yosemite yum zfs
Copyright © 2021 The Shell Guru - Powered by CreativeThemes
  • Sample Page