I have a problem where I can run a script with require 'mysql2' in it on the console fine, however within a php system call on the same machine it won’t work.
Does anyone have any ideas how to fix this please?
Gareth
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sounds like you might have
GEM_HOMEset in your own environment, but the user PHP is running as doesn’t have the same set.http://docs.rubygems.org/read/chapter/3#page83