# Installing Curl Module in PHP

**URL:** <https://community.f5.com/t/installing-curl-module-in-php/10697>\
**Category:** Technical Forums\
**Tags:** design, availability, tmsh, irules, devops, application-delivery\
**Created:** [August 14, 2013, 8:13pm UTC](https://community.f5.com/t/installing-curl-module-in-php/10697 "2013-08-14T20:13:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dIone\_24797](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@dIone\_24797](https://community.f5.com/u/dIone_24797)\
**Post date:** [August 14, 2013, 8:13pm UTC](https://community.f5.com/t/installing-curl-module-in-php/10697/1 "2013-08-14T20:13:31Z")

</div>

Hello, we need the sub-second timeout functionality in the libcurl module for PHP. The Libcurl(PHP) module is not on our F5 (11.4.0).

Does anyone have any experience installing this module?

We are using this script in an External Monitor to check the health of our Pools.

Thanks!

---

<div class="post-metadata">

**Author:** ![hoolio](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@hoolio](https://community.f5.com/u/hoolio)\
**Post date:** [August 15, 2013, 1:44am UTC](https://community.f5.com/t/installing-curl-module-in-php/10697/2 "2013-08-15T01:44:21Z")

</div>

Hi,

F5 wouldn’t support you adding your own modules, but it should just work if you upload it and call it from your script.

Else it looks like the curl executable already installed might support it if you set CURLOPT\_CONNECTTIMEOUT\_MS as an environmental variable.

[http://stackoverflow.com/questions/6211282/why-would-curl-time-out-in-1000ms-when-i-have-set-up-timeout-upto-3000ms](http://stackoverflow.com/questions/6211282/why-would-curl-time-out-in-1000ms-when-i-have-set-up-timeout-upto-3000ms)

Check the version of your CURL and PHP installation. CURLOPT\_CONNECTTIMEOUT\_MS added in cURL 7.16.2. Available since PHP 5.2.3. [PHP: curl\_setopt - Manual](http://php.net/manual/en/function.curl-setopt.php)

```tcl
tmsh show sys version

Sys::Version
Main Package
  Product BIG-IP
  Version 11.4.0
  Build 2384.0
  Edition Final
  Date Thu May 16 18:49:32 PDT 2013

 curl -V
curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8y zlib/1.2.3 libidn/0.6.5
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps
Features: IDN IPv6 Largefile NTLM SSL libz

```

Aaron
