I have struggled with the same issue, but none of them seem to work. I am trying to install liberty on centos 7. Have changed the /etc/keystone/keystone.conf "connection = mysql://keystone:keystone123@localhost/keystone" had controller earlier instead of localhost. None of these seem to work

when using curl it's downloading text context form the git hub and appending on main and admin
curl http://git.openstack.org/cgit/openstack/keystone/plain/httpd/keystone.py?h=stable/kilo (http://git.openstack.org/cgit/opensta...) \
| tee /var/www/cgi-bin/keystone/main /var/www/cgi-bin/keystone/admin

the content should like below if it not copy and paste on both file main and admin

# Copyright 2015 OpenStack Foundation

#

# Licensed under the Apache License, Version 2.0 (the "License"); you may

# not use this file except in compliance with the License. You may obtain