What needs to configure to run php exec for socket connection?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I  have a client.php which calls an external python socket client
program exec("Client.py"), the Client.py calls
sockobj.connect(("localhost", 60000)) to connect socket.

If I run the client.php from Linux command line $ ./client.php, it
works find, no problem at all.

But when I run it from web page http://localhost/client.php, it could
not connect to socket at following exception in python
sockobj.connect(("localhost", 60000)):

"sockobj.connect Errno 13 Permission denied"

Why it can run from command line, but cannot make socket connection
from web? Does it need some kind of configuration in php or apache?
Appreciate any tips and clues.

Thank you.

Kind regards.
I am puzzled by

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux