# Error while setup hapee1.6r2-rest-api in ubantu

**URL:** <https://discourse.haproxy.org/t/error-while-setup-hapee1-6r2-rest-api-in-ubantu/1509>\
**Category:** Help!\
**Created:** [August 11, 2017, 2:38pm UTC](https://discourse.haproxy.org/t/error-while-setup-hapee1-6r2-rest-api-in-ubantu/1509 "2017-08-11T14:38:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Indian\_velumani](https://avatars.discourse-cdn.com/v4/letter/i/e99b99/32.png) [@Indian\_velumani](https://discourse.haproxy.org/u/Indian_velumani)\
**Post date:** [August 11, 2017, 2:38pm UTC](https://discourse.haproxy.org/t/error-while-setup-hapee1-6r2-rest-api-in-ubantu/1509/1 "2017-08-11T14:38:53Z")

</div>

Hello,  
I have an issue installing HAProxy rest-api in ubantu-14.04. I followed the instructions exactly as documented at [http://www.haproxy.com/doc/hapee/1.6r2/api/webbased.html#installation](http://www.haproxy.com/doc/hapee/1.6r2/api/webbased.html#installation) but at the stage where I test the API using

wget -O - 192.168.122.185/api/2/scope/root/l7/farm

I get the following error:

root@ubuntu:/var/log/apache2# wget -O - 192.168.1.5/api/2/scope/root/l7/farm  
–2017-08-11 19:11:20-- [http://192.168.1.5/api/2/scope/root/l7/farm](http://192.168.1.5/api/2/scope/root/l7/farm)  
Connecting to 192.168.1.5:80… connected.  
HTTP request sent, awaiting response… 500 Internal Server Error  
2017-08-11 19:11:20 ERROR 500: Internal Server Error.

Also note that in 000-default.conf I configured the module this way because the URL mentioned in /usr/share/doc/hapee-1.6r2-rest-api/examples/apache2.conf gave an Error 400

 ProxyPassMatch ^/(api(/.\*)?)$ unix:///var/run/hapee-1.6/hapee-rest-api.sock|fcgi://localhost/ 

Please do contact if any more information is required.

---

<div class="post-metadata">

**Author:** ![Baptiste](https://avatars.discourse-cdn.com/v4/letter/b/cab0a1/32.png) [@Baptiste](https://discourse.haproxy.org/u/Baptiste)\
**Post date:** [August 12, 2017, 1:31pm UTC](https://discourse.haproxy.org/t/error-while-setup-hapee1-6r2-rest-api-in-ubantu/1509/2 "2017-08-12T13:31:33Z")

</div>

Hi,

For HAProxy Enterprise Edition, please reach out to HAProxy Technologies support directly: [support@haproxy.com](mailto:support@haproxy.com).
