# Sugarcrm not connecting to ES server

**URL:** https://discuss.elastic.co/t/sugarcrm-not-connecting-to-es-server/12720
**Category:** Elasticsearch
**Created:** [July 9, 2013, 2:28pm UTC](https://discuss.elastic.co/t/sugarcrm-not-connecting-to-es-server/12720 "2013-07-09T14:28:05Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Chris\_Brooks](https://avatars.discourse-cdn.com/v4/letter/c/9de053/32.png) [@Chris\_Brooks](https://discuss.elastic.co/u/Chris_Brooks)
#### Post date: [July 9, 2013, 2:28pm UTC](https://discuss.elastic.co/t/sugarcrm-not-connecting-to-es-server/12720/1 "2013-07-09T14:28:05Z")

</div>

I have an es server configured and running. When I browse to the server  
using port 9200 I get the expected response.

[es.canarylabs.com:9200](http://es.canarylabs.com:9200) (local only)

{  
"ok" : true,  
"status" : 200,  
"name" : "Nebulos",  
"version" : {  
"number" : "0.90.0",  
"snapshot\_build" : false  
},  
"tagline" : "You Know, for Search"  
}

This produces errors in the php log,

[Tue Jun 11 15:57:12 2013] [error] [client 192.168.0.126] PHP Fatal error: Call to undefined function curl\_init() in /var/www/get\_url.php on line 37, referer: [https://sugar.canarylabs.com/index.php?module=Contacts&action=DetailView&record=df044d93-56a4-471c-9276-f29c9d3f633c](https://sugar.canarylabs.com/index.php?module=Contacts&action=DetailView&record=df044d93-56a4-471c-9276-f29c9d3f633c)  
[Tue Jun 11 15:59:34 2013] [error] [client 192.168.0.126] PHP Fatal error: Call to undefined function curl\_init() in /var/www/get\_url.php on line 37, referer: [https://sugar.canarylabs.com/index.php?module=Contacts&action=DetailView&record=df044d93-56a4-471c-9276-f29c9d3f633c](https://sugar.canarylabs.com/index.php?module=Contacts&action=DetailView&record=df044d93-56a4-471c-9276-f29c9d3f633c)  
[Tue Jun 11 16:12:24 2013] [error] [client 108.183.26.73] PHP Fatal error: Call to undefined function curl\_init() in /var/www/include/SugarSearchEngine/Elastic/Elastica/Transport/Http.php on line 112, referer: [https://sugar.canarylabs.com/index.php?module=Leads&action=index](https://sugar.canarylabs.com/index.php?module=Leads&action=index)  
[Tue Jun 11 16:12:24 2013] [error] [client 108.183.26.73] PHP Fatal error: Call to undefined function curl\_init() in /var/www/include/SugarSearchEngine/Elastic/Elastica/Transport/Http.php on line 112, referer: [https://sugar.canarylabs.com/index.php?module=Leads&action=index](https://sugar.canarylabs.com/index.php?module=Leads&action=index)  
[Tue Jun 11 16:12:40 2013] [error] [client 192.168.0.126] PHP Fatal error: Call to undefined function curl\_init() in /var/www/include/SugarSearchEngine/Elastic/Elastica/Transport/Http.php on line 112, referer: [https://sugar.canarylabs.com/index.php?module=Administration&action=index](https://sugar.canarylabs.com/index.php?module=Administration&action=index)  
[Tue Jun 11 16:12:51 2013] [error] [client 108.183.26.73] PHP Fatal error: Call to undefined function curl\_init() in /var/www/include/SugarSearchEngine/Elastic/Elastica/Transport/Http.php on line 112, referer: [https://sugar.canarylabs.com/index.php?module=Leads&action=index](https://sugar.canarylabs.com/index.php?module=Leads&action=index)  
[Tue Jun 11 16:13:08 2013] [error] [client 108.183.26.73] PHP Fatal error: Call to undefined function curl\_init() in /var/www/include/SugarSearchEngine/Elastic/Elastica/Transport/Http.php on line 112, referer: [https://sugar.canarylabs.com/index.php?module=Leads&action=index](https://sugar.canarylabs.com/index.php?module=Leads&action=index)  
[Tue Jun 11 16:13:10 2013] [error] [client 108.183.26.73] PHP Fatal error: Call to undefined function curl\_init() in /var/www/include/SugarSearchEngine/Elastic/Elastica/Transport/Http.php on line 112, referer: [https://sugar.canarylabs.com/index.php?module=Leads&action=index](https://sugar.canarylabs.com/index.php?module=Leads&action=index)  
[Tue Jun 11 16:13:11 2013] [error] [client 108.183.26.73] PHP Fatal error: Call to undefined function curl\_init() in /var/www/include/SugarSearchEngine/Elastic/Elastica/Transport/Http.php on line 112, referer: [https://sugar.canarylabs.com/index.php?module=Leads&action=index](https://sugar.canarylabs.com/index.php?module=Leads&action=index)  
[Tue Jun 11 16:13:11 2013] [error] [client 108.183.26.73] PHP Fatal error: Call to undefined function curl\_init() in /var/www/include/SugarSearchEngine/Elastic/Elastica/Transport/Http.php on line 112, referer: [https://sugar.canarylabs.com/index.php?module=Leads&action=index](https://sugar.canarylabs.com/index.php?module=Leads&action=index)

Sugar support is telling me there is an issue with the configuration of the ES server but I tend to disagree. Does any of this make sense you the community?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Christian\_Th](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@Christian\_Th](https://discuss.elastic.co/u/Christian_Th)
#### Post date: [July 9, 2013, 2:42pm UTC](https://discuss.elastic.co/t/sugarcrm-not-connecting-to-es-server/12720/2 "2013-07-09T14:42:46Z")

</div>

Am Dienstag, 9. Juli 2013 16:28:05 UTC+2 schrieb Chris Brooks:

> I have an es server configured and running. When I browse to the server  
> using port 9200 I get the expected response.
> 
> [es.canarylabs.com:9200](http://es.canarylabs.com:9200) (local only)
> 
> {  
> "ok" : true,  
> "status" : 200,  
> "name" : "Nebulos",  
> "version" : {  
> "number" : "0.90.0",  
> "snapshot\_build" : false  
> },  
> "tagline" : "You Know, for Search"  
> }
> 
> This produces errors in the php log,
> 
> [Tue Jun 11 15:57:12 2013] [error] [client 192.168.0.126] PHP Fatal error: Call to undefined function curl\_init() in /var/www/get\_url.php on line 37, referer: [https://sugar.canarylabs.com/index.php?module=Contacts&action=DetailView&record=df044d93-56a4-471c-9276-f29c9d3f633c](https://sugar.canarylabs.com/index.php?module=Contacts&action=DetailView&record=df044d93-56a4-471c-9276-f29c9d3f633c)  
> [Tue Jun 11 15:59:34 2013] [error] [client 192.168.0.126] PHP Fatal error: Call to undefined function curl\_init() in /var/www/get\_url.php on line 37, referer: [https://sugar.canarylabs.com/index.php?module=Contacts&action=DetailView&record=df044d93-56a4-471c-9276-f29c9d3f633c](https://sugar.canarylabs.com/index.php?module=Contacts&action=DetailView&record=df044d93-56a4-471c-9276-f29c9d3f633c)  
> [Tue Jun 11 16:12:24 2013] [error] [client 108.183.26.73] PHP Fatal error: Call to undefined function curl\_init() in /var/www/include/SugarSearchEngine/Elastic/Elastica/Transport/Http.php on line 112, referer: [https://sugar.canarylabs.com/index.php?module=Leads&action=index](https://sugar.canarylabs.com/index.php?module=Leads&action=index)  
> [Tue Jun 11 16:12:24 2013] [error] [client 108.183.26.73] PHP Fatal error: Call to undefined function curl\_init() in /var/www/include/SugarSearchEngine/Elastic/Elastica/Transport/Http.php on line 112, referer: [https://sugar.canarylabs.com/index.php?module=Leads&action=index](https://sugar.canarylabs.com/index.php?module=Leads&action=index)  
> [Tue Jun 11 16:12:40 2013] [error] [client 192.168.0.126] PHP Fatal error: Call to undefined function curl\_init() in /var/www/include/SugarSearchEngine/Elastic/Elastica/Transport/Http.php on line 112, referer: [https://sugar.canarylabs.com/index.php?module=Administration&action=index](https://sugar.canarylabs.com/index.php?module=Administration&action=index)  
> [Tue Jun 11 16:12:51 2013] [error] [client 108.183.26.73] PHP Fatal error: Call to undefined function curl\_init() in /var/www/include/SugarSearchEngine/Elastic/Elastica/Transport/Http.php on line 112, referer: [https://sugar.canarylabs.com/index.php?module=Leads&action=index](https://sugar.canarylabs.com/index.php?module=Leads&action=index)  
> [Tue Jun 11 16:13:08 2013] [error] [client 108.183.26.73] PHP Fatal error: Call to undefined function curl\_init() in /var/www/include/SugarSearchEngine/Elastic/Elastica/Transport/Http.php on line 112, referer: [https://sugar.canarylabs.com/index.php?module=Leads&action=index](https://sugar.canarylabs.com/index.php?module=Leads&action=index)  
> [Tue Jun 11 16:13:10 2013] [error] [client 108.183.26.73] PHP Fatal error: Call to undefined function curl\_init() in /var/www/include/SugarSearchEngine/Elastic/Elastica/Transport/Http.php on line 112, referer: [https://sugar.canarylabs.com/index.php?module=Leads&action=index](https://sugar.canarylabs.com/index.php?module=Leads&action=index)  
> [Tue Jun 11 16:13:11 2013] [error] [client 108.183.26.73] PHP Fatal error: Call to undefined function curl\_init() in /var/www/include/SugarSearchEngine/Elastic/Elastica/Transport/Http.php on line 112, referer: [https://sugar.canarylabs.com/index.php?module=Leads&action=index](https://sugar.canarylabs.com/index.php?module=Leads&action=index)  
> [Tue Jun 11 16:13:11 2013] [error] [client 108.183.26.73] PHP Fatal error: Call to undefined function curl\_init() in /var/www/include/SugarSearchEngine/Elastic/Elastica/Transport/Http.php on line 112, referer: [https://sugar.canarylabs.com/index.php?module=Leads&action=index](https://sugar.canarylabs.com/index.php?module=Leads&action=index)
> 
> Sugar support is telling me there is an issue with the configuration of the ES server but I tend to disagree. Does any of this make sense you the community?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![cthoma](https://avatars.discourse-cdn.com/v4/letter/c/b487fb/32.png) [@cthoma](https://discuss.elastic.co/u/cthoma)
#### Post date: [July 9, 2013, 2:52pm UTC](https://discuss.elastic.co/t/sugarcrm-not-connecting-to-es-server/12720/3 "2013-07-09T14:52:35Z")

</div>

I think you should enable the curl module for php

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Chris\_Brooks](https://avatars.discourse-cdn.com/v4/letter/c/9de053/32.png) [@Chris\_Brooks](https://discuss.elastic.co/u/Chris_Brooks)
#### Post date: [July 9, 2013, 4:15pm UTC](https://discuss.elastic.co/t/sugarcrm-not-connecting-to-es-server/12720/4 "2013-07-09T16:15:23Z")

</div>

apt-get install php5-curl on the sugar server will do it correct?

On Tuesday, July 9, 2013 10:52:35 AM UTC-4, cthoma wrote:

> I think you should enable the curl module for php

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Christian\_Th](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@Christian\_Th](https://discuss.elastic.co/u/Christian_Th)
#### Post date: [July 9, 2013, 6:21pm UTC](https://discuss.elastic.co/t/sugarcrm-not-connecting-to-es-server/12720/5 "2013-07-09T18:21:30Z")

</div>

It depends on your installation.  
But after restarting your webserver(apache2 ?), it should work.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![cthoma](https://avatars.discourse-cdn.com/v4/letter/c/b487fb/32.png) [@cthoma](https://discuss.elastic.co/u/cthoma)
#### Post date: [July 9, 2013, 6:23pm UTC](https://discuss.elastic.co/t/sugarcrm-not-connecting-to-es-server/12720/6 "2013-07-09T18:23:08Z")

</div>

It depends on your installation.  
But after restarting your webserver(apache2 ?), it should work.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Chris\_Brooks](https://avatars.discourse-cdn.com/v4/letter/c/9de053/32.png) [@Chris\_Brooks](https://discuss.elastic.co/u/Chris_Brooks)
#### Post date: [July 9, 2013, 8:21pm UTC](https://discuss.elastic.co/t/sugarcrm-not-connecting-to-es-server/12720/7 "2013-07-09T20:21:00Z")

</div>

That worked, thank you very much!

On Tue, Jul 9, 2013 at 2:23 PM, cthoma [thch0014@gmail.com](mailto:thch0014@gmail.com) wrote:

> It depends on your installation.  
> But after restarting your webserver(apache2 ?), it should work.
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/tGUKGbQyy48/unsubscribe](https://groups.google.com/d/topic/elasticsearch/tGUKGbQyy48/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 6, 2017, 2:27am UTC](https://discuss.elastic.co/t/sugarcrm-not-connecting-to-es-server/12720/8 "2017-07-06T02:27:24Z")

</div>


