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.

SuPHP... Strange behavior. owner root

Discussion in 'General Discussion' started by speckados, Oct 11, 2011.

  1. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Acequias :: Granada :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    We need a little code for use java & jodconverter

    On php file create it's owned by root:root
    Code:
    <?php
    // imprime el nombre de usuario que tiene control del proceso php/httpd activo                                                                                                                           
    // (en un sistema con el ejecutable "whoami" disponible en la ruta)                                                                                                                                      
      //var_dump(exec('/usr/lib/jvm/java/bin/java -version'));                                                                                                                                               
    exec('/usr/lib/jvm/java/bin/java -Xms1024m -Xmx1024m -jar /home/wwwhelpm/library/Java/jodconverter-cli-2.2.2.jar /home/wwwhelpm/public_html/001-h-tabla-amortizacion.xlsx /home/wwwhelpm/public_html/001\
    -h-tabla-amortizacion.pdf');
    ?>
    #ls -lisa 
    3524472  320 -rw-r--r--  1 root     root      320978 oct 11 09:13 001-h-tabla-amortizacion.pdf
    3524463 1100 -rw-r--r--  1 wwwhelpm wwwhelpm 1119595 oct 11 08:34 001-h-tabla-amortizacion.xlsx
    
    Any ideas?
     
Loading...

Share This Page