Magento2 How to debug blank white screen and css,js page load design issue.
Magento2 How to debug blank white screen and css,js page load design issue.
index.php
ini_set('error_reporting', E_ERROR); register_shutdown_function("fatal_handler"); function fatal_handler() { $error = error_get_last(); echo("If you are facing problem of css and js page load design after installation in magento2"); print_r($error); echo(""); }
please follow the below step-:
open the terminal and navigate to magento web root
cd /var/www/html/magento2Step 1.
php bin/magento setup:static-content:deployStep 2.
php bin/magento indexer:reindexStep 3.
make sure apache “rewrite_module” is enable and then restart the server
Step 4.
chown -R www-data:www-data /var/www/html/magento2
Step 5.
chmod -R 777 /var/www/html/magento2Step 6.
delete cache folder under var/cache
The above step working. I hope this will work for you also.
Let me know if any issue. :)
No comments: