Phabricator URL doesnt load in browser. But it works with curl

Unable to setup phabricator code review tool as we are unable to open the url link in browser. but the same is loading if we execute “curl localhost”.

Note (didnt configure db yet. configured using httpd as mentioned in document disabled selinux and firewall

[root@localhost conf]# diff httpd.conf.orig httpd.conf
> LoadModule php5_module modules/
> LoadModule rewrite_module modules/
> <VirtualHost *>
>   # Change this to the domain which points to your host.
>   ServerName
>   # Change this to the path where you put 'phabricator' when you checked it
>   # out from GitHub when following the Installation Guide.
>   #
>   # Make sure you include "/webroot" at the end!
>   DocumentRoot /usr/local/bin/phabricator/webroot
>   RewriteEngine on
>   RewriteRule ^(.*)$          /index.php?__path__=$1  [B,L,QSA]
> </VirtualHost>
< DocumentRoot "/var/www/html"
> #DocumentRoot "/var/www/html"
< <Directory "/var/www">
<     AllowOverride None
<     # Allow open access:
<     Require all granted
> #<Directory "/var/www">
> #    AllowOverride None
> #    # Allow open access:
> #    Require all granted
> #</Directory>
> <Directory "/usr/local/bin/phabricator/webroot">
>   Require all granted

curl localhost – tail output

<br />
Unable to establish a connection to any database host (while trying &quot;phabricator_config&quot;). All masters and replicas are completely unreachable.<br />
<br />
Make sure Phabricator and MySQL are correctly configured.</div>

The current Phabricator configuration has these 4 value(s):"localhost"

To update these 4 value(s), run these command(s) from the command line:

phabricator/ $ ./bin/config set value
phabricator/ $ ./bin/config set mysql.port value
phabricator/ $ ./bin/config set mysql.user value
phabricator/ $ ./bin/config set mysql.pass value
To continue, resolve this problem and reload the page.
Host: localhost.localdomain


Source: stackoverflow-php