Jump to content

Recommended Posts

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 post
Share on other sites

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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...