Website Migration from APACHE to NGINX : HTTP ERROR 500

February 22, 2017 2.1k views
Apache Nginx PHP Ubuntu 16.04

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.

3 Answers

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.

Thanks for the reply..I looked into the above file but didn't find any error logs related to this website(, 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 CURLOPTRETURNTRANSFER - assumed 'CURLOPTRETURNTRANSFER' in /var/www/ on line 38

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

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.

Have another answer? Share your knowledge.