I am still stuck with the same problem
I would need to compile and execute a C/C++/Java code from PHP as part of online compiler. Can anyone help me with a safe way of compiling and executing a script? I think chroot-ing apache will solve some problems, plus using SELinux. How could one possibly run an executable from shell using PHP with memory limits?
Thanks in advance for any information.