By earlpearl17
I can successfully run a local WordPress site in a vagrant box on my laptop.
Local Vagrantfile entries:
config.vm.hostname = “wordpress” config.vm.network “private_network”, ip: “10.23.45.60”
From a browser, I can access the WordPress site at http://10.23.45.60
But, once I try doing the same thing on my DigitalOcean droplet, does not work. Droplet Vagrantfile entries:
config.vm.hostname = “wordpress” config.vm.network “private_network”, ip: “10.23.45.60” config.vm.network :forwarded_port, host: 8086, guest: 80
From a browser, I cannot access the WordPress site at http://xxx.xxx.xxx.xxx:8086 (xxx.xxx.xxx.xxx is my droplet’s public IP) And, please note, I have a number of other sites running from different Vagrant boxes on my DigitalOcean droplet, just not WordPress sites.
This is my configuration for WordPress (setting database & user):
/usr/local/bin/wp core config --dbname=wordpress --dbuser=wordpress --dbpass=wordpress123
This is what I used to install WordPress:
/usr/local/bin/wp core install --url=http://10.23.45.60
–title=“Blog” --admin_user=“admin” --admin_password=“admin”
–admin_email=“vagrant@localhost.localdomain”
Like I mentioned above, the WordPress site that is running on my local vagrant box is accessible to me at http://10.23.45.60. But, the WordPress site running on my droplet’s vagrant box is not accessible using my droplet’s public IP and forwarded port. I don’t know what I’m missing.
Any help would be appreciated.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.