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