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.

PHP vs Perl ownership

Discussion in 'General Discussion' started by kris1351, Apr 9, 2004.

  1. kris1351

    kris1351 Well-Known Member

    Joined:
    Apr 18, 2003
    Messages:
    963
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lewisville, Tx
    I have a user that offers a Perl version of a guestbook and a php version. The perl version writes to the file as user:group like you would expect. The PHP version writes as 99:99 instead of adding the correct username. With the PHP version writing as the incorrect user it causes problems.

    Is there a way to fix this?
     
  2. elleryjh

    elleryjh Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    Are you running phpsuexec?
     
  3. kris1351

    kris1351 Well-Known Member

    Joined:
    Apr 18, 2003
    Messages:
    963
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lewisville, Tx
    No, just suexec.
     
  4. elleryjh

    elleryjh Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    if your'e running suexec, cgi scripts will run as the user. If you're runnnig phpsuexec, then php scripts will run as the user.

    If you don't run these, then the scripts will run as nobody.
     
  5. kris1351

    kris1351 Well-Known Member

    Joined:
    Apr 18, 2003
    Messages:
    963
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lewisville, Tx
    Last time I enabled phpsuexec through the apache compile all php scripts suddenly had to be downloaded. There something special that needs to be done?
     
  6. kris1351

    kris1351 Well-Known Member

    Joined:
    Apr 18, 2003
    Messages:
    963
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lewisville, Tx
    Answered my own question with a new compile. Seems the phpsuexec compiles with no issues now. Tried it before an everything php had to be downloaded, may have just been a bad run.
     
  7. kris1351

    kris1351 Well-Known Member

    Joined:
    Apr 18, 2003
    Messages:
    963
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lewisville, Tx
    Enabled phpsuexec and that just made a mess. Suddenly php files were being downloaded as source instead of being run on the server. Have reverted back to a safe comple and sorting out permission and ownership issues now.

    Anyone have advice on how to make phpsuexec work properly, or to revert back to the original configuration?
     
Loading...

Share This Page