[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] httpd.conf



> Hello,
>
>     Is there a trick to getting the following to work properly on a RaQ4i?
I
> can't seem to get any .phtml extensions to be parsed through PHP4. I have
> made this alteration to httpd.conf, and have reloaded/restarted httpd upon
> completion.
>
> DirectoryIndex index.phtml index.php index.php3 index.html index.htm
> home.phtml home.php home.php3 home.html home.htm

You need to make sure that the AddType directive reflects .phtml to be
parsed by the PHP engine:

AddType application/x-httpd-php .php .php3 .php4 .phtml
(this is for a cgi-mode PHP4 installation, your httpd.conf may vary)

What you have done above is specify the order in which index pages are
searched for and served when a directory is called.

HTH

--
Brian Curtis