From: Michael R. <re...@eu...> - 2007-02-19 05:45:15
|
Hi Piet, > How can I start stop LCD4LINUX from a PHP script running > on an Apache webserver. > When i use exec() the command is refused because the user is > apache and lcd4linux only allows to run from root user. No, that's not true. Basically LCD4Linux could run as any user. But there's a security check, it refuses to work if the config file (usually /etc/lcd4linux.conf) does not belong to the current user, and/or group or others have access to it. So if you want to run lcd4linux as 'apache', make shure that /etc/lcd4linux.conf is owned by apache, too, and that it's permissions are 0600. Depending on your display, the user apache must have access to the LCD device, too. HTH, Michael -- Michael Reinelt <re...@eu...> http://home.pages.at/reinelt GPG-Key 0xDF13BA50 ICQ #288386781 |