My guess would be that the user the webserver runs under (often www-data) has no permissions to access /dev/ttyS0 (so the call to Device::SerialPort->new(...) fails and $pbx is undefined).
For example, on my system, /dev/ttyS0 is
$ ls -l /dev/ttyS0 crw-rw---- 1 root dialout 4, 64 2009-09-06 04:09 /dev/ttyS0
and Apache (www-data) is not in group dialout (by default).
In reply to Re: Wierd Apache issue
by almut
in thread Wierd Apache issue
by gbizeau
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |