Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Check which user owns PHP in Linux server

I want to find out which Linux user owns PHP on my server. Is it root user or nobody user or some other user? Please help.
by

1 Answer

iamabhishek
You can find this out using the following PHP code:

<?php echo exec('whoami'); ?>

Login / Signup to Answer the Question.