say the script is
http://www.mysite.com/runruby.php
<?php
shell_execute('ruby /home/rubysript/script.rb');
exit;
If I run it through http, it is run as apache user. And the ruby script is not executed.
But if in the shell command, I run
php runruby.php
It is run as the user which is my shell account. And the ruby script is executed.
So how can I make it work by http request to http://www.mysite.com/runruby.php.
Thanks!