shell/shell_exec

Discussion in 'Apache' started by User12399, Mar 25, 2010.

  1. #1
    How do I see if shell or shell_exec is enabled on my server please.
     
    User12399, Mar 25, 2010 IP
  2. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #2
    Do you have root access to the server? On a shared host, the easiest way is to use phpinfo. Create a new php file, call it what ever you like, then place this in it:

    
    <?php
    phpinfo();
    ?>
    
    Code (markup):
    Open the file in your browser, and look for disabled_functions, and see if its listed. If you have root access, you should be able to use the at a shell prompt:

    
    php -i | grep disabled_functions
    
    Code (markup):
     
    RHS-Chris, Mar 25, 2010 IP
  3. cameleon

    cameleon Greenhorn

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #3
    better to disable it mate :)
     
    cameleon, Mar 28, 2010 IP