The process for creating PHP pages is documented at
http://www.cs.uwaterloo.ca/cscf/student/www#www/scripts_php.faq
and it includes this step.
Your .htaccess
file inside of public_html
or an appropriate subdirectory should contain the following line:
AddHandler cgi-script .phpThen, you must make sure that only PHP scripts (and all PHP scripts) end in
.php
and are in the same directory as the .htaccess
file or a subdirectory of it.
See also: