4 replies
by cpfeiffe
What user are you on the command line? Check perms on /dev/ttyS0. What user is Apache running as? I suspect it will be nobody or www or something like that. That is probably not the user you are running from on the command line. The user that owns the Apache process probably does not have rights to the device file. There are many combinations of ways to resolve this such as
1) modify permissions, owners, group on the device file
2) modify the Apache config to have it start as a different user and/or group
3) some combination thereof.
Be careful of your security requirements as you make these changes though.
by bichelmo
by bichelmo
I guess that I should have detailed better what we have already tried.
1. We modified apache conf. to launch as user web.
2. We modified owner of ttyS0 to be web.
3. We opened permissions of ttyS0 to wide open.
4. We su - to user web and it works fine.
by boonboy28
This discussion is closed to new replies.
Trending Linux posts
Sort by Trending