Article:
  Compiling and Enabling GD in PHP 4.3
Subject:   Getting the new PHP recognized!
Date:   2007-02-22 10:30:32
From:   webofunni
Response to: Getting the new PHP recognized!

While building php you can use
./configure --with-gd --with-apxs=/pah-to-apache/apache/bin/apxs
it will work if you enabled module while configuring apache
ie /path-to-apache/apache# ./configure --enable-module=so
otherwise you need to rebuild apache