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!

Instead to STDOUT it goes to Apaches error_log!!!

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

  1. Celep

    Celep Member

    Oct 19, 2006
    Likes Received:
    Trophy Points:
    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:

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