General

What is the location of curl?

Updated March 2026 10,525 views 3 min read
General | Updated March 2026

The curl binary is located at /usr/bin/curl on Ultra Web Hosting servers. The PHP cURL extension is also enabled by default on all shared, reseller, VPS, and dedicated hosting accounts. If an application asks for the curl path or whether cURL is supported, the answer is yes.

01. Curl Binary Path

The command-line curl binary is at /usr/bin/curl. This is the standard location on CentOS/CloudLinux systems. If you need to call curl from a shell script, cron job, or application config, use this path.

# Verify the path
which curl
# Output: /usr/bin/curl

02. PHP cURL Extension

The PHP cURL extension is separate from the command-line binary. Most PHP applications (WordPress, Joomla, Drupal, WooCommerce, payment gateways) use the PHP extension, not the command-line tool.

To verify it's enabled, create a temporary phpinfo.php file:

<?php phpinfo(); ?>

Search the output for "curl." You should see a cURL section showing the version and supported features. Delete the file when done.

Or via SSH:

php -m | grep curl
# Output: curl

If PHP cURL is not listed (which would be unusual), note that it is enabled by default on every PHP version - open a support ticket and we'll check your configuration.

03. Checking the Version

# Command-line curl version
curl --version
# Shows: curl 7.x.x (or 8.x.x) with supported protocols

# PHP cURL version
php -r "echo curl_version()['version'];"

The curl version matters when interacting with APIs that require specific TLS versions or HTTP/2 support. All Ultra Web Hosting servers run curl versions that support TLS 1.2, TLS 1.3, and HTTP/2.

04. Common Uses

Cron jobs - Calling a URL on a schedule: /usr/bin/curl -s https://yourdomain.com/cron.php >/dev/null 2>&1. See our cron job guide.

API calls from scripts - Shell scripts that interact with payment gateways, shipping APIs, or third-party services.

File downloads - Downloading files to your server: curl -O https://example.com/file.zip

WordPress and WooCommerce - These require PHP cURL for update checks, plugin installation, payment processing, and REST API communication.

05. Troubleshooting

"curl: command not found" - You may be in a restricted shell. Use the full path /usr/bin/curl instead of just curl.

PHP says cURL is not installed - cURL is enabled by default on every PHP version. If it is reported missing after a version change, open a support ticket and we'll check the configuration for that domain.

SSL certificate errors with curl - If curl reports certificate verification failures, the CA certificate bundle may need updating. Contact support to update the server's CA bundle.

For other server paths (PHP, Perl, Python, ImageMagick, sendmail), see Server Paths - PHP, Perl, Python and More. To request a module installation, see How to Request a Server Module.

Need a Module Installed?

If you need a specific PHP extension or server tool that isn't available, open a support ticket.

Open a Support Ticket

Quick Recap: Curl on Ultra Web Hosting

  1. Binary path: /usr/bin/curl
  2. PHP cURL extension is enabled by default on all accounts
  3. Both command-line and PHP cURL are available
  4. TLS 1.2/1.3 and HTTP/2 are supported
  5. See Server Paths article for other binary locations

Last updated March 2026 · Browse all General articles

Share: X in Reddit f Email
  • 461 Users Found This Useful

Was this answer helpful?

Related Articles

My pages are updating/refreshing slowly

General | Updated January 2026 If your website loads slowly or takes a long time to update...

Prevent CloudFlare from Loading a js or Script

General | Updated January 2026 Cloudflare's Rocket Loader feature automatically optimizes...

Point my domain to my wix account

General | Updated January 2026 If you want to use a domain registered through Ultra Web...

How to Speed Up Your Website

Website Tools & SEO | Updated March 2026 A slow website loses visitors and hurts search...

osCommerce password reset

General | Updated January 2026 If you have lost your osCommerce admin password and cannot log...



Save 30% on web hosting - Use coupon code Hosting30