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

Error 401 Unauthorized

Errors & Troubleshooting | Updated March 2026 A 401 Unauthorized error means the server...

Reseller: Unable to find an IP address in when creating an account

General | Updated 2026 The "Unable to find an IP address" error in WHM occurs when trying to...

I have a reseller account. What can I use for billing software and automation?

General | Updated 2026 If you have a reseller hosting account with Ultra Web Hosting and need...

Enable AllowOverride

General | Updated 2026 If your .htaccess rules are being ignored (redirects not working,...

osCommerce password reset

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



Save 30% on web hosting - Use coupon code Hosting30