Digital Ocean WordPress One Click Install - How can we change the domain name once initial setup has been done?
While initial setup - used different domain name just to set and test site. once, all done - how can we update the domain name. tried to update sit…
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!
Hello @er.tejaspatel88,
In order to make that change, there are a couple of things that you need to change:
First login to your WordPress admin panel, then go to Settings -> General and change your WordPress Address (URL) and your Site Address (URL) to your new domain name. Finally, save the changes.
Then you need to SSH to your Droplet and change your Apache Virtual Host:
- sudo nano /etc/apache2/sites-enabled/000-default.conf
In that file change the ServerName and the ServerAlias with your new domain name.
After that save the file and restart Apache in order for that change to take effect:
- sudo systemctl restart apache2
Hope that this helps! Regards, Bobby
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.