Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

using suexec and suphp and pspsuexec.

Discussion in 'General Discussion' started by FourMat, Oct 5, 2007.

  1. FourMat

    FourMat Active Member

    Jun 10, 2004
    Likes Received:
    Trophy Points:
    Hi Folks. I have some basic questions about using the suexec, and suphp functions. I have been having periodic problems with script kiddies exploiting some weak scripts on my machine. I can identify the offending processes and stop them, then find some files that were put into /tmp and get rid of them, but the problem is that I can't drill down through the logs and find out exactly which user account was causing the weakness or the problem. Everything has a record of "nobody".

    Now I have done some reading and research and I believe that suexec and suphp will wrap these rogue scripts and make them be more identifiable. I guess the biggest question that I have is, if I hadn't set up suexec or suphp from the beginning, will all of my perl and php scripts break as soon as I implement suexec/suphp? I had been hesitant in the past because I have a lot of existing scripts and not a lot of time to do troubleshooting for broken scripts on every site that I administer. Is it really going to be that bad?

    Any other advice anyone might have on this topic would be greatly appreciated. Thanks.
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Nov 29, 2006
    Likes Received:
    Trophy Points:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    For SuExec, I haven't really heard anything bad about it to be honest. If anyone has any horror stories of Perl scripts breaking because of SuExec, please share :).

    As for SuPHP, PHP scripts that are chmod 777 will generate HTTP 500 errors. This is due to 777 being insecure permissions, and unnecessary under SuPHP. So you may run into the issue of telling users to chmod their PHP scripts to 755 from 777 even after the initial enabling of SuPHP.

    Some custom coders of PHP that have reseller accounts may become annoyed they can't have a repository of scripts on one site and share that among all their cPanel accounts. However, only custom coders will encounter this issue and they can just as easily modify their scripts to deal with these constraints. What I do is edit my PHP scripts so they return the value of whatever function as plain text (almost like AJAX) and then load the results of that into a buffer for processing.
  3. deddy

    deddy Well-Known Member

    Oct 13, 2003
    Likes Received:
    Trophy Points:
    Is no script available who is able to do that job automatically ?

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice