I'll give you a couple of tips.
One, build from tar balls everything you need. I've had many problems trying to install from source tar balls half of what I needed and the other half from RPMs.
Two, for apache configuration, read README.configure. There's a line that shows how to configure apache for most/max modules and shared object mode via apxs. Use that setup (i.e. DSO model)
Three, read the PHP README file. Read it again. There's plenty there.
Lastly, from a source directory like php's,
'./configure --help|less'
to get a list of all the setup options. You'll likely only need a few of them to do what you want.
Oh, and Mandrake can install apache, php, and I think mysql and/or postgresql all setup and ready to go from RPM files I think, if you wanna try that first, but no guarantees.