need more info to be able to help. e.g. are you (a) running apache (b) running php as an apache module rather than a cgi?
in the manual it says that you need to have php compiled as an apache module. it doesn't work when php loads as an cgi, as in this case the php executable is only loaded on request, and has no way to hang on to data, like database handles.