From: Chris S. <ch...@sz...> - 2007-12-22 01:20:52
|
Hello, I've been working on a project to control gphoto2 from a web site. I've run into issues with both cgi executables and php's system(), exec() and shell_exec() commands. I have written a bash script that will detect multiple cameras connected to the PC, and take a single capture from each cam. This works fine when I execute the script myself. However, when trying to execute the script as the apache user, www-data, I get nothing but errors from gphoto2. For example, when I do gphoto2 --auto-detect, it will come up with a list of the cameras connected to the PC. However, typing sudo -u www-data gphoto2 --auto-detect will not show anything below the ---- line. Also, if I type gphoto2 --capture-image -F 1 -I 1, the camera takes the picture, and downloads it (like it should). As with before, running this same command as the www-data user produces the error # 105 "unknown model". The first few lines look like the normal output, gphoto2 says that time-lapse mode is enabled, inverval 1s, then capturing frame #1/1, after this it dies. Does anyone have any insight on this, or any suggestions on how I can get gphoto2 to run from a web server? Thanks -Chris Szikszoy -- View this message in context: http://www.nabble.com/gphoto2-as-www-data-user-tp14465181p14465181.html Sent from the gphoto-user mailing list archive at Nabble.com. |