Page 1 of 1

[Solved] Parsing html as php on lighty

Posted: Sun Jul 15, 2018 9:59 am
by cpcnw
HI All,

Whats the minimum I need to parse php snippets within html on out of the box DietPi / Lighty?

In my lighty.conf file I have tried ;

Mapping html to php
fastcgi.map-extensions = ( ".html" => ".php" )

Commenting out
# compress.cache-dir = "/tmp/lighttpd/cache/compress/"
# compress.filetype = ("text/plain", "text/html")

And adding "mod_fastcgi", to the modules list

Have ended up with 'Access Denied' so reverted back to the original!

Any tips?

Ta!

Re: Parsing html as php on lighty

Posted: Wed Jul 18, 2018 10:40 am
by cpcnw