简体   繁体   中英

Server error 500 (transferring opencart to new server)

I am transferring eCommerce site to new server. Uploaded complete website and created database. Its showing 'server error 500'; kindly help me on this.

I might be a bit late, but for anyone else struggling with 500 Server Errors in OpenCart – the first thing to do when debugging these is to look into your server's error log and find the exact error message .

If there aren't any, you may need to enable them explicitly by adjusting the error_reporting , display_errors and log_errors settings in your PHP configuration. You can also temporarily change them in your main index.php file directly.

Once you know the exact error message, fixing it is a simple process.

We've covered some of the most common OpenCart error messages causing 500 Server Errors in our blog post: Server Errors and Blank Pages in OpenCart: Most Common Causes .

I'd recommend against trying to fix blank pages and 500 Server Errors without being able to look into the error log. These issues can be caused by pretty much anything starting from your server configuration and restrictions to broken OpenCart code so you really need to know what you're dealing with.

In your particular case, it is most likely caused by your new server configuration or the fact that you haven't adjusted OpenCart config files ( config.php and admin/config.php ) after the migration.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM