There are some steps you must perform whether you are using PHP or JSP as a development environment.
If you are using the Site Administrator or plan to use PHP as a development environment, configure Apache to process files with the .php extension. Edit httpd.conf. Look for the configuration of the PHP engine. Ensure it is set as follows, or add the following to the file as necessary.
In the Dynamic Shared Object Support section, ensure that the rewrite module is enabled. If there is a comment character at the beginning of the line, remove it so it looks like this: