Hello.
I've got PHP 5.1.6, Apache 2.2.2, on Fedora 5. Everything is great except that when I use an of the external launching commands, persistent apps dont stay open.
I have a simple shell script set up to load an app, and I have it write a PID file. Immediately after calling exec (milliseconds later) the PID is alive. However, within a few more milliseconds it seems to close.
I've made sure that the apache uid/gid have full access to the script and the apps it calls.
When sudo'ing manualy in a shell with the apache uid, the script works flawlessly and loads the program, and stays open, as it should. I've verified that the app loads under the uid 'apache' with ps.
When running it through PHP, it seems to close almost immediately after succeeding.
Is there some fundamental issue with how this works that I'm missing?
I can't seem to get any real errors out of php, apache, or even the shell when redirected to a file.
Should I try PHP4? Is PHP5 buggy with this kind of thing? I even tried running 'at' to schedule the script (so that it'd be invoked by at instead of the shell itself) but that failed, silently, as well..
Thanks for any help you can provide me.