Before compiling PHP, configure Apache. This needs to be done first, because PHP needs the Apache configuration to install.
$ cd apache_1.3.34
$ ./configure --prefix=/usr/local/apache
This won't take long to run. Don't make & make install yet, this will be done later.