sockobj.connect Errno 13 Permission denied

nobody jupiter.hce at gmail.com
Sat Jan 26 06:19:20 EST 2013


Hi,

I have a client program Client.py which has a statement of sockobj.connect(), the port number 60000 is used, so no problem from port permission. 

I am puzzled because I can run Client.py from command line in my user account or apache user account without any problems. 

But if I run it from a web page http://localhost/client.php, the client.php called exec("Client.py"), then it got an exception of sockobj.connect Errno 13 Permission denied.

Why it can run from command line, but cannot make connection from a web file? Appreciate any tips and clues.

Thank you.

Kind regards.






More information about the Python-list mailing list