[Solved] Parsing html as php on lighty

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
cpcnw
Posts: 17
Joined: Wed Jun 29, 2016 8:31 am

[Solved] Parsing html as php on lighty

Post 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!
Last edited by cpcnw on Wed Jul 18, 2018 10:40 am, edited 1 time in total.
cpcnw
Posts: 17
Joined: Wed Jun 29, 2016 8:31 am

Re: Parsing html as php on lighty

Post by cpcnw »

Post Reply