Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot get ngrok to serve up my WordPress site

I have a simple wordpress install using Mamp Free Version on OS/X.

Version 2.0.19/2.0.19
Web Interface h#tp#//127.0.0.1:4040
Forwarding h#tp#//6c219c8e.ngrok.io -> localhost:8888 Forwarding
h#tps#//6c219c8e.ngrok.io -> localhost:8888
Connections ttl opn rt1 rt5 p50
p90
1 0 0.00 0.00 6.00 6.00

For some reason when I try the links generated by ngrok, the website loads forever, then I get

Page not available.

like image 850
Stacy Avatar asked Nov 30 '22 17:11

Stacy


2 Answers

As @Magico stated, download from the repo https://github.com/jonathanbardo/WP-Ngrok-Local and place that in your plugins directory, activate the plugin.

Then, after you get your ngrok tunnel URL up & running, take that URL and place it in your wp-config.php as follows:

define( 'WP_SITEURL', 'http://example.ngrok.io/' );
define( 'WP_HOME', 'http://example.ngrok.io/' );

Now you will be able to access the homepage as well as the admin dashboard.

like image 116
Grant Avatar answered Dec 26 '22 02:12

Grant


According to the faq:

You need to add one of the following plugins to force Wordpress to issue relative URLs.

  • https://github.com/optimizamx/odt-relative-urls

Sorry I don't have enough reputation points to post the rest of links.

like image 31
Ryan Dutton Avatar answered Dec 26 '22 01:12

Ryan Dutton