Permission denied opening '/dev/ttyS0' with PHP
Asked by
ishunko
Hello,
I am truing to access a serial port in PHP using the following command:
fopen('/dev/ttyS0', 'w')
However, I get the error message:
open(/dev/ttyS0) [function.fopen]: failed to open stream: Permission denied in /var/www/...
How can I let it run or haw can a change permissions for PHP script to be able to access '/dev/ttyS0'?
Thank you!
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu php4 Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask ishunko for more information if necessary.
To post a message you must log in.