Common PHP Compile Configuration Options

I’ve been compiling PHP from source lately. Some common baseline options I’m using:

sudo ./configure –with-mysql –with-apxs2=/usr/sbin/apxs –with-mcrypt=/usr/local/src/php-5.3.8/ext/mcrypt –with-config-file-path=/etc –with-openssl

In my local dev environment, I place all my language source files in /usr/local/src (ie php 5.3.8) and then symlink any needed command line features. For example /bin/php would symlink to /usr/local/src/sapi/cli. That way, If I recompile, I don’t have to change anything.

This entry was posted in PHP, Programming. Bookmark the permalink. Both comments and trackbacks are currently closed.