I have file structure on EC2 like : but facing some file referencing problem.
index.php -db -config.php -cron -cron1.php
I have tried file
Thats just the directories showing you where PHP was looking for your file. Make sure that cron1.php exists where you think it does. And make sure you know where dirname(__FILE__) and $_SERVER['DOCUMENT_ROOT'] are pointing where you'd expect.
cron1.php
dirname(__FILE__)
$_SERVER['DOCUMENT_ROOT']
This value can be adjusted in your php.ini file.