A client of mine owns 2 dedicated servers – both running php 4.3.
One server (the main) has lots of applications with online payments. He has install SSL key in one subdomain to run the payment procedures.
So we have http://www.example-one.com and https://secure.example-one.com, both sharing the same databases.
Now, on his other server (www.example-two.com), he wants to upgrade to latest php/mysql.
He wants to install another ssl there (https://secure.example-two.com), and he wants to transfer all applications from first secure domain, to the new one.
Is there a way to share the databases in the second server? So php scripts can still work and store/retrieve data in the database in first server (www.example-one.com)?
EDIT: the two servers (example-one and example-two are running in different IPs)
Yes.
It all depends on your physical infrastructure, but if the servers running example-one and example-two can “see” each other across the network – ideally, a non-public network running inside your hosting facility, or a well-secured VPN across the internet – you can connect the PHP apps running on http://www.example-two.com and secure.example-two.com to the MySQL database on example-one.com by setting the connection string to point at whatever its hostname or IP address is.
You should NOT run this connection over the public internet or any benefit of using SSL on the web application is wiped out.