Avantfax install Problem

Hi to all
I face with many problem each time that I install Avantfax. Finally after installing when I enter ip server, instead of Elastix login page it goes to Avantfax page with a big error middle of window as below:
The AvantFAX database is DOWN. Check your database settings in local_config.php.
For installing Avant fax I follow below steps:
First I install Hylafax then I put Avant fax software in tmp directory then I give it permission then let it to install with ./rh-install.sh after that it install its packages ,this problem happen for my server
Please help me solve it.