php-cgi uses a different configuration than apache handler php
===

I am using nginx with php-cgi and having some trouble getting imagettftext() to work.  I have just recompiled PHP with these options, however when using nginx and output phpinfo() I get that the build date was last month, and that `--with-gd` and `--with-freetype` aren't actually set in the configuration. 

I wasn't aware that php-cgi and php used different builds/configuration files, but, if so, how can I remedy this?  Is there a way to make it use the same build?

I have tried editing php.ini but to no avail.