0
I am running Sun server with Solaris 10/SPARC.
I had/have Apache 1.37 with PHP 5.2.1 running as a dynamic extension, and want to enable cURL support. I have tried to re-compile PHP with the --with-curl-lib switch, and it doesn't seem to work.
This was my compile instructions;
./configure \
--with-apxs=/usr/apache/bin/apxs \
--prefix=/usr/php5 \
--with-mysql=/usr/mysql \
--with-mysqli \
--with-mcrypt \
--with-gd \
--with-jpeg-dir=/usr/mysql/mods \
--enable-mbstring \
--with-zlib \
--with-curllib=/usr/local/curl-7.25/lib \
--enable-pspell
make && make install
After doing this I did a test using;
<?php
if (in_array ('curl', get_loaded_extensions())) {
echo "test1 == TRUE\n";
} else {
echo "test1 == FALSE\n";
}
echo "test 2\n";
if (function_exists('curl_open')) {
echo "test2 == TRUE\n";
} else {
echo "test2 == FALSE\n";
}
?>
The results are FALSE for both tests, what am I doing wrong?
Did you restart the server? – Daniel Andersson – 2012-05-04T10:59:55.937
yes, did a full stop and start – Rooneyl – 2012-05-04T11:12:55.210