Title: Remote Database connection
Last modified: November 24, 2019

---

# Remote Database connection

 *  Resolved [hoiikmaak](https://wordpress.org/support/users/hoiikmaak/)
 * (@hoiikmaak)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/remote-database-connection/)
 * We have an assignment from school. Make 2 ubuntu servers, 1 with wordpress and
   1 with a database server. Then setup WordPress and use the remote database server.
 * I have made this setup locally in virtual box.
    Ip: My desktop 10.0.1.1, ubuntuserver1(
   wordpress) 10.0.1.2, ubuntuserver2(database) 10.0.1.3
 * I have everything installed and database has been created. Then when I go to 
   [http://10.0.1.2/wp-admin/setup-config.php?step=1](http://10.0.1.2/wp-admin/setup-config.php?step=1),
   and try to configure the database it isn’t working.
 * I tried to check if the database is available from 10.0.1.2 to 10.0.1.3 with 
   the user I have made for the database, and I’m able to connect and see the database.
 *     ```
       --------------
       mysql  Ver 15.1 Distrib 10.1.43-MariaDB, for debian-linux-gnu (x86_64) using rea
   
       Connection id:          3
       Current database:
       Current user:           wpuser@10.0.1.2
       SSL:                    Not in use
       Current pager:          stdout
       Using outfile:          ''
       Using delimiter:        ;
       Server:                 MySQL
       Server version:         5.7.28-0ubuntu0.18.04.4 (Ubuntu)
       Protocol version:       10
       Connection:             10.0.1.3 via TCP/IP
       Server characterset:    latin1
       Db     characterset:    latin1
       Client characterset:    utf8mb4
       Conn.  characterset:    utf8mb4
       TCP port:               3306
       Uptime:                 50 sec
   
       Threads: 1  Questions: 5  Slow queries: 0  Opens: 105  Flush tables: 1  Open tab
       --------------
   
       MySQL [(none)]> show databases;
       +--------------------+
       | Database           |
       +--------------------+
       | information_schema |
       | wordpress          |
       +--------------------+
       2 rows in set (0.00 sec)
       ```
   
 * I have tried many things however, at this moment I’m clueless what to try.
    I
   can start and run the installation, however when I press the button, it stops
   and:
 *     ```
       This page isn’t working 10.0.1.2 is currently unable to handle this request.
       HTTP ERROR 500
       ```
   
 * shows up.
 * All things can help 😀 !, please if something comes to your mind tell me.
 * – Tom
    The links I have used:
 * Main
    [https://www.tecmint.com/install-wordpress-on-ubuntu-16-04-with-lamp/](https://www.tecmint.com/install-wordpress-on-ubuntu-16-04-with-lamp/)
   Ports [https://www.cyberciti.biz/faq/linux-apache2-change-default-port-ipbinding/](https://www.cyberciti.biz/faq/linux-apache2-change-default-port-ipbinding/)
   Mysql [https://help.ubuntu.com/lts/serverguide/mysql.html](https://help.ubuntu.com/lts/serverguide/mysql.html)
   PHP [https://askubuntu.com/questions/873768/how-do-i-install-php7-on-ubuntu-14-04](https://askubuntu.com/questions/873768/how-do-i-install-php7-on-ubuntu-14-04)
   Remote [https://www.linode.com/docs/databases/mariadb/configure-wordpress-remote-database/](https://www.linode.com/docs/databases/mariadb/configure-wordpress-remote-database/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [hoiikmaak](https://wordpress.org/support/users/hoiikmaak/)
 * (@hoiikmaak)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/remote-database-connection/#post-12169648)
 * Update, not sure if it’s still a database issue only.
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [6 years, 6 months ago](https://wordpress.org/support/topic/remote-database-connection/#post-12169661)
 * What do you have for the DB_HOST and DB_USER lines in your wp-config.php file?(
   Please do not post the password.)
 *  Thread Starter [hoiikmaak](https://wordpress.org/support/users/hoiikmaak/)
 * (@hoiikmaak)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/remote-database-connection/#post-12169717)
 * After checking to files:
 * The binding address was wrong on one side.
    After changing it the install worked.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Remote Database connection’ is closed to new replies.

## Tags

 * [remote database](https://wordpress.org/support/topic-tag/remote-database/)
 * [ubuntu](https://wordpress.org/support/topic-tag/ubuntu/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [hoiikmaak](https://wordpress.org/support/users/hoiikmaak/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/remote-database-connection/#post-12169717)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
