Migrating from Apache - Database connection issue

I have a couple of old blogs on Digital Ocean on a LAMP stack. I recently wanted to shift them to a new Nginx based server.

I created a new VPS and installed the ee stack and created the first website for domain1.com using the simple WP setup in EE and imported old files using this tutorial - Migrate Website

However, when I try to test the website on http://w.x.y.z/domain1/I get a database connection error. Some observations:

  1. My old setup had the wpconfig in the var/www/domain1/ folder and not outside it - the ee setup has it outside it
  2. The database name, user name, and password were different.

Hi, Use new database, username and password generated by EasyEngine for database setup,

For security reason EasyEngine keep wp-config.php in parent folder of htdocs.

I removed the original wp-config. After moving, I upgraded my Wordpress to version 4 and everything was working well. However, I deleted a couple of plugins and now the website has become unavailable. Even the server shows an error on going to http://w.x.y.z/

However, http://w.x.y.z:22222/ is available.

Check by clearing your cache on your site.

Also check in Nginx error log.

tail -f /var/www/w.x.y.z/logs/*.log

You can also use EasyEngine debug module to debug your site. Link:

Thanks. However, I removed the site and did the migration again and it worked perfectly!

Hello @Amit_Goyal ,

Glad to know that your issue is resolved.

I am closing this support topic for now. Feel free to create a new support topic if you have any queries further. :slight_smile: