Apache/PHP not attempting to make external MySQL connections -



Apache/PHP not attempting to make external MySQL connections -

so i'm doing testing @ moment seems php/apache not attempting create external mysql connection.

i've confirmed there mysql connectivity between 2 servers , in doing have confirmed mysql running, listening on internal port, has permissions login web server, etc etc.

the problem joomla , other php scripts cannot create connection , via tcpdump appear not trying create connection external hosts. i've tested on trying connect dedicated server besides cloud environment.

besides doing joomla i've tested wordpress typical php mysql connection no cms engines (single file test connection) fails.

i've recorded video see issue in action.

https://www.youtube.com/watch?v=dwc2snasvvu

you can see in video me using web server @ command line connecting using "# mysql -h

then, via actual web server php files not initiate database connection , apparently don't try.

all firewalls disabled , turned off , wide open problem shooting purpose still fails.

i not sure if missed normal set , reason seems acting quirky.

----

answer: selinux blocking out-going connection. either disable selinux or enable remote connection through selinux

if running linux , selinux enabled (centos, fedora, rhel enables y default) have on:

http://serverfault.com/questions/240015/how-do-i-allow-mysql-connections-through-selinux

php mysql remote-connections

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -