Posts Tagged ‘build’

PHP Build automation

Friday, February 9th, 2007

I whipped together a simple PHP script for automating the build process of installing a new PHP version. It’s designed for people like me who do installs of PHP that use extensions instead of building everything in. It automatically tries to figure out what extensions you got loaded that aren’t typically built-in and builds & installs those after building & installing PHP.

Basic usage:

  1. Edit the file to reflect any configure options, and if desired manually specify extensions you want which will disable the automatic detection
  2. $ php build_php.php /Users/jerome/php-5.2.1

Get it here

Technorati Tags: , , ,

Install PHP with Extensions Howto

Monday, March 13th, 2006

I decided to write up a post about how to compile & install PHP with support for using extensions to provide all the functionality instead of building everything in. Compiling in everything seems to be pretty common, with the windows PHP install using extensions to enable anything like mysql, pdo, curl, and more.

These instructions will apply to linux or OS X, where OS X has one minor problem which is with “PDO”:http://www.php.net/pdo, therefore if your doing this on OS X, compile PHP with PDO + PDO drivers you need instead of trying to install them as separate extensions.

If you have any comments, thoughts, or questions, feel free to comment or email me(You gotta look for my email :-P ).

*Update:* Soooo apparently majority of the extensions fail to even try to compile on OS X, the makefile isn’t generated properly so nothing compiles so nothing can be installed. I had to build in curl, pdo, and xsl since they failed to build separately. These all worked in debian linux.

(more…)