How to make PHP script to run with the user's id?

smartinfo

Member
Jan 22, 2002
5
0
301
Now, all files added by PHP programme are unable to count in CPANEL account information. When we use FTP software to check, it is unable to see these added files. However, we can use CPANEL / File Manager to see these files.

But we have enabled suExec. In WHManger, it states that suexec allows cgi scripts to run with the user's id. It will also make it easier to track which user has sent out an email. If suexec is not enabled, all cgi scripts will run as nobody.

How to make PHP script to run with the user's id?
 

Chern Ann

Member
Aug 16, 2002
8
0
151
Simple answer is, you can't. Not for the Apache module version of PHP. If you absolutely need to you can setup your server to use the executable CGI version of PHP, but this is a lot slower.