Cron is not running

we have 2 server , one is for application and one for database(postgres).

Now we are running some cron job from application server. I'm using using cpanel to setup those cron. Now its returning error. So I went to SSH on application server and type wget http://domain.com/cron.php , it gives me error saying can not connect to database. Now I can type http://domain.com/cron.php
and see result. That mean db server is blocking my script to run from application server. but application is running fine on browser. Now I went to DB server and type wget http://domain.com/cron.phpand it runs fine. I know there are some setting on postgres db , my admin cant figure out, can anyone help me on this? Please let me know

 

 

 

 

Top