[Good] Installing cURL on a cPanel sever
RSS

[Good] Installing cURL on a cPanel sever

类别: 杂七杂八   时间: 2009-06-24   标签:

Installing cURL on a cPanel sever
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/RHEL/Fedora
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 the next stop (cURL-SSL can also be enabled).
8. Select ‘Save and Build’, and let the compilation run it’s course (usually takes 15-20 minutes).

The system will now recompile php with cURL support!

补充:

VPS 的控制面板 whm/cpanel 果然比较适合新手,即便要重新编译安装 apache 也非常的方便,登录 ssh ,su 到 root,在/scripts 下面有一个叫 easyapache 的脚本,提供非常多的选项,可以轻松编译安装 apache mysql php 。在 knownhost 通过 easyapache 编译 apache 的时候,我还选上了 eAccelerator for PHP 。这个东西真的很有用诶,现在打开我的博客是不是“刷”的一下就打开了?速度快了,而且 Wordpress CPU占用也下来了。缺点就是内存的使用上去了:

Bluehost.com Web Hosting $6.95

本文Dao Blog - 道博客版权所有,可转载,但需注明出处:http://www.daoblog.com/installing-curl-on-a-cpanel-sever.html

下篇文章: 原来服务器上还有这么强的工具—EasyApache
上篇文章: 如何安装GD2和cURL
"[Good] Installing cURL on a cPanel sever" was posted on Wednesday, June 24th, 2009 at 9:37 am.

发表评论

 
最新文章
随机文章