What configuration settings in the web server control the user with which PHP runs?

The configuration settings in the web server that control the user with which PHP runs are typically found in the web server's configuration files. By setting the user and group directives in the configuration files to specify the user and group under which PHP should run, you can control the permissions and access levels for PHP scripts.

// Example configuration in Apache's httpd.conf file
<IfModule mpm_itk_module>
    AssignUserId desired_user desired_group
</IfModule>