I too had the Error: "'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs"
when trying to recompile. I tried all types of configurations when recompiling and still had erros so that is why I tried other solutions.
The above solution that I posted worked for me. I did NOT have to recompile php.
hope this helps others.