There are two common types of cURL installs on most cPanel servers. The first is a binary install, this is where the cURL binary (program) sits on your server (usually in /usr/bin) and can be run via the CLI or script. The second method is to have cURL built into PHP so that PHP's cURL functions can be used in PHP code. Below explains how to install each. Installing the Binary Version on All versions of CentOS: 1. Log into the server via SSH or console as root. 2. Run the following command: yum install curl curl-devel 3. When prompted to confirm the installation press y. CURL is now installed and should reside in /usr/bin/curl Adding cURL support into PHP: 1. Log into the server via SSH or console as root. 2. Run the following command: /scripts/easyapache 3. Select 'Start customizing based on profile', leaving 'Previously Saved Config' checked. 4. Select the version of Apache you would like to run. 5. Select the branch and version of PHP you would like on the next two pages (it is not recommended to run both PHP 4 and 5). 6. Select 'Exhaustive Options List' on the following page. 7. Scroll down to the PHP configuration section to cURL, and proceed to th enext stop (cURL-SSL can also be enabled). 8. Select 'Save and Build', and let the compilation run its course (usually takes 15-20 minutes). The system will now recompile PHP with cURL support! |
|
- 0 utilizatori au considerat informația utilă