cancel
Showing results for 
Search instead for 
Did you mean: 

Why Magento installations wizard can't show?

SOLVED

Why Magento installations wizard can't show?

Hello.
On an old server, I have "Magento 1.9.X" and on new server, I want to install "Magento 2.X". I download the file and moved it to "/var/www/html" and change files and directories permission to "apache:apache". Directory contents are:
$ pwd
/var/www/html
$ ls
app CHANGELOG.md COPYING.txt grunt-config.json.sample lib nginx.conf.sample pub var
auth.json.sample composer.json dev Gruntfile.js.sample LICENSE_AFL.txt package.json.sample setup vendor
bin composer.lock generated index.php LICENSE.txt phpserver update
Apache worked very well and when I browse "http://Server_IP" then I can see Apache test page but when I copied "Magento" and browse IP then I can't see anything.
How can I solve it?
 
Thank you.
1 ACCEPTED SOLUTION

Accepted Solutions

Re: Why Magento installations wizard can't show?

I did:

$ chcon -R -t httpd_sys_rw_content_t var/ pub/ generated/

And problem solved.

View solution in original post

3 REPLIES 3

Re: Why Magento installations wizard can't show?

Please refer to your Apache error logs.

 

You might be getting a Error 500.

Re: Why Magento installations wizard can't show?

Apache tell:

]# cat error_log 
[Tue May 28 01:19:46.429644 2019] [mpm_prefork:notice] [pid 3320] AH00170: caught SIGWINCH, shutting down gracefully
[Tue May 28 01:19:47.511062 2019] [core:notice] [pid 3785] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Tue May 28 01:19:47.511660 2019] [suexec:notice] [pid 3785] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message
[Tue May 28 01:19:47.537995 2019] [auth_digest:notice] [pid 3785] AH01757: generating secret for digest authentication ...
[Tue May 28 01:19:47.538945 2019] [lbmethod_heartbeat:notice] [pid 3785] AH02282: No slotmem from mod_heartmonitor
[Tue May 28 01:19:47.574780 2019] [mpm_prefork:notice] [pid 3785] AH00163: Apache/2.4.6 (CentOS) PHP/7.2.18 configured -- resuming normal operations
[Tue May 28 01:19:47.574832 2019] [core:notice] [pid 3785] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Tue May 28 01:19:50.755640 2019] [php7:error] [pid 3790] [client 10.0.2.2:38544] PHP Fatal error:  Uncaught Magento\\Framework\\Exception\\FileSystemException: The "/var/www/html/var/.regenerate" file can't be deleted. Warning!unlink(/var/www/html/var/.regenerate): Permission denied in /var/www/html/vendor/magento/framework/Filesystem/Driver/File.php:384\nStack trace:\n#0 /var/www/html/vendor/magento/framework/Filesystem/Directory/Write.php(188): Magento\\Framework\\Filesystem\\Driver\\File->deleteFile('/var/www/html/v...')\n#1 /var/www/html/vendor/magento/framework/Code/GeneratedFiles.php(99): Magento\\Framework\\Filesystem\\Directory\\Write->delete('/var/.regenerat...')\n#2 /var/www/html/vendor/magento/framework/App/ObjectManagerFactory.php(111): Magento\\Framework\\Code\\GeneratedFiles->cleanGeneratedFiles()\n#3 /var/www/html/vendor/magento/framework/App/Bootstrap.php(210): Magento\\Framework\\App\\ObjectManagerFactory->create(Array)\n#4 /var/www/html/vendor/magento/framework/App/Bootstrap.php(125): Magento\\Framework\\App\\Bootstrap->__construct(Object(Magento\\Framework\\App\\ObjectManagerFactory), '/var/www/html', Array)\n#5 /var in /var/www/html/vendor/magento/framework/Filesystem/Driver/File.php on line 384
[Tue May 28 01:19:53.288398 2019] [php7:error] [pid 3786] [client 10.0.2.2:38545] PHP Fatal error:  Uncaught Magento\\Framework\\Exception\\FileSystemException: The "/var/www/html/var/.regenerate" file can't be deleted. Warning!unlink(/var/www/html/var/.regenerate): Permission denied in /var/www/html/vendor/magento/framework/Filesystem/Driver/File.php:384\nStack trace:\n#0 /var/www/html/vendor/magento/framework/Filesystem/Directory/Write.php(188): Magento\\Framework\\Filesystem\\Driver\\File->deleteFile('/var/www/html/v...')\n#1 /var/www/html/vendor/magento/framework/Code/GeneratedFiles.php(99): Magento\\Framework\\Filesystem\\Directory\\Write->delete('/var/.regenerat...')\n#2 /var/www/html/vendor/magento/framework/App/ObjectManagerFactory.php(111): Magento\\Framework\\Code\\GeneratedFiles->cleanGeneratedFiles()\n#3 /var/www/html/vendor/magento/framework/App/Bootstrap.php(210): Magento\\Framework\\App\\ObjectManagerFactory->create(Array)\n#4 /var/www/html/vendor/magento/framework/App/Bootstrap.php(125): Magento\\Framework\\App\\Bootstrap->__construct(Object(Magento\\Framework\\App\\ObjectManagerFactory), '/var/www/html', Array)\n#5 /var in /var/www/html/vendor/magento/framework/Filesystem/Driver/File.php on line 384

Re: Why Magento installations wizard can't show?

I did:

$ chcon -R -t httpd_sys_rw_content_t var/ pub/ generated/

And problem solved.