On 2024-06-01, George Kettleborough <kett...@gmail.com> wrote: > If you only want to build a static site (ie. just HTML, CSS, JS etc; no > server-side scripting) then you don't need to install and configure > something like Apache to test it out. You could just open the files you're > working on straight from the disk. Or if you want to test with server you > can use one of the super simple servers designed for testing. There is one > built in to Python. Simply run "python -m http.server" in your project > directory.
For old-school dynamic content, busybox has a trivial web server that also supports cgi executables. CGI helpers written in something like Python is actually not a bad option for many dymanic things (e.g. generating SVG data plots using matplotlib). If you want to do PHP... Don't. Just don't. If you're looking at a hosting service that only supports PHP as a backend language, then pick another hosting service. As has already been mentioned, the big-time frameworks (Flask, Django, TurboGears, etc) all have their own test/developement server schemes. If you want generic server that's simpler than apache, lighttpd is a good option. -- Grant