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

Re: [cobalt-users] Let Apache parse .html-files with PHP (RaQ4)



>
> I want apache to parse all html-files through the PHP-Module, by entering
> the following line into the .htaccess-file on a virtual webserver.
>
> AddType application/x-httpd-php .php .php4 .html
>
> But after doing this, the server tells me an internal misconfiguration and
> stopps working.
>
> How can I correct that, so that I can use PHP in .html, too?
>

do tail -f /var/log/httpd/error
probaly says option not allowd here
go to
 pico /etc/httpd/conf/access.conf

were site54 is your sitenumber


<Directory /home/sites/site54>
AllowOverride All
Options All
</Directory>

resstart httpd /etc/rc.d/init.d/httpd restart

that would fix that