Social Icons

twitterfacebookgoogle pluslinkedinemail

Wednesday, 21 March 2018

Magento 2 Internal Server Error

Hello Guys,

Recently I faced one issue related to Internal Server Error. after debug and google I found some of the solution which are useful to you.

After installation of magento 2 or setup old source code to the server at that time we are getting error like

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.

So, First of all we must check related to .htaccess file. I am sure this is cause of the .htaccess file.

we must check .htaccess file in setup root directory and also under the pub/ directory.

Setup Root .htaccess file should be like .htaccess

Pub/.htaccess file should be like pub/.htaccess

After Changes .htaccess please run the below commands

1. rm -rf var/cache/* var/page_cache/* var/generation/* var/view_preprocessed/* var/di/*
2. php bin/magento setup:upgrade
2. php bin/magento setup:di:compile (if deploy mode is production)
3. php bin/magento setup:static-content:deploy
4. chmod -R 777 var/* pub/* generated/*

if still facing same issue than please enable mod_rewrite and mod_version php module from your hosting server.
Also please check folder permission.

you can share comment here if still facing issue. I will sure help you to fix it.

Thank you.
Anant Prajapati (Enjoy Your Self)

No comments :

Post a Comment


Free Advertisement

Free Advertisement

Free Advertisement

Free Advertisement