cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.2 + openserver (win) Error 500 when installing

Magento 2.2 + openserver (win) Error 500 when installing

Hello,

 

I'm trying to install Magento 2.2 to the openserver under Win64x

It shows the following:

 

Server error!

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

If you think this is a server error, please contact the webmaster.

Error 500

magic.useron.com
Apache

 

I tried magento checking php module, it shows me OK

but magento_cleanup is also not running

 

It seems something is wrong in .htaccess, isn't it?

5 REPLIES 5

Re: Magento 2.2 + openserver (win) Error 500 when installing

@alexey_degtyarevHi,

 

Before installing Magento did you try to put a PHP file on the server and saw that you are able to browse the URL? I would recommend to put a file let say 'index.php' put the below code in the file and see if you are able to browse the URL.

 

<?php

phpinfo();

 

If you are able to browse the URL it should display all PHP configurations. If not there is an issue with the server setting. If you already did this and having issue with Magento installation then start looking into server log for any issues.

 

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

 

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

Re: Magento 2.2 + openserver (win) Error 500 when installing

Thank you, but php works for sure))

 

There is log from OpenServer, Apache:

 

[Tue Feb 06 11:54:05.680044 2018] [ssl:warn] [pid 4356:tid 452] AH01909: alexey.usergate1976.com:443:0 server certificate does NOT include an ID which matches the server name
[Tue Feb 06 11:54:05.682044 2018] [ssl:warn] [pid 4356:tid 452] AH01909: default:443:0 server certificate does NOT include an ID which matches the server name
[Tue Feb 06 11:54:05.712044 2018] [ssl:warn] [pid 4356:tid 452] AH01909: alexey.usergate1976.com:443:0 server certificate does NOT include an ID which matches the server name
[Tue Feb 06 11:54:05.713044 2018] [ssl:warn] [pid 4356:tid 452] AH01909: default:443:0 server certificate does NOT include an ID which matches the server name
[Tue Feb 06 11:54:05.790008 2018] [mpm_winnt:notice] [pid 4356:tid 452] AH00455: Apache/2.4.29 (Win64) OpenSSL/1.1.0g configured -- resuming normal operations
[Tue Feb 06 11:54:05.790008 2018] [mpm_winnt:notice] [pid 4356:tid 452] AH00456: Apache Lounge VC15 Server built: Nov 3 2017 11:12:00
[Tue Feb 06 11:54:05.790008 2018] [core:notice] [pid 4356:tid 452] AH00094: Command line: 'C:\\openserver\\ospanel\\modules\\http\\Apache-PHP-7.2-x64\\bin\\httpd.exe -d C:/openserver/OSPanel/modules/http/Apache-PHP-7.2-x64 -f c:\\openserver\\ospanel\\modules\\http\\Apache-PHP-7.2-x64\\conf\\httpd.conf'
[Tue Feb 06 11:54:05.794008 2018] [mpm_winnt:notice] [pid 4356:tid 452] AH00418: Parent: Created child process 3416
[Tue Feb 06 11:54:06.218011 2018] [ssl:warn] [pid 3416:tid 460] AH01909: alexey.usergate1976.com:443:0 server certificate does NOT include an ID which matches the server name
[Tue Feb 06 11:54:06.218011 2018] [ssl:warn] [pid 3416:tid 460] AH01909: default:443:0 server certificate does NOT include an ID which matches the server name
[Tue Feb 06 11:54:06.244011 2018] [ssl:warn] [pid 3416:tid 460] AH01909: alexey.usergate1976.com:443:0 server certificate does NOT include an ID which matches the server name
[Tue Feb 06 11:54:06.244011 2018] [ssl:warn] [pid 3416:tid 460] AH01909: default:443:0 server certificate does NOT include an ID which matches the server name
[Tue Feb 06 11:54:06.271010 2018] [mpm_winnt:notice] [pid 3416:tid 460] AH00354: Child: Starting 32 worker threads.
[Tue Feb 06 11:54:11.674832 2018] [core:alert] [pid 3416:tid 844] [client 127.0.0.1:1762] C:/openserver/OSPanel/domains/alexey.usergate1976.com/.htaccess: Invalid command '<IfVersion', perhaps misspelled or defined by a module not included in the server configuration
[Tue Feb 06 11:54:11.785794 2018] [core:alert] [pid 3416:tid 848] [client 127.0.0.1:1761] C:/openserver/OSPanel/domains/alexey.usergate1976.com/.htaccess: Invalid command '<IfVersion', perhaps misspelled or defined by a module not included in the server configuration, referer: http://alexey.usergate1976.com/

Re: Magento 2.2 + openserver (win) Error 500 when installing

It seems I have resolved it

 

First of all, you have to delete all the tags in .htaccess file starting from <IfVersion...

Because the Openserver does not understand this part of code. Maybe it means something serious, but now I have deleted all these tags to make my life easier))

 

Then Magento checks compatibility of your system. If it shows PHP extension failure, you have to go to PHP.ini (which is accessible from OpenServer menu->advanced->php conf) and uncomment the line "extension=php_intl.dll" by removing ; symbol at start. I do not know, why it was commented and by whom, but now we have to remove it

 

Then note, Magento doesn't work with PHP 7.2, it works only with PHP 7.0. You have to make appropriate settings in OpenServer.

 

Now it is installed!

Re: Magento 2.2 + openserver (win) Error 500 when installing

@alexey_degtyarevGlad to hear that you resolved the issue. Some issues may have not occurred like PHP (7.2) compatibility issue. Here is the URL where you can find the detailed system requirements for Magento 2.2.

 

http://devdocs.magento.com/guides/v2.2/install-gde/system-requirements-tech.html

 

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

 

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

Re: Magento 2.2 + openserver (win) Error 500 when installing

Я не понял как это работает) В начале я в .htaccess удалил все длинны строки с ######

, потом заглянул в PHP.ini где у меня тоже была закомментирована строка extension=php_intl.dll , соответственно раскомментировал. Все равно не работает, выдает 500. Ну тогда банально все из htaccess удалил. Перезагрузил и ... обалдел когда увидел страницу установки) Спасибо Алексей.