What is the location of curl?

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), enable it through cPanel > Select PHP Version > Extensions > check curl.

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 - Check if the extension is enabled in cPanel > Select PHP Version. If you recently changed PHP versions, the extension list may have reset.

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

  • 461 Users Found This Useful

Was this answer helpful?

Related Articles

Prevent CloudFlare from Loading a js or Script

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

Is it possible to make a cron to backup my database at specific times?

Hosting Control Panel | Updated March 2026 Yes, you can schedule automatic database backups...

How to Create a Support Ticket

General | Updated March 2026 The fastest way to get help with your hosting account is by...

Cross Origin Request Error (CORS)

General | Updated March 2026 A Cross-Origin Request (CORS) error occurs when a web page on...

FTP Root Directory and Account Structure

FTP | Updated March 2026 If you're connected via FTP and cannot navigate above your home...



Save 30% on web hosting - Use coupon code Hosting30