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!

SuPHP... Strange behavior. owner root

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

  1. speckados

    speckados Well-Known Member

    May 21, 2003
    Likes Received:
    Trophy Points:
    Pastrana :: Guadalajara :: España
    cPanel Access Level:
    DataCenter Provider
    We need a little code for use java & jodconverter

    On php file create it's owned by root:root
    // 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\
    #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?
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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