slikk66

Registered
Jul 20, 2010
4
0
51
Hi, I am in charge of migrating an existing website over to a server running the following version of cPanel:

cPanel 11.25.0-S46156 - WHM 11.25.0 - X 3.9
CENTOS 5.5 i686 standard

-----------

This website uses CURL throughout. I am unable to rewrite how the website works.

Apparently there is some issue/reason why cPanel doesn't come pre-installed with CURL, but early on in the application, it just dies with:

Fatal error: Call to undefined function curl_init() in /home/public_html/includes/core/functions/utility.php on line 809

Can I get CURL working on this version of cPanel?

Thanks.
 

slikk66

Registered
Jul 20, 2010
4
0
51
Additional Info:

PHP Version 5.2.9

Configure Command
'./configure' '--disable-pdo' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-libxml' '--enable-magic-quotes' '--enable-sockets' '--prefix=/usr' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-kerberos' '--with-libxml-dir=/opt/xml2/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-zlib' '--with-zlib-dir=/usr'
 

slikk66

Registered
Jul 20, 2010
4
0
51
I have installed CURL via yum.. following instructions on another thread..

[/]# yum install curl curl-*

This appeared to install it correctly, I also restarted apache.

Now upon running whereis curl.. I get:
curl:
/usr/bin/curl
/usr/include/curl
/usr/share/man/man1/curl.1.gz

I assume next step is to recompile PHP, using the following new command (just --with-curl added to end)

'./configure' '--disable-pdo' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-libxml' '--enable-magic-quotes' '--enable-sockets' '--prefix=/usr' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-kerberos' '--with-libxml-dir=/opt/xml2/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-zlib' '--with-zlib-dir=/usr' '--with-curl=/usr'

Is there anything else I am missing before recompiling? I saw some post a while ago mentioning I would need something similar to --with-ssl also needed, but I can't seem to find it now..

Thanks guys
 

TheHeartSmasher

Active Member
Jul 14, 2006
28
0
151
Please try the following and let us know if it helped when logged in as root in WHM.

EasyApache (Apache Update)->Start Customizing based on profile->Apache 2.2->PHP 5->5.3.2->Exhaustive Options List->Select Curl, CurlSSL, Curlwrappers then Save and Build.
 

slikk66

Registered
Jul 20, 2010
4
0
51
"Please try the following and let us know if it helped when logged in as root in WHM.

EasyApache (Apache Update)->Start Customizing based on profile->Apache 2.2->PHP 5->5.3.2->Exhaustive Options List->Select Curl, CurlSSL, Curlwrappers then Save and Build."
---- This worked beautifully.. the website is functioning now. Thank you very much TheHeartSmasher