I’m calling Ruby from PHP using system().
This works fine until I add “require ‘mysql’”.
I think it’s likely missing a path for the Ruby MySQL gem.
I can call the same script successfully from crontab by adding the line
$LOAD_PATH << File.expand_path(File.dirname(FILE))
Any experience or ideas?