Mike wrote:
Hi newsgroup,
I created a AF_UNIX socket and specify a file path /tmp/unix.str.
However, whenever PHP tries to connect, I always got permission denied
error. My PHP file has root access. Any idea? The server is a C
program that creates a Unix socket.
Mike
Hi Mike,
So you PHP file has writepermission on that socket?
Do you get any errorcodes?
Is the C-program ok? I mean: Can you let ANYTHING connect to it?
Debug:
1) Does your PHP-logfile say more about the error? (Maybe set the
logactivity to max during experimentation in php.ini)
2) Maybe check that C-program and let it log all activity (quick-and-dirty
to a plain debugfile).
Just my 2 cents.
Regards,
Erwin