Anyone using php_serial.class.php with USB serial port?
jim
cinetron-uEvt2TsIf2EsA/PxXw9srA at public.gmane.org
Sat Apr 5 18:50:09 UTC 2008
THanks Lennart,
> On Thu, Apr 03, 2008 at 11:19:38PM -0400, jim wrote:
> > Strange I discovered that if I run this from the command line as root it
> > works. If I start Firefox even as root and run the program from the
> > browser I get the error ..
> >
> > Warning: Specified serial port is not valid
> > in /usr/share/php/php_serial.class.php on line 111
> >
> > I tried changing permissions on the file to give permissions to anyone
> > to execute and you still have to be root in the command line to make it
> > run properly and it still won't run via the browser. Any idea whats
> > going on here?
>
> What user does your web server run as? Is that user/group a member of
> whichever group has access to the serial ports?
>
> On Debian you would add the www-data user to the group 'dialout' by
> doing:
> adduser www-data dialout
>
> It is probably a permission issue and nothing else.
Yes it was a permission thing. Adding www-data to dialout didn't quite
do it but changing permissions on /dev/USB0 worked. Thanks again!!
Jim
>
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy
mailing list