Jump to content

Recommended Posts

Hello plp I am having some problems when compiling php5 with the curl library.  I previously installed php5 with apache2 and mysql and it worked fine. But now  I need to do some stuff with  the curl library.  I downloaded the source,  ./configure, make, make test, and make install  and it  installs in the /usr/local/include/curl directory. then I tried recompiling php again but this time with

 

> ./configure  --with-apx2=/usr/local/apache2/bin/apxs --with-mysql --with-curl=/usr/local/

 

> make

> make install

 

/usr/local/apache2/bin/apachectl restart

 

But when I run a script containing phpinfo() it just shows me the same thing it showed me the first time I installed php-apache-mysql, and I know this because on the Build Date  field  I am getting the same date as of the first time it was installed, and the Configure Command field is the same as the first one (/configure --with-mysql --with-apxs2=/usr/local/httpd-2.2.4/bin/apxs), and obviously I don't get to see curl when I run phpinfo() which can only mean that php wasn't compiled with that library although I think I am.... Any idea what I am doing wrong..........thanks plp

Link to comment
https://forums.phpfreaks.com/topic/50929-compiling-php-with-curl-library/
Share on other sites

You sure that Apache is pointing to the binary that you are building from source and not another one?  I'd check by cd'ing to the /php/bin dir that you just built from source and %php -i | grep php.ini and comparing that to the php.ini in your phpinfo() function via apache.  I'd do this first just as a sanity check, since you claim the build date is not changing.

 

Best,

 

Patrick

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.