elexion Posted January 7, 2013 Share Posted January 7, 2013 hello everyone, I've got a server set up as my web host. It has Apache installed and PHP (both are the most recent version). for the database I have a different server these two machines (the web host and the database server) are connected through a peer to peer connection. Now I've learned that I need to use my database servers IP address as the host address for my database connection script but are there any other settings I need to change in the php.ini in order to make this work? Link to comment Share on other sites More sharing options...
boen_robot Posted January 8, 2013 Share Posted January 8, 2013 Other than having the appropriate extension enabled, there's nothing else in php.ini.Having the connection details (IP, username, and password for the connection), should be enough for the PHP code.If you're still having problems connecting, it could be due to firewall issues - the web server machine needs to allow outgoing connections on the DB port, and at the DB server needs to allow incoming connections on the DB port. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now