If you've gotten Apache and PHP off a mirror, they should be ready to be used in a production/test environment.
You just have to enable it.
If you insist on using Webmin or whatever config tool, I suggest you stop reading this post now and wait for someone else to show you how. But if you want to find out an easier way to to do it, by all means keep on reading.
Here's the steps (to be done as root):
a) Open
/etc/apache/httpd.conf with your favourite text editor.
b) Look for this section:
Code:
<IfModule mod_dir.c>
DirectoryIndex index.html
</IfModule>
and change it to:
Code:
<IfModule mod_dir.c>
DirectoryIndex index.html index.php
</IfModule>
c) Find this line:
Code:
#Include /etc/apache/mod_php.conf
and uncomment it as follows (just remove the leading hash):
Code:
Include /etc/apache/mod_php.conf
d) Restart apache by running
/etc/rc.d/rc.httpd restart
You're all set now