Type make followed by make install to build PHP and copy the necessary files to the Apache distribution tree.
Compile PHP by first running ./configure --with-apache=/ path /apache-1.3 (substitute path for the actual path to your apache-1.3 directory.