Saturday, January 5, 2008

Editing HTTPD.CONF to Enable PHP

sudo vi /etc/httpd/httpd.conf

(240 shift-g) Line 240
(284 shift-g) Line 284
(856 shift-g) Line 856
(857 shift-g) Line 857

(1087 shift-g) Line 1087
LoadModule php4_module libexec/httpd/libphp4.so
AddModule mod_php4.c
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
<IfModule mod_dir.c>
DirectoryIndex index.html index.php index.htm
</IfModule>

No comments: