Apache2 not serving javascript/css when using CGI.pm perl script to render web page

I am working on a college assignment which requires me to stick with perl and cgi.pm to render webpages. With my current implementation I have included a javascript cdn for a javascript library (p5js) …

HTML Local Storage Dark Mode Using JavaScript

I tried to make a complete darkmode to my website. It’s almost done, but I have an issue. When I reload the page the dark mode goes back to the default light mode. How can I sovle this problem? I …

How to execute Linux command using client/server architecture [closed]

What I want here is a client logging in my website and can execute any Linux command. What is the best practice to achieve it. Should I use HTML/JavaScript and PHP backend running on Apache. Or I …