Re: Guide for Configuring python(1) with httpd(8)

2022-12-24 Thread Crystal Kolipe
On Fri, Dec 23, 2022 at 07:57:56PM +, indivC wrote: > However, the 'cgi' module is giving me trouble that I can't resolve. > It simply won't import without errors. > > Why am I trying to import the 'cgi' module? > What I want to do is pass data. ... > The above is just a simple example that

Re: Guide for Configuring python(1) with httpd(8)

2022-12-23 Thread indivC
--- Original Message --- On Tuesday, December 20th, 2022 at 6:44 PM, Crystal Kolipe wrote: If you don't mind, I'd like to respond to some of this later. I think I better understand some of my confusions, but I'm not fully there yet. Currently, I've had no issues displaying content. I ca

Re: Guide for Configuring python(1) with httpd(8)

2022-12-20 Thread Crystal Kolipe
On Tue, Dec 20, 2022 at 02:01:03PM +, indivC wrote: > Crystal, > > I really appreciate the detailed explanations > and step by step instructions. > I was able to follow everything without a problem > and was able to finally access the python file from a web browser. Glad you've got it workin

Re: Guide for Configuring python(1) with httpd(8)

2022-12-20 Thread indivC
Crystal, I really appreciate the detailed explanations and step by step instructions. I was able to follow everything without a problem and was able to finally access the python file from a web browser. On Monday, December 19th, 2022 at 11:07 AM, Crystal Kolipe wrote: > # mkdir /var/www/usr/l

Re: Guide for Configuring python(1) with httpd(8)

2022-12-19 Thread Crystal Kolipe
On Mon, Dec 19, 2022 at 05:43:28AM +, indivC wrote: > What I'm trying to do is display a python file > that has imbedded HTML within a web browser. ... > Within a browser, I want to be able to access this file > and see 'Hello World' displayed. OK, so you basically want to write a web applic

Re: Guide for Configuring python(1) with httpd(8)

2022-12-18 Thread indivC
Thanks for all the responses. I'll respond to everyone (Omar, Crystal, Stuart, Bodie) within this message to prevent sending out multiple messages. It appears my message was significantly less clear than I thought. My apologies. Let me try again and then I'll respond directly to messages furthe

Re: Guide for Configuring python(1) with httpd(8)

2022-12-18 Thread Bodie
On 18.12.2022 08:07, indivC wrote: Can anyone provide a guide for this or rough instructions? I'm running httpd(8) and trying to utilize a python(1) script with an html file. I've got this working using perl(1). However, it doesn't work with python(1) when following the same steps. As was a

Re: Guide for Configuring python(1) with httpd(8)

2022-12-18 Thread Stuart Henderson
On 2022-12-18, indivC wrote: > On Sunday, December 18th, 2022 at 9:04 AM, Omar Polo > wrote: > >> instead of asking how to do X so that you can do Y, ask directly how >> to do Y. > > I did. The first line of my message was > "Can anyone provide a guide for this or rough instructions?", > which i

Re: Guide for Configuring python(1) with httpd(8)

2022-12-18 Thread Crystal Kolipe
On Sun, Dec 18, 2022 at 12:18:32PM +0100, Omar Polo wrote: > On pypi there is a 'fastcgi' library. it's not packaged on OpenBSD > and I can't asses how good it is Alternatively, just write a fastcgi handler from scratch - the protocol is fairly simple and fully documented. Httpd only implements

Re: Guide for Configuring python(1) with httpd(8)

2022-12-18 Thread Omar Polo
On 2022/12/18 10:23:39 +, indivC wrote: > On Sunday, December 18th, 2022 at 9:04 AM, Omar Polo > wrote: > > Since httpd speaks fastcgi, why not write some python code that > > accepts the requests over fastcgi? (assuming this is what you're > > trying to do, but you didn't tell.) > > I beli

Re: Guide for Configuring python(1) with httpd(8)

2022-12-18 Thread indivC
On Sunday, December 18th, 2022 at 8:38 AM, Mark Willson > This is the script I use to set up python for httpd: I looked over the script and it seems to do pretty much what I've already done. It copies some additional files that I didn't copy. My first attempt was just to copy over the additio

Re: Guide for Configuring python(1) with httpd(8)

2022-12-18 Thread indivC
On Sunday, December 18th, 2022 at 9:04 AM, Omar Polo wrote: > instead of asking how to do X so that you can do Y, ask directly how > to do Y. I did. The first line of my message was "Can anyone provide a guide for this or rough instructions?", which is in reference to the subject "Guide for Conf

Re: Guide for Configuring python(1) with httpd(8)

2022-12-18 Thread Omar Polo
instead of asking how to do X so that you can do Y, ask directly how to do Y. Why do you need python at all in the chroot? Installing all the needed files (and keeping them up-to-date!) manually in a chroot is a pain. Since httpd speaks fastcgi, why not write some python code that accepts the re

Re: Guide for Configuring python(1) with httpd(8)

2022-12-18 Thread Mark Willson
> -Original Message- > From: owner-m...@openbsd.org On Behalf Of indivC > Sent: 18 December 2022 07:07 > To: misc@openbsd.org > Subject: Guide for Configuring python(1) with httpd(8) > > Can anyone provide a guide for this or rough instructions? > I'm running httpd(8) and trying to util