Accessing a serial port from a web server

L'Antre du Tryphon

schedule
2013-05-19 | 01:42h
update
2013-06-08 | 19:25h
person
www.ctheroux.com
domain
www.ctheroux.com

Accessing a serial port from a web server

On most Linux distribution, it is impossible to access a serial port (ex. /dev/ttyS0) from a web server such as Apache or lighttpd using a cgi. Simply add the user under which the web server runs (www-data for example) to the group dialout. To do so, use vigr from the command line and add the user on the dialout group line. Such a line will typically look like:

dialout:x:20:myuser,www-data
Advertisement

Imprint
Responsible for the content:
www.ctheroux.com
Privacy & Terms of Use:
www.ctheroux.com
Mobile website via:
WordPress AMP Plugin
Last AMPHTML update:
02.04.2024 - 23:07:02
Privacy-Data & cookie usage: