0

I''m connecting PHP7 with Sybase15.7 using Devart drivers in RedHat Linux and getting the following error. **

SQLSTATE[08001] SQLDriverConnect: 0 [unixODBC][Devart][ODBC][Adaptive Server Enterprise] Cannot connect to server on host 'localhost': Permission denied. Socket Error Code:13

** Anybody help me to resolve this. Thanks in advance.

Raja Shekhar
  • 31
  • 1
  • 5

1 Answers1

0

Please check the audit log for SELinux denials. You probably need to run this command to grant PHP scripts unrestricted access to localhost:

# setsebool -P httpd_can_network_connect_db 1
Florian Weimer
  • 32,022
  • 3
  • 48
  • 92