Anyone using php_serial.class.php with USB serial port?

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Fri Apr 4 12:43:59 UTC 2008


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.

-- 
Len Sorensen
--
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