Welcome Guest, Not a member yet? Register   Sign In
CI: Mysqli - Broken
#3

Hey thienhaxanh2405, thanks for the response, sorry did not mention this is an RDS (AWS) server.

The mysqli code works outside of Codeigniter for the remote server connection.
Just not the codeigniter driver itself.

During the writing of this reply, looked into 1 more thing and discovered this:

Code:
setsebool -P httpd_can_network_connect_db=1

My working stand alone script was being run command line so, when I tried running it via an http request, I got the error.

#$^$#%^ you SElinux.

Thanks, hope this helps someone else!
Reply


Messages In This Thread
CI: Mysqli - Broken - by phpscott - 05-03-2016, 04:17 PM
RE: CI: Mysqli - Broken - by thienhaxanh2405 - 05-04-2016, 12:13 AM
RE: CI: Mysqli - Broken - by phpscott - 05-04-2016, 07:43 AM
RE: CI: Mysqli - Broken - by thienhaxanh2405 - 05-06-2016, 09:24 PM



Theme © iAndrew 2016 - Forum software by © MyBB