Website Migration from APACHE to NGINX : HTTP ERROR 500

I have an old website running well on APACHE. I migrated it to NGINX on ubuntu 16.04, by transferring files and database. However I am getting http Error 500. Website :

Please tell me if I am missing something.


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

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I normally troubleshoot 500 errors by: checking .htaccess file, then checking RAM allocation on server, deactivating all plugins then turning them on 1 by 1, and then as a last resort I wipe and do a vanilla install of Wordpress to see if a basic setup works. Normally it’s .htaccess or RAM allocation, though.

Thanks for the reply…I looked into the above file but didn’t find any error logs related to this website(…However, there are some error logs for other unrelated website( :

2017/02/23 11:12:53 [error] 31220#31220: *57434 FastCGI sent in stderr: "PHP message: PHP Notice: Use of undefined constant CURLOPT_RETURNTRANSFER - assumed ‘CURLOPT_RETURNTRANSFER’ in /var/www/ on line 38

Why this website is not logging any error, I couldn’t figure out.

Unless you changed the location, then have a look in /var/log/nginx/error.log which will give you way more information on the problem. Just post the latest lines here if you don’t know what to do.