By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,721 Members | 1,217 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,721 IT Pros & Developers. It's quick & easy.

Permission denied in socket_connect

P: n/a
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
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.