How to use php in html?

Hi, I am new to Openhab. My goal is to show data from Sqlite3 database in webview. I am trying to use PHP in HTML, but I can’t figure out how to configure the jettys config files to enable php. Do I also need to have php preinstalled? What about installing LAMP and hosting the webpage there?
I have tried out this link: https://blog.fedecarg.com/2009/01/04/running-quercus-in-jetty-web-server/ but no success.

So, I extracted files in openhab home directory, then copied ~/quercus/WEB-INF/lib/* to /usr/share/openhab2/runtime/system/org/eclipse/jetty (because /opt/jetty/lib/ doesn’t exist) but now I can’t find “web.xml” file, which should be in jettys directory.
I would really appreciate your help.

I would deploy apache on the same host as OH2 and parse php there, then use the URL to display it in my webviews (sitemap?)

I wouldn’t play with the jetty web server configs since they may change when you upgrade OH2.

Thanks. So there won’t be any problems having two webservers at once?

As long as they use different ports, no.

Thanks for your help. I installed apache2 with php and so far it’s working great!

2 Likes