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.

Instead to STDOUT it goes to Apaches error_log!!!

Discussion in 'EasyApache' started by Celep, Jul 8, 2007.

  1. Celep

    Celep Member

    Joined:
    Oct 19, 2006
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Apache has suexec enabled with phpsuexec(each user runs PHP scripts like he, not nobody)
    PHP is CLI.

    So I parse php file normally through browser.
    That php file is executing shell command in like exec($command);
    Ie: gocr -h

    Now expected output(which is NOT error), ends up in Apaches error_log!!!
    Eactly a same way as it should appear in STDOUT in shell!!!

    When I log in like that user, through shell and execute that same command in shell,
    output is expected and SAME like one previously gone in Apaches error_log

    How to fix this? :confused:
     
Loading...

Share This Page