These are the entries that could be there. But it assumes that apache has DSO support and php is a module. If you are not certain about that check if the following file is present on your system:
/<path>/<to>/<apache>/modules/libphp4.so
There is a second way to install php, but I'm not certain what it should look like. So you could be correct with the 'AddHandler cgi-script pl cgi' entry. If libphp4.so is not on your system, you probably have installed php the 'other' way and the 'LoadModule php4_module modules/libphp4.so' will probably not work. It can't hurt trying.
Make a copy of your original httpd.conf before you start changing it. If the new config doesn't work you need to restore a working version (don't create a bigger problem).
Ok, here we go.
These belong in your httpd.conf. The # <some text> gives you an indication where the line should go in the httpd.conf.
# LoadModule foo_module modules/mod_foo.so
LoadModule php4_module modules/libphp4.so
#DirectoryIndex index.html index.html.var
DirectoryIndex index.php index.html index.htm index.html.var
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
AddType application/x-httpd-php .php
Explanation:
=> LoadModule php4_module modules/libphp4.so
Make apache php aware.
DirectoryIndex index.php index.html index.htm index.html.var
=> the name and order of the files that apache will load automatically when only the url/directory structure is enter in a browser.
I.e: If you enter this in your browser:
http://some.site.com/
and one of these files is present:
index.php index.html index.htm index.html.var
it will be loaded and shown.
AddType application/x-httpd-php .php
=> recognize the .php extension. Could be that there are more in your config. Leave them, just make sure that .php is there too.
You do need to restart apache after you changed the httpd.conf file:
/<path>/<to>/<apache>/bin/bin/apachectl restart
Check logfile to see if anything went wrong. These logfiles are probably located here:
/<path>/<to>/<apache>/logs/
Check if your pages are still available.
Check if the php page that didn't work is recognized.
If your problem still excists, restore your original httpd.conf and restart apache.
Hope this helps.