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.

Compiling phpSuExec with Easyapache throws Internal Server Error

Discussion in 'EasyApache' started by Lucas, Apr 2, 2007.

  1. Lucas

    Lucas Well-Known Member

    Joined:
    Feb 22, 2003
    Messages:
    125
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Around the world
    cPanel Access Level:
    Root Administrator
    For some odd reason I recently started getting on ALL php scripts Internal Server Error after compiling phpSuExec. I don't understand why. Before it worked just fine and now everything throws internal server error. Any ideas? PSM does my admin work but lately they let me down so I'm trying to see if I can solve this on my own.

    Regards
     
  2. _Sam_

    _Sam_ Well-Known Member

    Joined:
    Feb 24, 2007
    Messages:
    79
    Likes Received:
    0
    Trophy Points:
    6
    PHPSuExec wont run with 777 chmoded folders. you will have to chmod all folders back to 755
     
    #2 _Sam_, Apr 2, 2007
    Last edited: Apr 2, 2007
  3. Lucas

    Lucas Well-Known Member

    Joined:
    Feb 22, 2003
    Messages:
    125
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Around the world
    cPanel Access Level:
    Root Administrator
    I don't have any folders on 777. That's the weird thing. Plus ALL my clients are affected.
     
  4. _Sam_

    _Sam_ Well-Known Member

    Joined:
    Feb 24, 2007
    Messages:
    79
    Likes Received:
    0
    Trophy Points:
    6
    do they have anything to controll php in .htaccess files? if so they will have to be put in a php.ini file insread of htaccess
     
  5. Lucas

    Lucas Well-Known Member

    Joined:
    Feb 22, 2003
    Messages:
    125
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Around the world
    cPanel Access Level:
    Root Administrator
    What does that have to do? It used to work just fine. But now it doesn't anymore. And all we've moved is compilation through easyapache.
     
  6. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    phpSuExec gives you the advantage of being able to track script executions better
    because all scripts are run as the account owner name instead of nobody.

    There are some things to note though:

    1. Php_flag and php_admin commands in .htaccess will not work under PhpSuExec
    and you will throw an error 500 if you have any in your .htaccess file.

    2. Php overrides can be put into a custom php.ini for the account. This is actually
    a downside and security vulnerability for phpSuExec and the one drawback for
    having phpSuExec but the advantages usually outweigh the disadvantages.

    3. Under phpSuExec, no folder can be globally writable so don't set anything to 777.
    You will need to set all folders under your /public_html to 755 or you will throw
    an access error from your web server.

    4. There is a minor performance degradation switching to phpSuExec.


    Now for those using Apache 2, you can use SuPHP instead of phpSuExec which
    gives you all the benefits of phpSuExec without the downsides and doesn't have
    any of the vulnerabilities or weaknesses of phpSuExec.
     
Loading...

Share This Page