Categories
Apply to

TUTORIAL: Developing Locally on WordPress with Remote Database Over SSH – Technosailor.com

Configuring WordPress to use the TunnelNow that we have a successful SSH tunnel, you have to configure WordPress to use it. In the wp-config.php file, simply modify the DB_HOST constant to read:1define( ‘DB_HOST’, ‘127.0.0.1:5555’ );You need to add two more variables, though, to override WordPress’ existing siteurl and home options to allow you to work with the localhost domain, instead of redirecting to the remotedomain.com that is configured in WordPress.123define( ‘WP_HOME’, ‘http://localhost’ );define( ‘WP_SITEURL’, ‘http://localhost’ );

Source: TUTORIAL: Developing Locally on WordPress with Remote Database Over SSH – Technosailor.com

Leave a Reply

Your email address will not be published. Required fields are marked *