if you install the newest version of php this should be a problem at all
just run the configure script like you have it (you don't really need the --without-apache) and it will install the cli version of php
if you want it to go to /usr/local/php then add:
--prefix=/usr/local/php