Redhat PHP gcc path problem
I am calling gcc through PHP by means of exec command. Then gcc gives weird errors such as "stddef.h cannot be found".
PHP is running under username "oracle". That is, when we call "whoami" through a PHP script by means of "exec", it gives oracle as the username.
We can easily call gcc without error on the terminal.
We can call "sudo -u oracle gcc source.c" without any error.
So it is very weird to me. Any ideas???
|