subhransu Posted March 17, 2009 Share Posted March 17, 2009 Hi, I am trying to execute a ruby script from my PHP script using exec() command. But it looks like the script is not running properly. My php script is in the apache directory (/var/www) with user and group set to root and ruby script is in the home folder. The ruby script is supposed to write some files on that directory and do couple of mysql calls. But it's not doing either! Seems like it's a permission issue Any idea how to go for it? Thanks, Subhransu Link to comment https://forums.phpfreaks.com/topic/149834-problem-with-php-exec-command/ Share on other sites More sharing options...
syed Posted March 17, 2009 Share Posted March 17, 2009 Can/Does the ruby file execute by its self? without being called by the exec() function Link to comment https://forums.phpfreaks.com/topic/149834-problem-with-php-exec-command/#findComment-786814 Share on other sites More sharing options...
subhransu Posted March 17, 2009 Author Share Posted March 17, 2009 Yes, the ruby script works fine independently. Link to comment https://forums.phpfreaks.com/topic/149834-problem-with-php-exec-command/#findComment-786816 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.