magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

500 Internal Server Error when install in localhost

Open vigentocommerce opened this issue 11 years ago • 13 comments

Hey, I got 500 Internal Server Error when start install in localhost http://localhost/magento2-master/setup/ What happen, it is localhost in window so no permission wrong here. Please help.

Thank you in advanced!

vigentocommerce avatar Dec 06 '14 04:12 vigentocommerce

500 is a generic error which may be caused by several reasons. Can you please provide the log details (var/log) for this particular error you get?

safwkhan avatar Dec 06 '14 04:12 safwkhan

i ahve the same problem on loca and here is the log

[Thu Dec 11 14:57:51.404916 2014] [core:alert] [pid 19000] [client 127.0.0.1:45651] /home/user/www/magento2-test/magento2/setup/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration

Crustymd avatar Dec 11 '14 13:12 Crustymd

Ok so in case anybody will have this issue on a locallinux server probably you jsut do not have the mod_rewrite enabled.

To fix this for linux you jstu enter simple 2 commands:

ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/rewrite.load
sudo service apache2 restart

Worked nice for me

Crustymd avatar Dec 11 '14 13:12 Crustymd

Rather than soft linking, sudo a2enmod rewrite is the better way to do it. What it does essentially is create the soft link, but it makes it easier to disable by sudo a2dismod rewrite.

mazhalai avatar Dec 11 '14 14:12 mazhalai

@Crustymd you are correct, I have to enable mod_rewrite in localhost to make it work.

vigentocommerce avatar Dec 17 '14 08:12 vigentocommerce

In any case, we do not recommend using local host as a domain, because you may have a problem with the cookies

kandy avatar Dec 17 '14 08:12 kandy

@kandy agreed

vigentocommerce avatar Dec 17 '14 09:12 vigentocommerce

This seems to be resolved already: https://github.com/magento/magento2/blob/develop/setup/.htaccess -- now the "RewriteEngine" is enclosed into "IfModule", so it should not produce runtime error:

<IfModule mod_rewrite.c>
    RewriteEngine Off
</IfModule>

antonmakarenko avatar Dec 22 '14 17:12 antonmakarenko

Closing this ticket as already resolved.

verklov avatar Dec 29 '14 17:12 verklov

showing server error 500 in magento 1.9 on a live server please help

jaatr avatar Feb 18 '16 17:02 jaatr

@jaatr please do not post on close issues, also this is only for Magento 2. Please post magento 1 issues in https://community.magento.com/

mazhalai avatar Feb 18 '16 18:02 mazhalai

in magento 2 banner slider not showing only showing please wait plz help

jaatr avatar Feb 18 '16 18:02 jaatr

@jaatr I would recommend you head over to the Community Forums or Magento Stack Exchange site for technical questions and/or assistance debugging an issue. If you have a bug report with steps to reproduce, then open a new issue with that and environment information, thanks!

davidalger avatar Feb 18 '16 18:02 davidalger