As per older questions, such as using mod_fcgid instead of mod_php and PHP as CGI or Apache Module? (and tangentially some other questions) I came to an understanding that running PHP as CGI or FastCGI would make my .php files be ran as the owner instead of the apache user (user that runs the Apache).
The phpinfo();
function states that Server API = CGI/FastCGI
However, when I test the running user it is still apache ie. <?php echo exec('whoami'); ?>
returns apache.
I've also tried what Jeremy Bouse suggested in a question I've mentioned, but the PHP whoami
still returns apache.
Should the fact that phpinfo's "Server API" equals "CGI/FastCGI" be adequate for regular users to run the php-files as the owner?
(Does it even indicate that PHP is not running with mod_php?)
Or are there some admin tasks still to be done or something that is probably misconfigured?