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.

small question about phpsuexec

Discussion in 'General Discussion' started by naox, May 25, 2005.

  1. naox

    naox Well-Known Member

    Joined:
    Mar 23, 2004
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    since phpsuexec executes php's as cgis.. then I think on phpsuexec server will not work:

    filename: test.php
    Code:
    
    
    <form>
    <input name="hub" type="hidden" id="hub" value="<?php echo $_GET['ip'];?>">
    </form>
    
    

    Am I wrong? since I thing cgi can only be executed as whole files, not some htlm-php hybrid I think dynamic htmls generated in html sould not work in phpsuexec. This is theoretical question, because I havent tested phpsuexec. But its very likely I'm wrong in this one
     
  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
    Just tried it on our test server running phpsuexec and it works just fine. IIRC the limitations with running phpsuexec are:

    1. HTTP_AUTH will not work

    2. PHP directives in .htaccess files must be moved into local php.ini files

    3. You need to remove write access to directories/scripts (there may be other permissions issues to cater for depending on the script)

    Other than that, it should be pretty much the same.
     
Loading...

Share This Page