cancel
Showing results for 
Search instead for 
Did you mean: 

I installed magento2, but error 500 happen

I installed magento2, but error 500 happen

I installed magento2, and installed sw Porto template, after i clicked "import" in demo installation, admin panel refreshed automatically, and all menu freezed, except dash board

 

i find error 500 happen through developer tool in chrome, css or Js files cannot be loaded.

 

www.higoren.com

6 REPLIES 6

Re: I installed magento2, but error 500 happen

Hi @omnison

 

Try to run following command in the magento root

 

php bin/magento setup:static-content:deploy 

Read this http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-static-view.html

---
Problem Solved Click Accept as Solution!:Magento Community India Forum

Re: I installed magento2, but error 500 happen

How to diagnose «500 Internal Server Error»: https://mage2.pro/t/854

Re: I installed magento2, but error 500 happen

I had also a error 500 when trying to login to /admin

I got redirected to /admin/admin/index/index

 

Not sure how I got my solution to finally view the /admin but this steps I took:

  1. I made sure the path works in php.ini:
    session.save_path = "/path/to/magento/websites/project/magento2/var/tmp"
  2. I switched from PHP 7 to 5.6. and back to 7
  3. I deleted the script in app/code/magento/backend/view/adminhtml/templates/search.phtml (line 28 to 60) because line 43 created temporarely a error while I logged in to /admin

Hope this helps someone.

Re: I installed magento2, but error 500 happen

check php version Magento ?2.0 requires PHP >7.0 in .htaccess, you can point to the needed php version using the correct handler:

<code>#enable php 7
AddHandler application/x-httpd-php70 .php

</code>

you could also enable development mode in .htaccess to get detailed PhP error messages:

<code>

SetEnv MAGE_MODE developer

</code>

 

Re: I installed magento2, but error 500 happen

Please check .htaccess first.possibility of module not enabled. Because i faced this issue because of mod_version module so I enabled it from apache and now it's working. I had installed magento version 2 via composer.

You can check also with replacing your .htaccess file Or renamed it to confirm issue of .htaccess file.

-and if css not properly working then please deploy static content 
php  bin/magento setup:static-content:deploy
http://devdocs.magento.com/guides/v2.1/config-guide/cli/config-cli-subcommands-static-view.html

 

Re: I installed magento2, but error 500 happen

You need switch magento to developer mode for find exact error text. Issue can be related with permissions on files, static content, errors in templates. << Snipped >>