How can I get Wordpress droplet running without associating domain name to it.

Dear Team

I just created a droplet with wordpress and when I went to the console it was asking me for domain name or subdomain name. I just added some fake name to move ahead and completed rest of the steps. But now when I launched using my IP address, the WP seems not configured or installed properly and its NOT working right now.


Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

If it’s an OpenLiteSpeed WordPress server, you can also log into the web admin console, then edit the Domain name from the listener manually. You can put a valid domain, a server IP, or even a * to accept all.

Let me know if you have any questions.

Site Moderator
Site Moderator badge
November 1, 2023

Hey @chandurkarsunil,

This is because WordPress has some information related to the Domain configured in it’s Database that helps it run properly.

What you can do is use the hosts file on your computer with the fake name you have chosen for your WordPress App and then load your website using that.

To add a domain to your computer’s hosts file, you need administrative or superuser privileges, as the hosts file is a system file that maps hostnames to IP addresses locally. Here are the steps to add a domain to your hosts file:

On Windows:

  1. Open Notepad or any text editor with administrative privileges. To do this, right-click on the text editor icon and select “Run as administrator.”

  2. Open the hosts file located at C:\Windows\System32\drivers\etc\hosts.

  3. Add an entry to the hosts file in the following format:

Your_Droplet_IP_address   domain_name

Replace Your_Droplet_IP_address with the actual IP address you want to associate with the domain and domain_name with the domain you want to add.

For example:

Save the hosts file and exit the text editor.

Then you will be able to load the fake name you added.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel