Tuesday, October 11, 2011

php: curl install

reconfigure your php with:
./configure \
 --with-gd \
 --enable-dbase \
 --enable-module=so \
 --with-png-dir=/usr/lib \
 --enable-so \
 --with-pgsql=/usr/local/pgsql/bin/ \
 --with-apxs2=/usr/local/apache2/bin/apxs \
 --with-config-file-path=/usr/local/apache2/php \
 --with-zlib-dir \
 --with-pear \
 --enable-soap\


# following are added in the config to enable curl
 --with-curl \
 --with-curl-config=/usr/bin/curl-config \
 --with-openssl


# add in /usr/local/lib/php.ini
 extension=php_curl.so

# restart apache web server

# to test, create a php file with the ff content

<?php echo phpinfo(); ?>

CURL:
<?php
 echo '<pre>';
 var_dump(curl_version());
 echo '</pre>';
?>

No comments:

Post a Comment

SSH : No matching host key type found. Their offer: ssh-rsa,ssh-dss

Got this while connecting to my mikrotik router via ssh   Unable to negotiate with <ip address> port <ssh port>: no matching hos...