简体   繁体   中英

Error[13]: Access Denied -On Apache Thrift generated PHP client

I'm using a PHP-JAVA bridging using Apache thrift. A java server file, it is accesses by a php client on some port xxxx.

This is working fine in Windows, but when i did it in CentOS 6, its giving me Access Denied Error, somthing like given below:

Fatal error: Uncaught exception 'TException' with message 'TSocket:
Could not connect to localhost:xxxx (Permission denied [13])'
in /var/www/html/Thrift/transport/TSocket.php:229
Stack trace: #0 /var/www/html/Thrift/transport/TBufferedTransport.php(82):
TSocket->open() #1 /var/www/html/FileGateway.php(19): TBufferedTransport->open()
#2 {main} thrown in /var/www/html/Thrift/transport/TSocket.php on line 229 

Tried to change the file permissions to 777. but its not working. What is the problem here?

Found it was the problem with selinux. Disabled it , so httpd have the permission to netwrking.

Thanks

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM