December 2007
Beginner to intermediate
310 pages
8h 8m
English
You want to enable PHP scripts on your server.
If you have mod_php installed, use AddHandler to map .php and .phtml files to the PHP handler:
AddHandler application/x-httpd-php .phtml .php
This recipe maps all files with .phtml or .php to the PHP handler. You must ensure that the mod_php module is installed and loaded.
You may find some disagreement as to whether one should use AddHandler or AddType to enable the module, but the AddHandler directive is the correct one.
Installation instructions on the mod_php Web site at http://www.php.net/manual/en/install.apache.php for Apache 1.3, or go to http://www.php.net/manual/en/install.apache2.php for Apache 2.0.
Read now
Unlock full access