- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Production mode not working - http error 500
I switched Magento2 to production mode. But the site is not working, I get a http error 500.
Any idea, how I can solve the problem? Its running on Nginx. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Production mode not working - http error 500
In Production mode 500 http error shows because of issue related to permission.
Please first give var and pub folder full permission.
If permisssion is given to var and pub folder,
Please run command,
php bin/magento cache:flush
Now run deployment command,
php bin/magento setup:static-content:deploy
If this response was helpful to you, consider giving kudos to this post.
If this response solved your problem, click accept as solution to help others solve this.
Thanks.
Magento 2 Blogs/Tutorial
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Production mode not working - http error 500
I followed the steps, but it is not working.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Production mode not working - http error 500
Just remove var folder from root.
Run compile command,
php bin/magento setup:di:compile
Magento 2 Blogs/Tutorial
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Production mode not working - http error 500
The Backend (/admin) is working, Frontend is not working (HTTP ERROR 500).
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Production mode not working - http error 500
Have you delete var folder from root and run di compile command.
Magento 2 Blogs/Tutorial
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Production mode not working - http error 500
yes I renamed var folder and was running compile again.
A new var folder has been created then.