Solved! Go to Solution.
I did:
$ chcon -R -t httpd_sys_rw_content_t var/ pub/ generated/
And problem solved.
Please refer to your Apache error logs.
You might be getting a Error 500.
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