#47 Starting dema/xplico binary from web interface (XI)

open
None
5
2009-12-18
2009-12-18
No

Instead of showing the warning message in XI: "Xplico is not running, please run sqlite2_demo.sh...", we could try to start it with this solution:

http://www.php.net/manual/en/function.exec.php#56274

as it needs to be root, sudo would help us. Summarizing, the idea is giving sudo permissions to the Apache user, but only for running dema, only for that script. I know it sounds "it is not secure", but it seems to be enough safe.

Another option is suphp (http://www.suphp.org/Home.html )

I think this solution is complicatted, but we could have it in consideration for long term, perhaps next months we could study it.

Discussion

  • Copy the alerts system, using the sudo options for only sqlite_demo.sh script.