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

From: Date: Sun, 27 Jan 2013 09:10:29 +0000
Subject: What needs to configure to run php exec for socket connection?
Groups: php.general 
Request: Send a blank email to php-general+get-320113@lists.php.net to get a copy of this message
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

« previous php.general (#320113) next »