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.

user to run system()

Discussion in 'General Discussion' started by eridanus, Jan 10, 2007.

  1. eridanus

    eridanus Registered

    Joined:
    Dec 7, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hello, I have a website that needs to run the php system() command (linux shell command), i realized that this command is executed by the user nobody, in the httpd.conf is:

    ...

    User nobody
    Group nobody
    ...

    ok...but....

    in this specific virtual host is

    <VirtualHost x.x.x.x x.x.x.x>
    ServerAlias somedomain.com
    ServerAdmin webmaster@somedomain.com
    DocumentRoot /home/somedomain/public_html
    BytesLog domlogs/somedomain.com-bytes_log
    User somedomain
    Group somedomain
    ServerName www.somedomain.com



    I want the command to be executed by the user somedomain, is this possible???

    Thanks
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Only if you recompile php/apache with phpsuexec support.
     
Loading...

Share This Page