I broke permissions in a critical craft install. My solution was to install a new version of the craft, move all of the templates from the old site to the new site and restore the MySQL database.

Problem is that craft wants to run the setup installer.

Can anyone provide me a quick recipe for restoring a craft3 site from backups? I have the database and all of the assets/templates etc.


1 Answer 1


If you've copied the Craft files to a new place on the server, then you can either leave the database connection information the same and have it keep on pointing to the current database instance, or edit craft/config/db.php (or your .env file if that's how you're setup) to point to a new database instance.

If the new one is a blank database, the Craft installer will want to run. If you want a copy of your old database on the new one, you'll need to do a database dump from the old one and restore it to the new one. If you do the latter and you're still getting Craft to prompt to run the installer, then there is something wrong with the database connection settings between Craft/PHP and the database and those should be adjusted.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.