to enable php in apache, go to /etc/apache
copy either the file php.ini-dist or php.ini-recommended to php.ini
Code:
cp php.ini-dist php.ini
copy mod_php.conf.example to mod_php.conf
Code:
cp mod_php.conf.example mod_php.conf
(mod_php.conf is the file that contains the LoadModule php4_module
and "AddType application/x-httpd-php .php" stuff.
then restart apache:
Code:
/etc/rc.d/rc.http restart
Apache's root directory is /var/www/htdocs