I have checked tail -n 20 /Applications/MAMP/logs/php_error.log
. No errors in log. I am using MAMP.
Also I have added
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
in index.php
.
My memory limit in php.ini
is
memory_limit = 512M
Any suggestions?
Error log was not coming because i was adding code in index.php, it should have been added at the end of the settings.php file:
error_reporting(E_ALL); ini_set('display_errors', TRUE); ini_set('display_startup_errors', TRUE);
After i checked logs, there were normal warnings. After that i enabled drush & it showed database is being connected but parameters are wrong. Removing $database array from settings.php file and then installing like a fresh vanilla instance solved the issue.