Results 1 to 2 of 2

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

  1. #1
    Member
    Join Date
    Jan 2002
    Posts
    5

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

    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. #2
    Member
    Join Date
    Aug 2002
    Posts
    8

    Default

    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.

Similar Threads

  1. (php run in what mode the following, the user can customize your php.ini)
    By liang3391 in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 03-17-2010, 12:55 AM
  2. Replies: 3
    Last Post: 03-29-2007, 04:31 AM
  3. How do i make a php file run as a cron?
    By Bidybag in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 05-18-2006, 02:18 PM
  4. PHP run as the user?
    By shaun in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 02-24-2002, 01:45 PM