cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2: 500 Internal Server Error

Magento 2: 500 Internal Server Error

I try to install magento2 in my server ( http://magento.first-code.com/ ) 

 

i find error 500 happen through in chrome

I Try to enable php errors on index.php

 

error_reporting(E_ALL);
ini_set('display_errors', 1);

 

and then run the page, it will no show any error exist.

 

whree is problem ?

 
5 REPLIES 5

Re: Magento 2: 500 Internal Server Error

Hi @khalid_ahmed1 

 

Here I found a solution for you. Please check this link.

I hope it will help you in figure out and fix this issue.

 

Thanks

--
If my answer is useful, please Accept as Solution & give Kudos

Re: Magento 2: 500 Internal Server Error

Hello @khalid_ahmed1 

 

I would say instead of index.php file please open app/bootstrap.php file 

 

and write the below code in that specific file

 

 

error_reporting(E_ALL);
#ini_set('display_errors', 1);

 

then check you will able to see the error on the browser please post the same so it will help us to trouble shoot the issue.

 

Hope it helps !

if issue solved,Click Kudos & Accept as Solution

Re: Magento 2: 500 Internal Server Error

I do all steps but still show me error 500

Re: Magento 2: 500 Internal Server Error

as you see i do that

Screenshot_1.jpg

 

Re: Magento 2: 500 Internal Server Error

@khalid_ahmed1Look into the server log please - apache and php. You'll be able to find the issue.

 

Problem solved? Please give 'Kudos' and accept 'Answer as Solution'.

- Tarandeep
Problem solved?Please give 'Kudos' and accept 'Answer as Solution'.