APACHE AND MYSQL on different Servers?

Discussion in 'Server Operation' started by linux_padawan, Feb 19, 2007.

  1. linux_padawan

    linux_padawan New Member

    I have an apache server that I want to pull and send information to a mysql db on another server. I'm not sure how to configure the installation of apache to pull information from the mysql server, I attempted to mount the mysql dir to the apache server that didnt work :(. Not sure where to go from there. Any help will be appreciated.
     
  2. falko

    falko Super Moderator Howtoforge Staff

    What exactly do you want to do Do you want your PHP applications to use your external MySQL server?
     
  3. linux_padawan

    linux_padawan New Member

    yes, I want the php to be able to send queries to the db server.
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Ok, then you don't have to configure Apache, but your PHP application to do this. Normally there's a configuration file where you can specify the database server. You'd use the FQDN or IP address of your MySQL server here.
    Whether there is such a configuration file depends on your PHP application.
     

Share This Page