By opacitatic
Hi, So I’m following this support page here: https://www.digitalocean.com/community/tutorials/how-to-migrate-wordpress-from-shared-hosting-to-a-cloud-server-with-zero-downtime But when I am typing in sudo a2ensite yourdomain.com after I’ve made the document, it says ERROR: Site yourdomain.com does not exist! For privacy I have covered up my domain name.
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!
The a2ensite command (I believe) uses the filename of the configuration file you are enabling so if the file is mysite.conf you would do a2ensite mysite
If you continue to run into trouble you can also skip the a2ensite command by copying your configuration file from the sites-available to the sites-enabled folder in /etc/apache2/ and restarting apache with service apache2 restart
Hello there,
You can double-check that you’ve created the virtual host with the same name you’re using the a2ensite command - replace yourdomain.com and username accordingly.
Regards
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.