[Solved] Parsing html as php on lighty
Posted: Sun Jul 15, 2018 9:59 am
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!
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!