Activating cURL [Solved]

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Activating cURL [Solved]

Postby JMETERX » 31. October 2011 20:55

I have the latest version of XAMPP installed and need cURL. I noticed from the release notes it is packaged with XAMPP. I am still pretty new to all this, can anyone tell me how to get the cURL extension working with XAMPP for the linux environment (Redhat4)?
JMETERX
 
Posts: 3
Joined: 31. October 2011 20:52
Operating System: REDHAT LINUX 4

Re: Activating cURL

Postby JonB » 01. November 2011 13:18

Actaully, I think its pretty much the same all around, Linux or not -

First you look at your phpinfo() page. You can find it on the 'XAMPP' page
or go to:
http://localhost/xampp/phpinfo.php

look for the setting you are interested in

if it is not enabled, see if the extension is present on your system. If it is, enable in in the php.ini file.

as it happens on XAMPP/LAMPP - cURL is normally enabled by default.

Code: Select all
cURL support   enabled
cURL Information   7.21.0
Age   3
Features
AsynchDNS   No
Debug   No
GSS-Negotiate   No
IDN   No
IPv6   No
Largefile   Yes
NTLM   Yes
SPNEGO   No
SSL   Yes
SSPI   No
krb4   No
libz   Yes
CharConv   No
Protocols   dict, file, ftp, ftps, http, https, imap, imaps, ldap, ldaps, pop3, pop3s, rtsp, smtp, smtps, telnet, tftp
Host   i686-pc-linux-gnu
SSL Version   OpenSSL/1.0.0c
ZLib Version   1.2.3


You should check this, as I have no way of knowing the condition of your system.

Good Luck
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Activating cURL

Postby JMETERX » 01. November 2011 19:55

Ahh. Wow. Right in front of my face. Thank you!
JMETERX
 
Posts: 3
Joined: 31. October 2011 20:52
Operating System: REDHAT LINUX 4

Re: Activating cURL

Postby JMETERX » 02. November 2011 19:22

So it is on but when running the php script I am receiving this error:

Code: Select all
Warning: PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/curl.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/curl.so: cannot open shared object file: No such file or directory in Unknown on line 0
JMETERX
 
Posts: 3
Joined: 31. October 2011 20:52
Operating System: REDHAT LINUX 4

Re: Activating cURL

Postby JonB » 02. November 2011 21:49

If phpinfo() reports cURL is installed, its probably working.

Look in the section "Configure Command" IF you finf a line that says '--with curl=/opt/lampp' then you don't need to add/activate the extension in php.ini - its hardlinked in during the compile. If you added /uncommented an extension - comment it back out and restart.

I'm running 1.7.4 of LAMPP on my Fedora box, so I can't tell what is 'compiled in' in with 1.7.7

8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 4 guests