The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'General Discussion' started by smartinfo, Nov 20, 2002.

  1. smartinfo

    smartinfo Member

    Joined:
    Jan 22, 2002
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
  2. Chern Ann

    Chern Ann Member

    Joined:
    Aug 16, 2002
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
Loading...

Share This Page