June 21, 2006

Compiling PHP with curl

Actually, these are the instructions for recompiling php with curl because all I did was compile the same version that was already running on my server.

All of this is from the shell (Putty works great for this).

> cd /usr/src
> wget http://us2.php.net/get/php-4.4.2.tar.gz/from/this/mirror
> zcat php-4.4.2.tar.gz | tar xvf -
> cd php-4.4.2/
> ./configure –with-apxs=/usr/local/apache/bin/apxs –prefix=/usr/local –with-xml –enable-bcmath –enable-calendar –enable-ftp –enable-magic-quotes –with-mysqli –with-mysql=/usr –enable-discard-path –with-pear –enable-sockets –enable-track-vars –with-zlib –with-curl
> make
> make install
> cd /usr/local/apache/bin
> /usr/local/apache/bin/apachectl stop
> /usr/local/apache/bin/apachectl start
> /usr/local/apache/bin/apachectl status

That’s it.

Filed under Web, PHP by admin.
Permalink • Print •  • Comment