How do I do Step 4 of Migrating Wordpress site if it says "ERROR"

December 30, 2016 866 views
Ubuntu Apache WordPress

So I’m following this support page here:
But when I am typing in sudo a2ensite after I’ve made the document, it says ERROR: Site does not exist!
For privacy I have covered up my domain name.

1 Answer

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

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!