From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 40CF81581D3 for ; Sun, 2 Jun 2024 00:51:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 63EB2E2A9F; Sun, 2 Jun 2024 00:51:16 +0000 (UTC) Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EB59AE2A98 for ; Sun, 2 Jun 2024 00:51:15 +0000 (UTC) Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1sDZRK-0008jB-PS for gentoo-user@lists.gentoo.org; Sun, 02 Jun 2024 02:51:14 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Grant Edwards Subject: [gentoo-user] Re: Getting started with a web server Date: Sun, 2 Jun 2024 00:51:10 -0000 (UTC) Message-ID: References: <2940158.e9J7NaK4W3@cube> User-Agent: slrn/1.0.3 (Linux) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 902d8c69-8ab8-401e-8795-7d3f03f721af X-Archives-Hash: de8e5d775756da76975d38f0be69aecf On 2024-06-01, George Kettleborough 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