./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