Hi All. Im running Debian on my dedicated server, when i purchased the server it came preset with Apache, SQL, PHP and all the other stuff you'd expect to get as default. I need to install cURL. Now heres the problem. I spent the past 24 Hours learning how to do it, and ended up nearly re-compiling php until someone said it can be done using shared extensions and there is no need to re-compile, so i looked it up some more and went ahead and done it that way. This is what i did: 1) Opened terminal, ran apt-get install php5-curl, installed ok, all went well. 2) Opened up the php.ini and added extension=libcurl.so * PROBLEM * Now the phpinfo() is saying that my extensions directory is: /usr/lib/php5/20060613+lfs . Inside that directory you have a few .so files, mysql, pdo and stuff. If you go back a 2 directories, you end up in /usr/lib/, now in this folder is a long list of .so files but they have funny names. Ill print some off for you: libbind9.so.0.0.8 libpanelw.so.5 libc-client.so.2002edebian libpanelw.so.5.5 libc-client.so.2002edebian.1 libpcap.so.0.8 libcrypto.so.0.9.8 libpcap.so.0.9.5 libcurl.so.3 libpci.so.2 libcurl.so.3.0.0 libdb-4.2.so libdb-4.3.so libdb-4.4.so libdes425.so.3 libdes425.so.3.0 Code (markup): So where is my real extension path? Do i need to remove the numbers from the .so files i want to use, and put them into the path thats in the .ini? If i was to change the path the mysql extension and pdo extension will fail right? Im kind of stuck and have been stumped for hours. I will remain online, so if anyone can help or requires any info let me know and i will respond straight away. Thanks for taking your time to view my problem even if you cant help me. Regards
duh...I should have read your post a little closer. I would copy the files over to the extension directory and then load the correct file (libcurl.so.3.0.0) in the php.ini However, I don't have much experience with extensions installed by apt-get. I usually grab the PECL extension and compile myself. Bobby
I was going to do it with PECL but i like to learn the hard way round first, so i know all possible ways of installing extensions. I was going to grab the tarball and do it that way, but it didnt matter anyway because apt-get just takes care of the installation for you. At the moment im doing everything right, and nothings happening, cant understand it, really i cant.
Also the manual says: To use PHP's cURL support you must also compile PHP --with-curl[=DIR] where DIR is the location of the directory containing the lib and include directories. In the "include" directory there should be a folder named "curl" which should contain the easy.h and curl.h files. There should be a file named libcurl.a located in the "lib" directory. Not sure if that applies to the way im doing it but i cant see any folders, just a .so