Your httpd.conf has to have these directives:
AddHandler php5-script .php
AddType text/html .php
#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php
But I don't know anything about cpanel and how you tell it to make these changes.