in reply to Wierd Apache issue

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).

Replies are listed 'Best First'.
Re^2: Wierd Apache issue
by gbizeau (Initiate) on Sep 11, 2009 at 19:22 UTC
    Almut,

    Your a genius...

    I never even thought of that, I added apache to the uucp group, as it all stands on CentOS 5.3 and now it's working like a charm!!!

    TY TY TY TY TY