When setting security permissions in Linux, it may be important to figure out the name of the Apache and PHP users.  Often they are the same.  To find the name of the Apache user, issue the command:

ps -ef | grep apache

To determine the name of the PHP user, create and execute a PHP script with the following code:

<?php echo posix_getuid();?>