• Resolved wadecourtney

    (@wadecourtney)


    Greetings,

    I currently have wordpress installed on a linux server (WP, MySQL, PHP). When I try to access the database locally with a fully qualified domain name as DB_HOST, I have no issues.

    I also have wordpress installed on a remote server (WP, PHP, no DB). with the wp-config pointing at the DB on the local installation with the same credentials.

    I have enabled access for the db user and I have executed the following command on the DB server:

    setsebool -P httpd_can_network_connect=1

    Question, does this command need to be executed on both ends, or only on the DB server.

    When using telnet, I can connect bi-directionally with both servers.

    when I try to access the blog from the remote server, I get a database connection error.

    I am at my wits end. Does anyone have any advice or other places to check?

    Thanks,

    Wade

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter wadecourtney

    (@wadecourtney)

    UPDATE:

    I am able to connect to the remote mysql server via the linux command line.

    Still not able to connect to the server via wordpress.

    Thread Starter wadecourtney

    (@wadecourtney)

    Resolved

    This command needed to be run on both servers

    setsebool -P httpd_can_network_connect=1

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Database connection Errors – at wits end’ is closed to new replies.